Separate framework roles

A runner discovers and schedules tests. An assertion library describes expected behavior. Browser automation controls pages, while fixtures prepare data and dependencies. Some tools combine these roles. Identify which capabilities your project already has before adding another overlapping framework to the repository.

Keep business expectations in test cases and hide repeated interaction details behind small helpers. A helper should make intent clearer, such as creating an unpaid invoice. Avoid a large custom framework that obscures assertions and requires its own debugging before a test failure becomes understandable.

Evaluate the execution model

Check how the framework handles asynchronous work, worker isolation, retries, and cleanup. Test a scenario that fails during setup and another that fails after a mutation. The resulting evidence should distinguish application errors from fixture errors without requiring a maintainer to rerun everything manually.

Compare local execution with continuous integration execution using your real build settings. Module format, browser dependencies, device drivers, and secrets can affect suitability. A tool that fits a small demonstration may need substantial integration work to support the repository's deployment and review workflow.

Use a focused proof of fit

Implement one representative happy path and two meaningful failures. Include a test data dependency and a delayed response if the application uses them. Record how long it takes another engineer to understand the code and diagnose the resulting failures from the saved artifacts.

Select the smallest framework arrangement that meets these needs. Document version constraints and configuration choices in the repository. Review the arrangement when maintenance costs grow, but avoid migrations driven only by popularity when the current tests still provide clear and reliable evidence of product behavior.

Working sheet

Framework selection criteria
CapabilityProbeDecision evidence
Async handlingDelayed resultReadable deterministic assertion
Fixture isolationParallel data changesNo cross-test interference
DiagnosticsIntentional failureUseful stack or trace
Team fitIndependent handoverEngineer can extend test
Download this worksheet (CSV)

Questions about choose and structure a test automation framework

Is Selenium a complete test framework?

WebDriver controls browsers. Teams normally combine it with a runner, assertions, fixtures, and reporting.

Should we build a framework from scratch?

Prefer established runner capabilities and small project helpers. Custom infrastructure creates maintenance work that needs a clear benefit.

How should I use the working sheet?

Download the CSV and replace the sample rows with evidence from your repository. Record a clear acceptance check and an owner for each item. Keep unresolved assumptions visible rather than treating the example as a completed assessment.

Sources and further reading

Examples are illustrative. They are not customer results, security guarantees, or a substitute for checking the documentation for your installed version.

Make the next change verifiable.

Getzilla is an open source workflow for changes to existing repositories. Inspect the project, define acceptance checks, and keep independent review in the loop.

See the repository workflow See current access and pricing