Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    joroelev
    @joroelev:matrix.org
    [m]
    Not much conversation here yet 😄. So let me ask a question. In Slack some messages were posted automatically when for example FitNesse was released. Will that be the case on this platform as well?
    1 reply
    petedussin
    @petedussin
    Hey guys, I'm having issues with a new Fitnesse-standalone.jar on top of an old FitnesseRoot. It works fine from the wiki but when I reorganized suites or create new tests, they won't run from the command line. I see there is a new format of Test1.wiki, and those tests don't get run
    16 replies
    anyone else experience this or know how to deal with it?
    petedussin
    @petedussin
    Never mind. Thanks for the troubleshooting help
    was running an old jar at the command line, that didn't match the new one used for the wiki being run as a service
    2 replies
    :(
    Steve McDonald
    @enginpost
    Does anyone know if Fitnesse supports markdown as opposed to using their own custom Markup Language?
    1 reply
    Daniël Verburgh
    @danielkroon
    This message was deleted
    1 reply
    Timo van Dorth
    @timovd
    Anyone running/building FitNesse with HSAC's browsertest with Kotlin? UncleBob's FitNesse is built with Groovy. Instead of reinventing the wheel; does someone have an example?
    2 replies
    Chengpu0707
    @Chengpu0707
    Hi, I am a new comer. I have two basic questions:
    1. When I have -log <folder> as argument, why I can not see any log file there? With log file I can learn the source code for fitnesse better.
    2. My goal is to add a button "Fix" in addition to "Test" in each page, to automatically fill in values for the page. My use case is the following: The app log is in the format of fitnesse pages, if I have verify the behavior to be correct, I want to "Fix" it as a test page for the future. Can someone give a pointer on where to start?
    Chengpu0707
    @Chengpu0707
    To clarify my approach:
    1) If I run from jar file directly, I saw the log file, and messages in console.
    2) If I run from eclipse, I could not see the log file, and any message in console.
    Is there a way for me to see the logs and messages in eclipse?
    Fried Hoeben
    @fhoeben

    I suppose there must be, but it depends on how you run from Ecilpse. I’m not an Eclipse user. Maybe someone can help you with that if you describe how you run from Eclipse, in Java terms. For instance do you start the jar or are you running classes directly, without building a jar from them, how do you pass arguments?

    Regarding your ‘fix’ button idea. I don’t really see what that has to do with log files. It sounds like you want to generate alternative versions of wiki pages, where expected values are updated to actual values. You could take a look at the code to generate the ‘re-run suite’ that is generated when some pages in a suite fail. That gives an indication how to create a new page, from code, that can immediately be run from the wiki. But I don’t think this can be a generic feature: test failures could depend on input values to a fixture, not just direct expectations, or symbols could be used as expected values (ie the expected value is the output of some other method). It could of course work in your specific test setup and fixtures.

    Chengpu0707
    @Chengpu0707
    @fhoeben The use case is the following: Suppose the test suits are already generated, and there is some business logic changes. It is tedious to change every cell, a "Fix" button will accept the current values.
    1 reply
    Izison
    @Izison
    Hi, I am curious how to define multiple line (to be more readable ) JSON string in variable something in line of Wiki : ! define $testJsonInput = { "input": ["test"]} ???
    3 replies
    lew-kas
    @lew-kas
    Hey, working with ejbs over here.. fitnesse always give me a "NoInitialContextException". FitNesse is running separately from my business apps which are deployed on a jboss. Any ideas on how to provide an InitialContext?
    benlyons
    @benlyons
    Hi, does anyone know if FitNesse is at risk from the log4j vulnerability? fitnesse.jar and fitnesse-standalone.jar contain classes from Apache Velocity that reference log4j, so I would assume that to mean "yes, it is at risk". However, there is no mention of this in the FitNesse GitHub repo.
    4 replies
    Alexander Poth
    @allekai

    Hey there, in our setup we have a small set of test pages which are used in multiple test suites. Until now, we have copied these test pages to each test suite. To reduce code duplication, I tried to create a new test page, which servers as a template an which is parametrized. The test page is on the same hierarchy level as the test suites.
    When I try to reference the test pages via "!see Template_Test_Page" the command is not rendered like the reference manual shows (alternatively I tried an absolute path as well, but that didn't work either). Instead, the command is printed as is.
    We are running an older version of fitnesse (20200308), but I couldnt find anything relevant in the changelogs.

    Do you know, why it is not correctly rendered or how I can further debug this?

    1 reply
    Ywe van der Pol
    @ywevanderpol_gitlab
    Anyone else any problems with fitnesse.org is down?
    Fried Hoeben
    @fhoeben

    Yes fitnesse.org is down. See https://github.com/unclebob/fitnesse/issues/1348#issuecomment-1004655347

    Unfortunately the server does not even allow remote logins at the moment. I Uncle Bob already indicated he doesn't manage the server either. Maybe Mike can access it, or knows who manages the sever

    4 replies
    Izison
    @Izison
    Hi, I have tests that pass on lower environments (e.g Integration environment) , but fail on production (e.g. missing test users from Integration environment) . Does Fitnesse have IF statements that would wrap test table and execute it if some environment variable would be of specific value e.g "if env != PROD |script| TestFixtureThatOnlyPassesOnNONProdEnv| ..... " Currently I do it via Tags and "&excludeSuiteFilter=not_on_prod" . Is there any other practical/tested way ?
    3 replies
    Andrew Patterson
    @officialpatterson
    hello, before I raise a bug ticket has anyone had any experience with missing values in assertions? It looks to me like a race condition as the assertion+fixture sometimes passes and is valid but other times it fails with a missing value - any ideas?
    5 replies
    Izison
    @Izison
    image.png
    Hi, I have successfully run test in remote debug mode (http://localhost/KtDemo?test&remote_debug) and attached with IntelliJ remote debugger So far so good. I have question what happened or better what should happen when I add &debug to test execution url e.g http://localhost/KtDemo?test&debug Are for this "local" debug required some special settings or variables like for remote case with (!define REMOTE_DEBUG_COMMAND {java -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=8666 -cp %p %m}) When I run http://localhost/KtDemo?test&debug I get "Could not invoke constructor for Division[0]"
    Izison
    @Izison
    image.png
    It seems to be old , I forgot to mention what is ma goal it is to debug fictures
    If anyone can help just to set one break point where tests start executing in code, I will debug-it but I do not know where to put initial , early enough in flow, break point.
    Izison
    @Izison
    image.png
    Izison
    @Izison
    Break point is NOT hit event thought BP is still set and active in INtelliJ. Can any one explain this mechanism ? How is debug URL parameter able to use break point which is all the time set in IDE. But when &debug is not used , IDE break point seems to be skipped. Strange indeed :)
    Fried Hoeben
    @fhoeben
    The tests are run in a separate proocess. So the web server is one (long running) process, but unless &debug is added to the URL the running of tests is done in a newly forked process. And your debugger is connected to the original process, but not to that new process.
    On a side note I would always debug fixtures by launching the test via a jUnit test. Much easier to launch and rerun from your IDE in my opinion.
    2 replies
    Mike ∫tock∂alε
    @mike_stockdale_twitter
    When I upgraded Intellij, it started telling me 'sourceCompatibility' and 'targetCompatibility' were deprecated. I replaced them in build.gradle with 'java { toolchain { languageVersion.set(JavaLanguageVersion.of(8)}}' and it stopped complaining and everything works fine. I don't know much about gradle so I'm not sure if it's OK to commit this change - could it break things for some other developers?
    2 replies
    Surat Das
    @suratdas
    I created a automation repo with FitNesse as the executor. I am thinking if we can refer to this repo in FitNesse documentation, it may help new members. The repo is at
    Mike ∫tock∂alε
    @mike_stockdale_twitter
    Thanks @fhoeben for setting up the GitHub Action CI build.
    2 replies
    Mike ∫tock∂alε
    @mike_stockdale_twitter
    I've been looking at some reported security vulnerabilities and most of them are, in fact, features of FitNesse, i.e., the ability to write web pages containing any JS code and the ability to run acceptance tests which may execute any runnable code. I've updated security.md to try to explain this. Let me know what you think: unclebob/fitnesse#1361
    1 reply
    bustoka
    @bustoka
    Hi, not sure if this is the right place for the new feature request.
    In the project I work on, we have a need for having the user name accessible via a global variable. I am referring to an authenticated user when the authentication is enabled. Having an additional variable such as USER_NAME (just like RUNNING_PAGE_PATH variable is there) would suffice.
    Currently, via helper fixture, we log which page/test is executed but would also need to log which user ran the page/test.
    Can such a variable be added?
    Thank you.
    2 replies
    arjanvanetten
    @arjanvanetten
    Hallo, Ik gebruik in Fitnesse !today (dd-MM-yyyy) } voor de datum van vandaag. Nu wil ik graag weten wat de functie is voor de eerste dag van het volgend jaar. Dus uitkomst moet nu zijn 1-1-2023. Alvast bedankt, Arjan.
    arjanvanetten
    @arjanvanetten
    sorry in English. Hello, I use in Fitnesse !today (dd-MM-yyyy) } for today. I like to know what the function is for the first day of next year. So result must be 1-1-2023. Thanks in advance, arjan.
    4 replies
    arjanvanetten
    @arjanvanetten
    Hi, If i want to overwrite a field which has already a value i must clear it. The command |clear|<place>| most of the time doesn't work so i use |press |BACK_SPACE| but that's somewhat cumbersome because you had have to repeat that for every position
    . Is there an alternative? thank you, arjan.
    Fried Hoeben
    @fhoeben
    You can click in the field do ‘select all’ and ‘press backspace’ once. I would recommend creating a scenario to do all 3 in one go. If you have your own subclass of browser test there is a method you can override to completely hide it from the test scripts.
    arjanvanetten
    @arjanvanetten
    ok thank you.