Spec View

Use this View to define Given / When / Thens in the Scenario Editor. You need to select a slice first.

Spec View

Key Features:

  1. Slice Title
  2. Select Given / When / Then and then just select the elements in the model
  3. Provide an additional description for the test cases, business rules covered in the specification for example.

Vertical Specifications

For Given / Thens ( Specifications for Read Models - leaving out the When Part ), you can also provide so-called Vertical Specifications.

Vertical Specification

  1. Selected Event as GIVEN
  2. Selected Read Model as THEN
  3. Added Steps in the Vertical Specification
  4. Apply the current Given / Then as new Vertical Specification Step

Example Data

After placing the Specification, you can select the elements and provide example data.

Example Data

Expecting Errors

THEN can also be an error state, if you truly want to show that a certain path is not possible ( guarded by Business Rules )

In this case for the, just record an expected error with an additional description.

Vertical Specification

1) Provide an error description

2) Record the Error in THEN

Vertical Specification

This scenario clearly explains when the system will reject a certain command.

Next Steps