liveBook · Manning

Testability

As explained in Software Testing with Generative AI

The degree to which a product's behavior and internal or external interfaces support effective testing.

Testability is the degree to which a product’s behavior and interfaces support effective testing. Semantic HTML and clear, stable attributes make UI automation and AI-generated page objects more reliable. section 7.1.2

A testable contact form

A contact form using stable ids such as name, email, phone, subject, and description lets a page object locate fields directly. When selectors become complex because ids are autogenerated or elements are missing, generated code requires manual updates. Testability also depends on domain context: a generic phone number may violate an 11-digit validation rule.

Assess testability through practical signals:

  • Prefer semantic elements and predictable selectors. section 7.1.2
  • Verify generated test data against field validation rules. section 7.1.2

How Software Testing with Generative AI covers it

How deep it goes
Explains selector stability and validation context through a worked contact-form example, but stops short of a general measurement framework.
Examples
Uses a semantically marked-up contact form, Selenium page objects, selectors, and phone-number test data.
What you can do after
Evaluate whether product markup and validation context will support reliable automated checks and AI-assisted code generation.
How it connects
Connects UI automation with HTML selectors, page objects, AI tools, and validation rules.

Also explained in

Compare how 3 books explain testability →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Software Testing with Generative AI. The section links point to the parts of the book it draws on.