Framework-Driven (Structured) Test Scripts

Framework-driven testing isolates the AUT from the test scripts. It provides a set of functions in a shared function library. The functions are treated as if they were basic commands of the test tool's programming language. Framework-based test scripts can be programmed independently of the UI.

Framework-driven testing can occur at multiple levels (18):

  • Menu/command level— executing simple commands

  • Object level— performing actions on specific things

  • Task level— taking care of specific, commonly repeated tasks

Developing Framework-Driven Test Scripts

The following hints will help you develop framework-based test scripts (26).

  1. Write functions for all features of the application under test.

  2. Write functions ...

Get Just Enough Software Test Automation now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.