NUnit integrated manual testing
NUnit.ManualTest is designed to include manual tests in the NUnit Framework infrastructure. The developer simply can add manual test scenarios to an NUnit test that guides a manual tester step-by-step through the testing scenario. The benefit is a NUnit compliant report. Furthermore it offers the possibility that non-programmers e.g. product owners, product managers or marketing can define manual test cases through YAML files.
1:
|
|
Installation
Install with nuget
1:
|
|
Examples
Generating tests from YAML files
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: |
|
Choosing the presentation type
For each test fixture:
1: 2: 3: 4: |
|
Assembly-wide setup:
1:
|
|
The default presenter is the console presenter.
Specifying presentation type
There are three types defined the tester is guided through the different test steps (preparation, execution and validation).
- SingleStep: Each preparation, execution and verification step must be committed by the tester. This could be useful whenever single steps of complex testing scenarios might fail and should be reported in test report.
- Grouped: Each group (preparation, execution and verification) must be committed by the tester.
- Once: (default) The complete testing scenario is presented to the user and must be committed only once.
The presentation type can be specified:
- in YAML file: using the type attribute inside the scenario.
1: 2: 3: 4: |
|
- globally for whole test fixture: passing to the type to base ctor.
1: 2: 3: 4: 5: 6: |
|
- in coded tests: by setting up the test builder.
1: 2: 3: 4: 5: 6: 7: 8: 9: |
|
This overrules the 'higher-level' setups.