The goal of the new test flow is to save time. Also being more efficient in test steps. Also to have a better and more representative report.
By following certain principles:
- verifications (assert/expect) are executed in parallel
- a test has 3 possible outcomes: Passed, Failed and Untested
- Passed: when a verification action passed
- Failed: when a verification action failed
- Untested: one of steps before verification actions fails
- a scenario is a set of tests that result from one test flow
- every verification in a flow defines 1 test
- testing "through": after the verification actions, regardless of the result, the flow continues with other steps and verifications
- the report contains the following matrices for each scenario: executed/aborted tests ratio, passed/executed ratio.
The above diagram shows that with one flow different tests are executed. These tests are reported:
- Test 1: steps 1, 2, 3a
- Test 2: steps 1, 2, 3b
- Test 3: steps 1, 2, 3c
- Test 4: steps 1, 2, 4, 5a
- Test 5: steps 1, 2, 4, 5b
flowchart:
