Ruankao Software Evaluator (Intermediate) study materials
Ruankao Software Evaluator (Intermediate) study resources

Ruankao Software Evaluator (Intermediate): Test Automation, Tools and Environments

Ruankao Software Evaluator (Intermediate) · Work through your exam, one topic at a time.

All guide sections

Test Automation, Tools and Environments

Test Automation, Tools and Environments

This domain asks when automation pays, which framework architecture fits a situation, how to choose a tool, and what a controlled test environment requires. Expect ROI arithmetic and framework-recognition questions.

When to automate and when not

Automation suits repeatable, stable, high-volume checks: regression suites, data-driven input validation, load generation, and checks that a human cannot perform precisely. It does not suit exploratory testing, usability judgement, or one-off tests whose build cost exceeds their reuse. Benefits are repeatability, speed, coverage of unattended runs and evidence for audits; costs are tool licensing, script development, maintenance and skills.

Framework architectures

  • Linear/record-playback: fragile, no abstraction, breaks on UI change.
  • Modular: scripts are built from reusable function modules.
  • Library architecture: shared libraries plus a driver, adding robustness.
  • Data-driven: the same script runs against external data sets, separating logic from data.
  • Keyword-driven: test steps are described by keywords so non-programmers can compose tests.
  • Hybrid: combines data-driven and keyword-driven elements; the most common industrial form.
  • BDD/ATDD: specifications in structured natural language linked to step definitions.
  • Page Object Model: UI locators and behaviour are encapsulated per page, reducing maintenance when the interface changes.

Tool categories

Test management and defect tracking; functional UI automation; performance and load generation; unit test frameworks; static analysis and code coverage; security scanners (SAST, DAST); test data generation; environment virtualisation. Selection criteria: fit to the technology stack, integration with existing management tools, total cost of ownership, learning curve, vendor support and reporting capability.

Worked example

A regression suite takes 8 person-hours per cycle and there are 24 cycles a year: 192 hours manually. Automating costs 60 hours to build plus 2 hours of maintenance per cycle: 60 + 48 = 108 hours. Saving = 84 hours in year one, and more in later years because the build cost is not repeated. If the project only has 4 cycles, cost is 60 + 8 = 68 versus 32 manual - automation loses. The reasoning, not the arithmetic, is what earns marks: amortise the build cost over the number of cycles.

Environments

A test environment must record hardware, operating system and patches, database version, network configuration, middleware, test data and configuration items under change control. Environment mismatch is a leading cause of defects that cannot be reproduced.

Traps

Claiming automation finds more defects (it executes more consistently, not more creatively); ignoring maintenance as the dominant lifetime cost; counting a flaky test as a pass; assuming a commercial tool outperforms an open-source one without a requirement-based comparison.

Key ideas

Automation investment is justified by reuse across cycles, and the framework must decouple test logic from data and from the interface.