Thursday, February 24, 2011

Modular Framework

Test Script Modularity


The test script modularity framework requires the creation of small, independent scripts that represent modules, sections, and functions of the application-under-test. These small scripts are then used in a hierarchical fashion to construct larger tests, realizing a particular test case.

Of all the frameworks, this is the simplest to grasp and master. It's a well-known programming strategy to build an abstraction layer in front of a component to hide the component from the rest of the application. This insulates the application from modifications in the component and provides modularity in the application design. The test script modularity framework applies this principle of abstraction or encapsulation in order to improve the maintainability and scalability of automated test suites.



Advantages:
§    Fastest way to generate script
§    Modular division of scripts leads to easier maintenance

Disadvantages:
§   Cannot make use of reusable libraries
§   Cannot drive the data from database