Test Automation
Investment in Automation
Summary
Repeatable checks are automated where reliable execution and the expected reduction in risk or manual effort justify the cost of building, running, and maintaining them, with the scope of the resulting evidence and any known gaps kept visible.
Standards
std-qe-investment-in-automation-01A team or vendor responsible for testing a product or service MUST identify repeatable checks that are candidates for automation and implement those where reliable execution and the expected reduction in risk or manual effort justify the cost over the automation's useful life.std-qe-investment-in-automation-02Each automation candidate SHOULD be assessed against its risk and evidence value, execution frequency, expected useful life, stability, expected-result clarity, controllability, and expected build, execution, and maintenance cost.std-qe-investment-in-automation-03A decision to retain a repeatable check as manual where it addresses an identified risk MUST record the reason, the resulting limitation, and the condition that would require the decision to be reassessed.std-qe-investment-in-automation-04The behaviours and conditions covered by an automated test suite, and any known gaps in that coverage, MUST be identifiable from its version-controlled test assets or associated documentation.
Implements These Principles
Automation Is Considered Early
Summary
Automation opportunities, testability needs, and constraints are identified during discovery and design, while the product or service can still be shaped to support reliable automated testing.
Standards
std-qe-automation-considered-early-01A team or vendor responsible for delivering a product, service, or material change MUST consider opportunities for test automation during discovery and design, before implementation decisions constrain how the behaviour can be tested.std-qe-automation-considered-early-02For each automation opportunity identified during discovery and design, the team or vendor MUST identify an owner, the expected outcome to verify, and the test level, data, environment, interfaces, dependencies, and tooling needed to produce reliable evidence.
Related Standards
Implements These Principles
Risk and Value-Driven Automation
Summary
Automation effort is prioritised according to the risk addressed, the value and frequency of the resulting evidence, and the cost of maintaining it over its expected useful life.
Standards
std-qe-risk-value-driven-automation-01A team or vendor SHOULD prioritise automation candidates according to the likelihood and consequence of the risk addressed, the value and expected frequency of the resulting evidence, and the expected build and maintenance cost over each candidate's useful life.std-qe-risk-value-driven-automation-02Test count or percentage coverage MUST NOT be the sole basis for prioritising automation work.std-qe-risk-value-driven-automation-03The priority of an automation candidate SHOULD be reassessed when a material change to the product, its risks, execution frequency, expected useful life, or maintenance cost changes its expected value.
Related Standards
Implements These Principles
Appropriate Test Level
Summary
Each automated check runs at the lowest test level that can reliably verify its target behaviour or risk, while interactions and broader outcomes are verified at the level where they occur.
Standards
std-qe-appropriate-test-level-01An automated check SHOULD be implemented at the lowest test level that can reliably verify its target behaviour or risk.std-qe-appropriate-test-level-03A broader automated test SHOULD NOT duplicate behaviour already verified reliably at a lower test level unless it provides distinct evidence about an interaction or outcome that the lower-level test cannot provide.
Related Standards
Implements These Principles
Test Assets Are Maintained as Code
Summary
Automated test code follows the same coding, formatting, review, and maintenance standards as production code and remains aligned with current behaviour.
Standards
std-qe-test-assets-maintained-as-code-01Automated test code MUST comply with the coding, formatting, and review standards that apply to the production code it verifies.std-qe-test-assets-maintained-as-code-02A change to product or service behaviour SHOULD include any corresponding change required to keep affected automated tests aligned with that behaviour.std-qe-test-assets-maintained-as-code-03An automated test that no longer verifies current behaviour SHOULD be updated or removed.std-qe-test-assets-maintained-as-code-04The reason for removing an automated test as no longer relevant MUST be recorded in the change that removes it.
Related Standards
Implements These Principles
Accessible Automation Source
Summary
Automated test assets are held in an accessible, authoritative repository with the product they verify or in a shared repository when designed for reuse.
Standards
std-qe-accessible-automation-source-01Automated test code, configuration, and supporting assets MUST be stored in a designated, version-controlled repository accessible to the team responsible for running and maintaining them.std-qe-accessible-automation-source-02Product-specific automated test assets SHOULD be stored in the same repository as the product or service they verify.std-qe-accessible-automation-source-03Where product-specific automated test assets are stored separately, the product or service version each test revision verifies MUST be identifiable.std-qe-accessible-automation-source-04Automated test components designed for reuse across products SHOULD be maintained from one shared, authoritative repository with a defined owning team.
Related Standards
Implements These Principles
Reuse Before Duplication
Summary
Suitable test components are reused, and common automation is designed for reuse only where products share a genuine testing need.
Standards
std-qe-reuse-before-duplication-01Existing test helpers, libraries, and other reusable automation components SHOULD be evaluated before a new equivalent component is created.std-qe-reuse-before-duplication-02A suitable existing test component SHOULD be reused where it meets the testing need without introducing product-specific behaviour or coupling that makes the component harder to understand or maintain.std-qe-reuse-before-duplication-03A test component intended for use across products SHOULD address a testing need shared by those products and expose a documented interface through which they can use it.
Implements These Principles
Shared Automation Ownership
Summary
Each automated test suite has an accountable owning team with the information and access needed to run, diagnose, and maintain it after the team or vendor that delivered it is no longer available.
Standards
std-qe-shared-automation-ownership-01Each automated test suite MUST have an accountable owning team.std-qe-shared-automation-ownership-02A team or vendor delivering an automated test suite MUST make the code, configuration, instructions, test-data setup, and access requirements needed to run, diagnose, and maintain the suite available to its accountable owning team.std-qe-shared-automation-ownership-03An automated test suite MUST NOT depend on information, permissions, or resources retained only by the team or vendor that delivered it.
Related Standards
Implements These Principles
Authoritative Test Results
Summary
A failed or intermittent automated test remains unresolved until its cause is identified and addressed, while any temporary quarantine and resulting gap in coverage remain visible.
Standards
std-qe-authoritative-test-results-01A failed or intermittent automated test MUST be treated as unresolved until its cause is identified and the product defect, test defect, or uncontrolled test condition responsible is addressed.std-qe-authoritative-test-results-02Re-running an automated test until it passes MUST NOT substitute for investigating and resolving its failure.std-qe-authoritative-test-results-03A quarantined automated test MUST be visibly identified and tracked through remediation, with the reason for quarantine and resulting gap in coverage recorded.
Related Standards
Implements These Principles
Automation Complements Human Testing
Summary
Automated checks provide repeatable evidence, while risks requiring exploration, context, or judgement are evaluated through human testing.
Standards
std-qe-automation-complements-human-testing-01A passing automated test suite MUST NOT be treated as complete assurance when identified risks or behaviours remain outside its coverage.std-qe-automation-complements-human-testing-02An identified risk whose outcome cannot be evaluated reliably through predefined assertions SHOULD be evaluated through human testing that can apply exploration, context, or judgement.std-qe-automation-complements-human-testing-03A repeatable check identified through human testing SHOULD be assessed as a candidate for automation.