Test cases¶
Test cases belong to the Test Protocol. Each one is linked to the requirements it verifies.
Kinds of test¶
| Kind | What it is |
|---|---|
| Automated | A pytest test, identified by its pytest node ID. Record its result as an execution like any other test. |
| Scripted manual | Steps, one per line, written as action => expected result. End a step with [evidence] (for example Open the audit trail => The change is listed [evidence]) when the tester must attach a file for it. |
| Unscripted | Exploratory testing against a session charter (in Objective). Enough on its own only for Tier 3 requirements. |
Choose the kind on the test's edit page. See Required assurance for which kinds each tier accepts.
Test case library¶
The Test case library holds reusable test cases (LTC-001, …), each linked to the library requirements it verifies. The test's tier is the highest risk tier among those requirements, so set their risk assessment in the requirement library.
- Members create and edit library test cases. Every content edit increments the version.
- To reuse one, copy its requirements into the project's specification first, then select the test and Copy it into a draft Test Protocol. The test arrives linked to the project requirements that came from the same library entries, and the version it used is frozen and shown in its audit trail.
Global library¶
When an owner or admin turns on Offer the global libraries under Admin › Organization, both library pages list standard entries that we maintain and update: login, logout and sessions, passwords, role-based access, electronic signatures, audit trail, records, data integrity, backup and installation. Each global requirement comes risk-assessed and each global test is linked to the requirements it verifies. Select the ones you need and either choose Add selected to our library, or pick a draft document and choose Copy into project. A test brings the requirements it verifies with it: into your library, or into the project's URS (or its first draft specification), reusing an identical requirement already there. Either way the copy is yours: nothing links back to the global library, so later global changes never reach your projects. The audit trail records the global ID and version each copy came from.
Stage¶
Each test case has a qualification stage, in this order:
| Stage | What it verifies |
|---|---|
| IQ Installation qualification | The system is installed as specified. |
| OQ Operational qualification | Each function works as specified. The default. |
| CS Configuration verification | The system is configured as the configuration specification says. |
| PQ Performance qualification / UAT | The system does what the users need, in their process. |
Not every exercise needs every stage: a vendor tool used as supplied may need only IQ and PQ. Choose the project's stages under Edit project (or when creating it). A test case can only be given a stage the project uses, and a stage can't be switched off while it has test cases.
Stages run in order in each environment: see Stage gate. The Test Protocol can be filtered by stage, environment and section, and shows how many tests each stage has.
Each test's row has icons after its ID to Edit it (in a draft protocol), try it as a Dry run and Execute it (once the protocol is approved), and a bin at the end of the row to delete it. Point at an icon for its name. Drag a test by the handle at the start of its row to reorder it or move it to another section: see Sections. Latest result shows a green tick for a pass, a red cross for a fail and a dashed circle for a test not yet executed, for each environment; select a result to open the execution.
The Tier column is the test's risk tier (T1, T2 or T3, the highest among the requirements it verifies). Point at it or select it to see what the tier means and the assurance and evidence it requires: see Required assurance.
Environments¶
Every test case names the environments it must pass in: at least one, often several (for example Test and Prod). Define the project's environments first, on its Environments tab. The RTM then shows the latest result in each one, and the project's Run tests tab shows every test by stage and environment.
In the Test Protocol each test shows its Stage and its Environments. To set either for several tests at once, tick the tests (or Select all / none), choose the stage, the environments or both in Change several tests at once and choose Apply to selected. The environments you tick replace the ones those tests had. In a protocol under revision you also give one reason, recorded in the audit trail of every test that changed.
A test that names no environment (one copied from the library, imported in a package or written before this rule) shows none in red: give it one before it is executed. To run an adapted version of a test in another environment, duplicate it from its edit page. See Environments and qualification.
Approval¶
The Test Protocol must be approved before any test can be executed for the record. After approval, test cases are locked. A test changed after it was executed is the RTM gap test-changed-since-execution.