BackgroundDecision steps can be executed or skipped based on the true/false response of prior Decision Steps.
This spec tests the logic governing the execution (or not) of Decision steps, depending on the result of previous Decision steps.
The logic is tested ensuring that the following cases are true:
- 'When a second step depends on the first, and the first fails, the second is step is not instantiated'
- 'When a second step depends on the first, and the first succeeds, the second is step is instantiated'
- 'When Step C depends on (StepA=true OR StepB=true), if A AND B succeed, the 3rd step is instantiated'
- 'When Step C depends on (StepA=false OR StepB=false), if A AND B succeed, the 3rd step is not instantiated'
- 'When Step C depends on (StepA=true OR StepB=false), if A AND B succeed, the 3rd step is instantiated'
- 'When Step C depends on (StepA=false OR StepB=true), if A AND B succeed, the 3rd step is instantiated'
- 'When Step C depends on (StepA=true AND StepB=true), if A AND B succeed, the 3rd step is instantiated'
- 'When Step C depends on (StepA=true AND StepB=true), if A succeeds and B fails, the 3rd step is not instantiated'
- 'When Step C depends on (StepA=true AND StepB=true), if A fails and B succeeds, the 3rd step is not instantiated'
- 'When Step C depends on (StepA=true AND StepB=true), if A and B fail, the 3rd step is not instantiated'
- 'When Step E depends on ((StepA=true OR StepB=true)AND(StepC=true OR StepD = true)), and Steps A-D are true, Step E is instantiated'
|
|