![JAR search and dependency download from the Maven repository](/logo.png)
FitNesseRoot.Fitnesse.SuiteAcceptanceTests.SuiteSlimTests.ScenarioTestSuite.ScenarioWithOutputParametersInDecisionTables.content.txt Maven / Gradle / Ivy
Output parameters in scenarios are flagged with a question mark in the header row, like in decision tables.
For each output parameter a symbol with the same name must be assigned a value in the scenario.
See below a sample of a division scenario with output parameter "result"
|scenario | my division |numerator| | denominator| | result?|
|setNumerator| @numerator|
|setDenominator| @denominator|
|$result= | quotient|
Get the Division implementation from the eg package
|Library|
|eg.Division|
| my division |
| numerator | denominator | result? |
| 10 | 2 | $x= |
| $x | 1 | 5.0 |
!3 A result calculated in one row and assigned to a symbol can be used in the next row
and the order of the columns doesn't matters
| my division |
| result? | numerator | denominator |
| $x= | 1000 | 2 |
| $x= | $x | 2 |
| $x= | $x | 2 |
| $x= | $x | 2 |
| $x= | $x | 2 |
| $x= | $x | 2 |
|7.8125 | $x | 2 |
!3 A result can be used in multiple columns in the decion table to do different checks
| my division |
| numerator | denominator | result? | result?|
| 10 | 2 | 5.0 | < 7.0|
| 12.6 | 3 | 4.2 | > 3.0|
© 2015 - 2025 Weber Informatics LLC | Privacy Policy