CT-TAE Cheatsheet
Certified Tester Test Automation Engineer
Download free PDFAutomation objectives and success factors
Value, cost and limitations
- **Test automation** makes repeatable checks faster, enables frequent feedback and reduces repetitive manual execution. It can generate loads and data volumes that are impractical to produce manually.
- Automation frees skilled testers for **exploration, analysis and new risks**. Repeating the same checks does not automatically reveal new defect types or prove that the product is defect-free.
- Budget for **development, tools, infrastructure, training, maintenance and failure analysis**. Frequent execution can improve payback; an automated run still consumes resources and support effort.
- **ROI** compares expected benefits with the full automation cost over its useful life. A short-lived product may justify a small solution; a long-lived regression suite needs maintainable architecture.
Conditions for sustainable automation
- Success depends on a **testable SUT**, clear objectives, stakeholder commitment, skilled staff and reliable environments. A fashionable tool cannot compensate for missing expected results or an immature test process.
- The **test automation engineer (TAE)** collaborates with developers, testers, analysts and operations. Agree ownership, coding standards, support arrangements and how results inform decisions.
- Choose measurable, realistic goals such as **feedback time, useful coverage and reduced repetitive effort**. Avoid assuming that every manual test should be automated or that a pilot will deliver complete coverage.
- Treat the automation solution as **software**: review code, control configuration, test reusable components and maintain documentation. Repair tests when requirements change rather than silently disabling coverage.
Preparing for test automation
Testability and interfaces
- **Observability** exposes states, outputs, intermediate results and errors. **Controllability** allows inputs, events, methods and initial states to be set so tests can exercise the intended behavior.
- Prefer suitable **native interfaces** such as APIs, CLI commands or accessible GUI controls. Well-defined component boundaries help isolation and substitution, but do not automatically guarantee testability.
- For unrecognized controls, investigate **testability support** with developers or component providers. Stable identifiers and supported interfaces are more robust than coordinates, tab positions or class indexes.
- Dedicated **test interfaces, stubs and simulators** can expose internal state, inject faults or replace unavailable dependencies. Control their access and release configuration so they do not introduce unintended behavior.
- Assess **intrusion**: hooks, libraries or instrumentation can change timing, state or execution paths. Verify that observations remain representative of the intended SUT configuration.
Feasibility and tool selection
- Evaluate **frequency, business risk, test-process maturity, data availability, environment stability and automation complexity**. Unsupported third-party controls can outweigh otherwise favorable conditions.
- Use a **proof of concept** to test risky assumptions: object recognition, platform support, representative workflows, execution speed and compatibility with the actual SUT.
- Assess tool **scalability, distributed execution, central result collection, scripting skills, integration APIs, export formats, licensing and total cost** against concrete requirements.
- Investigate missing capabilities through **vendor documentation, supported extensions and integration options**. Evaluate the maintenance cost of a custom bridge before accepting a tool gap.
- Track dependencies and **release notes** for execution tools, operating systems, browsers and management tools. Open-source components also need configuration control, update assessment and support ownership.
Test automation architecture
Architecture, framework and solution
- The **system under test (SUT)** is the target. A **test automation solution (TAS)** combines the tools, testware, infrastructure and integrations used to automate testing for that target.
- A **test automation architecture (TAA)** defines the solution's structure, responsibilities and interfaces. A **test automation framework (TAF)** supplies reusable implementation support such as libraries, drivers and execution conventions.
- The **generic test automation architecture (gTAA)** is a reference structure. Tailor its layers and components to the required solution; a GUI-only suite need not include unused CLI or protocol adapters.
- Design **abstraction and reuse** into the architecture. Separate test intent from execution tools, platform details and SUT interfaces so changes can be localized.
- Abstraction improves portability and vendor independence but adds **design effort and learning cost**. Preserve interface contracts, ownership and documentation so reuse survives staff changes.
The four gTAA layers
- **Test generation** supports manual or automated test design: models, generation strategies, coverage criteria and directives that determine which tests to produce.
- **Test definition** supports the specification and implementation of abstract or concrete tests, procedures and test data. Templates, keywords and test libraries express what should be exercised and checked.
- **Test execution** runs tests, performs setup and teardown, logs activity and produces reports. Result interfaces to test-management systems belong with execution and reporting responsibilities.
- **Test adaptation** connects abstract test operations to the SUT through GUI, API, CLI or protocol adapters. It handles interface-specific interaction and access to components or configurations.
- **Model-based testing** derives tests from a model using selected coverage criteria. It automates generation; definition, execution and adaptation are still needed to turn generated tests into meaningful results.
Choosing a scripting approach
- **Capture/replay** records interactions for quick demonstrations or small, short-lived scripts. Recorded actions often need refinement for assertions, data variation, synchronization and maintainability.
- **Linear scripting** keeps a test as a sequence of actions. **Structured scripting** extracts repeated operations into functions and libraries to reduce duplication.
- **Data-driven testing** separates input and expected-result datasets from reusable execution logic. Many test variations can run through one procedure.
- **Keyword-driven testing** expresses tests with named actions and parameters backed by reusable implementations. Business-level keywords can compose workflows while hiding tool-specific details.
- **Process-driven tests** describe business flows built from reusable activities. Choose scenario, state, decision or combinatorial approaches according to the test objective and model, rather than forcing one style onto every system.
Reusable and resilient design
- Keep **test definitions, data, environment configuration and adapters** separate. A platform or tool change should primarily affect the corresponding adapter rather than every test.
- Maintain a **shared keyword catalog** with definitions, naming conventions and ownership. Consolidate repeated low-level sequences into meaningful higher-level actions.
- Provide standard **assertions, setup, teardown and error recovery**. Acquire required resources before a test and release them afterward; restore a known state before continuing.
- Use **condition-based waits** with bounded timeouts or supported event notifications. Fixed sleeps can be unnecessarily slow and still fail when the SUT is slower than expected.
- Select **test-generation coverage** to match the model: state transitions, transition sequences, scenarios, decisions or input combinations. Coverage criteria guide generation; adapters still determine how tests reach the SUT.
Deployment, risks and maintenance
Pilot and controlled rollout
- Choose a **representative, bounded pilot** that is important enough to show value without making critical delivery depend on an unproven solution. Reserve time, budget and developer support.
- Start with **high-value tests requiring manageable effort** and include relevant technical risks. Define acceptance criteria before the pilot and compare measured results with realistic targets.
- Use pilot findings to improve **estimates, architecture, usability, reporting and support**. An initial suite can succeed while its wider automation process still needs to mature.
- Roll out incrementally with **training, installation guidance and operating procedures**. Review both tool behavior and existing processes to remove unnecessary manual handoffs.
Repeatable deployment and compatibility
- Put **framework code, scripts, libraries, tools, datasets and environment definitions** under configuration management. Record compatible TAS, SUT and platform versions as a reproducible baseline.
- Use a **central artifact repository and automated installation/configuration** to deploy a consistent TAS across environments. Central distribution reduces version drift but does not replace validation.
- Verify **dependencies, permissions, connectivity, shared-resource conflicts and tool integrations** in the target environment. Compatibility with neighboring applications differs from portability to another platform.
- After OS, browser, tool or SUT changes, run **representative validation tests**, then expand according to risk. A supplier's backward-compatibility claim is evidence to assess, not proof that the TAS works.
- For an enhanced TAS with unresolved issues, compare **risks and benefits**, validate the candidate and retain a known-good baseline with a practical rollback procedure.
Maintenance and change impact
- **Corrective maintenance** fixes TAS defects. **Adaptive maintenance** accommodates environment or interface changes. **Perfective maintenance** improves performance, usability or maintainability.
- New **features, platforms, controls, APIs and data rules** can require changes to tests, keywords, adapters or tools. A faster release cadence can also expose execution-time and support limitations.
- When inheriting a TAS, inventory **architecture, dependencies, libraries, skills, configuration and documentation**. Understand abstractions and ownership before changing shared components.
- Reuse proven components where they fit, but reassess **scale and lifetime requirements**. Feed broadly useful improvements back into shared architecture through review and regression testing.
Automation metrics and reporting
Metrics that answer a decision
- **Internal TAS metrics** describe implementation quality, such as automation-code defect density, complexity and adherence to standards. Define units and counting rules consistently.
- **External TAS metrics** describe operational effectiveness and cost, such as execution duration, maintenance effort, reliability and manual effort displaced. Interpret each measure against the automation objective.
- **Equivalent Manual Test Effort (EMTE)** estimates the manual effort for comparable automated tests. It indicates execution effort displaced; subtract automation costs before treating it as net savings.
- Trend **SUT coverage** across builds to detect a suite falling behind new functionality. State the coverage basis and denominator; pass rate and test count do not measure code coverage.
- Track **tests needing maintenance, maintenance hours, false failures and analysis time** over releases. Distinguish a growing suite from deteriorating maintainability before drawing conclusions.
Logs for reproducible diagnosis
- Record **run, build and test identifiers**, SUT/TAS versions, environment configuration, timestamps, inputs, expected and actual results, and the failing step or exception.
- Distinguish **assertion failures, TAS errors, environment failures and tests not executed**. A script exception must not be presented as a confirmed SUT defect or silently counted as a pass.
- Use a **consistent log format and configurable trace levels**. Capture enough detail for diagnosis without overwhelming normal runs; protect sensitive data in logs and retained artifacts.
- Correlate **SUT and TAS logs** with synchronized clocks and shared identifiers. Preserve relevant stack traces, screenshots or state snapshots when they help reproduce a failure.
- For suspected degradation, collect targeted **request timings and resource measurements**, such as memory growth or dependency duration. Functional timing observations can reveal a risk without replacing a designed load test.
Reports, dashboards and trends
- An **execution report** summarizes scope, environment, versions, results, duration and exceptions for a run. Detailed logs support step-level diagnosis; the report makes the overall result assessable.
- Keep **historical results** keyed to builds and runs. A continuously updated dashboard supports distributed teams and allows drill-down into failures, rather than overwriting yesterday's evidence.
- Automate **metric collection, trend charts and distribution** where practical. Tailor management summaries and technical detail to their audiences, using text labels alongside status colors.
- A **failure is not a unique defect**: one defect can cause many test failures, and some failures come from the TAS or environment. Link confirmed defects to affected runs to distinguish recurring and new problems.
Transitioning tests to automation
Selecting and restructuring tests
- Prioritize **frequent, repeatable, valuable tests** with clear expected results and manageable setup. Daily build checks and stable regression paths often offer faster payback than rare, judgment-heavy cases.
- Use **risk and expected benefit** to order automation when time is limited. Frequency alone does not override business impact, technical feasibility or the cost of unreliable test data.
- Review the **correctness and completeness** of existing manual cases before conversion. Automated tests may be decomposed or reorganized; they need not copy the manual sequence literally.
- Automate **preconditions, setup and cleanup** where practical. Remove hidden ordering dependencies and isolate data so tests can run repeatably and, where appropriate, independently.
- Balance automated checks with **manual exploration and specialist assessment**. Where a UI is not reliably automatable, cover accessible lower interfaces and retain explicit manual coverage for the remaining UI behavior.
Regression, confirmation and new features
- **Confirmation testing** checks that a specific defect was fixed. **Regression testing** checks for adverse effects of change; useful automated confirmation tests can join the regression suite to detect recurrence.
- Integrate suitable **build acceptance and regression tests** into CI so they run soon after changes. Use the execution window and failure-analysis capacity to choose the right suite for each stage.
- For **new features**, collaborate early on testability, data and expected outcomes. Update or add testware and run affected existing tests against the changed SUT.
- Test components through suitable interfaces during development, then add **integration and end-to-end checks**. For event-driven systems, include relevant event sequences, exceptions and communication failures.
Verifying the automation solution
Validate installation and test behavior
- Check **installation repeatability**, configuration, dependency versions, connections and adapter behavior separately from whether individual test cases are correct.
- After configuration or instrumentation changes, verify the intended **SUT behavior and TAS behavior**. Check that hooks and intrusive tools have not distorted the result.
- Validate tests with **known passes and known failures**: both should retain their expected outcomes. A suite that always passes may have broken assertions or may not exercise its target.
- Check **expected results, preconditions, postconditions, cleanup and repeatability**. Test reusable assertions and keywords as software components, including failure paths and error handling.
Intermittent results and recovery
- A **false failure** reports a problem where the intended SUT behavior is correct. A **false pass** misses a real problem. Use explicit terms because positive/negative terminology varies between teams.
- Investigate **intermittent failures** through data, timing, order dependencies, resources and environment differences. A subsequent passing rerun does not establish that the earlier failure was harmless.
- If a test must be **quarantined**, track the coverage gap, owner and repair work, and use appropriate alternative checks. Do not hide unstable tests merely to improve the reported pass rate.
- After an abnormal termination, **preserve evidence before reset** where possible. Then restore consistent data and environment state before retrying or continuing dependent work.
Continuous improvement
Controlled data and repeatability
- Separate **test data and selection rules from scripts**. Use validated queries, fixtures or generators to supply eligible records without embedding changing business data in every test.
- Control **time-dependent data**, expiration rules and refreshes. Verify prerequisites before execution and create or renew suitable records rather than relying on a production copy remaining valid.
- Use **synthetic or appropriately anonymized data** and approved handling controls for sensitive information. Automating access does not by itself make production data suitable for testing.
- Centralize shared definitions to reduce duplication, while giving tests **isolated mutable records** where needed. Restore or clean up changes so one test does not corrupt another's assumptions.
Improving speed and maintainability
- Profile the suite and remove **redundant coverage and duplicated workflows** without losing important risk coverage. Extract reusable actions rather than maintaining the same sequence in many scripts.
- Fit execution windows through **risk-based subsets, smaller test units and planned scheduling**. Parallel execution helps only when environments, data, licensing and tests support safe independence.
- Do not delete valuable regression tests solely because they have not found a recent defect. Reassess **purpose, coverage, cost and risk** before retiring a test.
- Use measured **execution time, maintenance effort, reliability and user feedback** to prioritize improvements. Consolidate GUI helpers, improve keyword granularity and standardize setup or logging where evidence shows recurring cost.
- Validate improvements against a baseline and share reusable changes through the **TAA or framework** when appropriate. Keep release control and compatibility checks around shared improvements.