Test automation framework

This is an old revision of this page, as edited by Anandgopalkri (talk | contribs) at 15:12, 11 December 2011. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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. Ideally, there is no need to update the scripts in case of changes to the application.

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

Various framework/scripting techniques are generally used:

  1. Linear (procedural code, possibly generated by tools like those that use record and playback)
  2. Structured (uses control structures - typically ‘if-else’, ‘switch’, ‘for’, ‘while’ conditions/ statements)
  3. Data-driven (data is persisted outside of tests in a database, spreadsheet, or other mechanism)
  4. Keyword-driven
  5. Hybrid (two or more of the patterns above are used)

The Testing framework is responsible for:[1]

  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

Another view Automation Framework is not a tool to perform some specific task, but is an infrastructure that provides a complete solution where different tools work together in an unified manner hence providing a common platform to the automation engineer using them.

Ref: http://code.google.com/p/vauto/

Test Automation Interface Test Automation Interface is a platform that provides a single Workspace for incorporating multiple testing tools and frameworks for System/Integration testing of application under test. The goal of Test Automation Interface is to simplify the process of mapping tests to business criteria without coding coming in the way of the process. Test Automation Interface is expected to improve the efficiency and flexibility of maintaining test scripts.

Test Automation Interface comprises of the following core modules:

  • Interface Engine
  • Interface Environment
  • Object Repository
Test Automation Interface Model

Interface Engine: Interface Engine is built on top of Interface Environment. Interface Engine comprises of a parser and a test runner. The parser is present to parse the object files coming from the object repository in to the test specific scripting language. Test runner deals with executing the test scripts using a Test Harness.

Interface Environment: Interface Environment comprises of Product/Project Library and Framework Library. Framework Library have modules related with the overall test suite while the Product/Project Library have modules specific to the application under test.

Object Repository: Object Repository is a collection of UI/Application object data recorded by the testing tool while exploring the application under test.


References

  1. ^ "Selenium Meet-Up 4/20/2010 Elisabeth Hendrickson on Robot Framework 1of2". Retrieved 2010-09-26.