Friday, July 18, 2008

Plug and play model – Test Automation Architecture

  • Each regression test scenario under will be implemented using a scenario level script (Driver Script). The scenario level test script will implement calls to component level scripts, which will be executed in sequence to complete the test execution flow. Such a plug and play model will enable us to add/remove components from the test scripts as and when modifications are required. Also, component scripts will be reused inside multiple scenario level test scripts.

    Example:
    (Scenario script header)
    (Initializations – Load the OR)
    (Initializations – Load the Excel Sheet)
    (Initializations – Load the Functional Library)
    (Initializations – Load the Expectation handling)
    Call ( login)
    Call (Test1)
    Call (Test2)
    Call (Test3)
    Call (Test4)
    Call (logout)
    (Initializations – Close all Initializations)
  • The component level scripts are usually independent. When a modification is required in the “PO validation” process, the particular components only need to be worked on. Also, the modification will reflect in all scenario level scripts where “PO validation” is called.

No comments: