Sha256: 82ce8988e20c4f85c910feaa8cc94ca054eee8dcdb39402017607811782d1775

Contents?: true

Size: 619 Bytes

Versions: 8

Compression:

Stored size: 619 Bytes

Contents

What if you want to execute the same fitnesse test multiple times. This seems like nice a candidate for a decorator.

If you want to loop 5 times over a fitnesse table and make sure each time the test does not take more than 1000 milliseconds.

!|Loop|5|times|
|Max Time|1000|milliseconds|
|Division|
|numerator|denominator|quotient()|
|10|2|5|
|12.6|3|4.2|
|100|4|25|

Once you run this test, you can see actual time taken for each run. In our case, we'll see 5 actual timing printed, since we are looping 5 times.

'''Note:''' As you can see, you can pipe decorators. Similar to how you can pipe Unix shell commands.

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
xcfit-0.9.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteFitDecoratorTests/MultipleDivision/content.txt
xcfit-0.8.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteFitDecoratorTests/MultipleDivision/content.txt
xcfit-0.7.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteFitDecoratorTests/MultipleDivision/content.txt
xcfit-0.6.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteFitDecoratorTests/MultipleDivision/content.txt
xcfit-0.5.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteFitDecoratorTests/MultipleDivision/content.txt
xcfit-0.4.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteFitDecoratorTests/MultipleDivision/content.txt
xcfit-0.3.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteFitDecoratorTests/MultipleDivision/content.txt
xcfit-0.2.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteFitDecoratorTests/MultipleDivision/content.txt