Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

2. Rule Validation (Rule For)

Definition

Panel
titleDEFINITION
borderStylesolid

The RuleForInterpreter is used to express concrete and measurable business rules.
During the execution of the specification, Image Modified compares the values returned by the system under development against the expected values defined by the Business Expert.

Image Modified

  • The first row of the table indicates the set of rules to be tested by Image Modified.
  • The next row is called the header row and serves to distinguish the given values and the expected values. Given values serve as inputs to the system, whereas expected values serve as comparison values against values that are actually returned by the system. When a column header ends with special characters ? or (), it denotes an expected value.
  • Finally, the remaining rows capture the examples. They are the executable test rows

Specific Keywords for expected values

...

3. List Validation (List of, Set of, Superset of, Subset of)

Definition

Panel
titleDEFINITION
borderStylesolid

The collection interpreters are used to express any kind of groups, lists or sets of values.

When a collection interpreter is executed, Image Added compares the list of values expected with the list of values returned by the system under development. The test result depends on the specific collection interpreter selected.

Image Added

  • As for all other interpreters, the first row of the collection interpreters specifies the name of the interpreter and the name of the collection to be tested.
  • The next row is used to define the name of each attribute related to the members of the collection of data.
  • The following rows are used to specify the set of values to test.

Specific keywords

None

Colouring

Image Added will visually indicate the test result by colouring the rows:

Panel
bgColorlightgreen
titleBGColorlightgreen
titleGreen
borderStyledashed

 As expected, the row is returned by the system under development.

Panel
bgColor#f08080
titleBGColor#f08080
titleRed
borderStyledashed

A row is missing or in surplus in the list returned by the system under development.

Panel
bgColor#f0e68c
titleBGColor#f0e68c
titleYELLOW
borderStyledashed

If the system encounters an execution error, the cell is in yellow, and Image Added provides information about the error.

Particular behaviour for the list of interpreters:
Since the ListOfInterpreter expects to match exactly the expected list and the list returned by the SUD, Image Added compares each cell of the table separately. If the expected value is different from the returned value, Image Added colours the cell in red and provide the two values.

Particular behaviour for the superset of interpreters:
Since the SupersetOfInterpreter accepts that the specification may contain rows that are not contained in the SUD, Image Added will not colour the rows contained in the specification but not returned by the SUD.