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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.