Thursday, June 17, 2010

Structure outline of Automation Framework


Hi All,

Generic structure for Keyword Driven Framework:

·         Test case                                                             (Excel OR XML OR ELSE)
·         Driver script
·         Data script                                                           ( To collect & Validate the test data & Keyword from test case excel )
·         Common Functional Library                        (Common for all the test)
·         Business function & procedure                  (Can be specific to test)
·         Supportive library                                           (Application Independent)
·         Scripts                                                                   ( Specific to test  - only if required)
·         Test result
Configuration files which contain following thing: 

1.       File 1:  Contain the variable to make debug mode enable/disable.
a.       Can also include flag to install\Uninstall application.
b.      Point to re-configure the test environment.
c.       Flag to make different level of validation\Check point before executing test.
2.       File 2 :  Which contain all the required path of files. (Application, result, etc)
3.       File 3 : which contain global variable & QTP environment variable  used as reference for validation,  to invoke QTP & set the test environment.
Optional Feature:

1.       Maintaining result history separately, which can be maintain in such way that we can extract history detail of each test/module.
2.       Generating mail at completion of each scheduled run with result & important messages of failure.

2 comments:

  1. Hi Deepak,

    Thanks for this informative article.

    This article gives a very clear picture of what the QTP automation framework looks like. I think understanding the framework is the best place to start when we require to learn an automation tool.

    From this article, I suppose the actions that we invoke on the test-data are the keywords which we are discussing about here. Where are these keywords stored? If the test datatype changes will the keywords still work?

    Regards,
    Aruna
    http:\\technologyandleadership.com
    "The intersection of Technology and Leadership"

    ReplyDelete
  2. Well Thanks a lot for appreciation and for your interesting question.

    Now Keywords can be stored in any file excel,XML,text file, etc. It's depend on your driver script how it read the keywords. For users easiness i would suggest to put in Excel.

    Now Test data on which keyword will perform action. Now where to store n how to store test data its depend on various parameter but the logic of reading them its depend on your keywords implementation only.

    Normally automation engineer put the keyword called "Load Test DATA" which will load all the test data in required format with required modification. After the actual test flow start.

    Hope I have put my required thoughts on your comments.

    If you have any thing to add then please go ahead.

    Thanks,
    Deepak

    ReplyDelete

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | JCpenney Printable Coupons