Fitnesse : How to run fitnesse in debug mode from web interface

When the test is run through web interface, just append to the end of url “?responder=test&remote_debug=true”

fitnesseWebInterface

Example:

http://localhost:9090/PrecisionLmsOracle.PrecisionLms.IndividualWbts.LmsPrecision2290?responder=test&remote_debug=true

Now after hitting this url, the test will not proceed unless some debugger is attached to the port 8000. So we need to start the debugger with 8000 port attached.

Console will display below messages :

fitnesseInDebugMode

Connected to the target VM, address: ‘localhost:8000’, transport: ‘socket’
Disconnected from the target VM, address: ‘localhost:8000’, transport: ‘socket’

Advertisements

Fitnesse : How to verify sorting order ?

When query fixture is executed, the return result set is verified against the presence or absence of the element without considering the order in which the element appears. It makes it difficult to verify to the sorting order. The good news is that with a little work around it can achieved without much efforts.

fitnesse order

The trick is to append the sequence number appended in the title string of the elements in the wiki page. In the fixture code before returning the result set, append the sequence let’s say “for 1=1 to 10” and validate against wiki page. In this case let’s say the title you are expecting to be at top with sequence number “1 the title” comes down to appear at “4 the title” the test case will get failed. This way the sequence can be verified easily by appending the expected sequence with the title.

fixture code to sort order