liveBook · Manning

Portability

As explained in BDD in Action, Second Edition

Test portability is the property of test automation code that allows it to operate across different contexts or integration tools with limited change.

Test portability lets automation code operate across contexts and integration tools with limited change. Layered architecture separates business-focused test behavior from lower-level integration details, allowing reusable code to support multiple suites and teams. section 15.0

Design portability around a stable programming model and an replaceable integration layer:

  • Abstract the underlying test integration tool behind consistent APIs. section 15.2.1
  • Keep test code unchanged when running component tests with Playwright or cross-browser tests with WebdriverIO. section 15.2.1
  • Reduce integration-tool lock-in so a supported tool can be replaced without rewriting existing tests. section 15.2.1

One test codebase, different web tools

A team can use Playwright for component tests and WebdriverIO for cross-browser tests while retaining the same test code. The portable Integration layer absorbs the tool-specific differences. section 15.2.1

How BDD in Action, Second Edition covers it

How deep it goes
Explains layered abstraction and consistent APIs, reaching tool lock-in mitigation without detailing implementation code.
Examples
Uses Playwright for component tests and WebdriverIO for cross-browser tests without changing test code.
What it assumes
Builds on layered architecture and the Specification, Domain, and Integration layers.
What you can do after
Build reusable tests that switch integration tools without rewriting the existing test suite.
How it connects
Connects layered architecture, Specification layer, Domain layer, Integration layer, Playwright, WebdriverIO, and Serenity/JS.

Also explained in

Compare how 5 books explain portability →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of BDD in Action, Second Edition. The section links point to the parts of the book it draws on.