Included page: .FitNesse.SuiteAcceptanceTests.SuiteFitDecoratorTests.SetUp (edit)
Import |
fit.decorator |
fit.decorator.performance |
eg |
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.
Included page: .FitNesse.SuiteAcceptanceTests.SuiteFitDecoratorTests.TearDown (edit)
fit.Summary |
Keyboard Shortcuts ?
General
- t Test page or suite
- e Edit page
- v View page (after test)
- a Add new page
Go To
- g u User Guide
- g q Quick Reference Guide
- g f Full Reference Guide
- g c Recent Changes
Edit Mode
- CTRL+s Save page
- ESC Cancel edit
Tools
- p Properties
- w Where used?
- AK+v Versions
- AK+h Page History
- / Focus on search bar
- s Open search page