Friday, November 26, 2010

Test automation framework

A test automation framework is a set of assumptions, concepts and tools that provide support for automated software testing. The main advantage of such a framework is the low cost for maintenance. If there is change to any test case then only the test case file needs to be updated and the Driver Script and Startup script will remain the same. There's no need to update the scripts in case of changes to the application.

Choosing right framework/scripting technique helps in maintaining the costs and maintaining Costs associated with test scripting are due to the development effort and the maintenance efforts. The approach of scripting used during test automation has effect on the costs Various framework/scripting techniques are generally used:

  1. Linear (simple record and playback)
  2. Structured (uses control structures - typically 'if-else', 'switch', 'for', 'while' conditions/ statements)
  3. Hybrid
  4. Data-driven (data is separated and stored in external excel sheets)
  5. Keyword-driven

The Testing framework is responsible for:

  1. defining the format in which to express expectations
  2. creating a mechanism to hook into or drive the application under test
  3. executing the tests
  4. reporting results

No comments:

Post a Comment