All Downloads are FREE. Search and download functionalities are using the official Maven repository.

FitNesseRoot.Fitnesse.SuiteAcceptanceTests.SuiteSlimTests.SegregationOfRequirementsAndImplementation.content.txt Maven / Gradle / Ivy

There is a newer version: 4.4
Show newest version
One of the key goals of FitNesse is to encourage that requirements in FitNesse are written before the coding of the implementation starts.
Having said that the defintion of the requirements must be independent of the technical solution used to implement it.
This sample page shows that the same requirement defintion can be implemented once with a java class implementing the decision table protokoll and once with a senario.


The requirements are defined in a decision table on a sub page. 
The first implementation used is the Devision class from the eg library.
|import|
|eg|

!include >CalculatorRequirements


Now we define a second technical solution using a FitNesse scenario
|scenario | Division _ _ _|numerator, denominator, quotient?|
|setNumerator| @numerator|
|setDenominator| @denominator|
|$quotient=| quotient|


Generate an instance of the class used by the scenario:
| Library | 
| eg.Division|



We retest the requirements and get the same results.

!include >CalculatorRequirements




© 2015 - 2025 Weber Informatics LLC | Privacy Policy