Today we upgraded to the newest version of FitNesse (20090214) and suddenly all tests trying to match multiline Strings weren’t working anymore. We used the approach given here and defined variables that had line breaks in their value:
!define expected_result {some
multiline
text}
These variables could then be simply used in the test tables:
|${expected_result}|
But with the new version, line breaks in variable definitions are treated like spaces and the expected result becomes “some multiline text” without the newlines.
A different solution to get preformatted text, to use {{{ … }}}, isn’t working in test tables and therefore is of no use in our case. >> more…
To make our user interface more shiny we recently decided to use animated gifs in a couple of places. Especially when using ajax to reload some areas of the page we want to show a spinning wheel
. For the user it feels more like something is going on (something is beeing processed) instead of having some kind of frozen screen. But with Internet Explorer it is not done with just placing an animated gif in the page. IE stops animating the gif in a couple of scenarios. Here you can see some hacks to convince IE to animated the gifs again: >> more…
We use Selectors that return a list of objects all over the application and of course we want to use them in our Fitnesse tests.
To be able to do so, we introduced a new kind of Fixture that uses reflection to fill a map – one entry for each result of the selector. Basically, all we did was expand Fitnesse’s RowFixture and override the query() Method: >> more…