SlideShare a Scribd company logo
1 of 13
Download to read offline
QTKey - Automation Framework




DISCLAIMER                                                                                            Version 1.0
Verbatim copying and distribution of this entire article are permitted worldwide, without
Royalty, in any medium, provided this notice is preserved.                                  Implementation Guide
QTKey - Automation Framework (Implementation Guide)

   Table of Contents
   1. Purpose of the Document                                            ........................................ 2

   2. Package Content and their Significance                             ..................................... 3-4

   3. Object Repository Preparation

       3.1. Creation of Object Repository in QTP (.tsr file)             ........................................ 5

       3.2. Convert Object Repository (.tsr file) in Excel (.xls file)   ........................................ 6

   4. Test Preparation                                                   ........................................ 7

       4.1 Test Case Preparation                                         ........................................ 8

            4.1.1. Generate Object List                                  ........................................ 8

            4.1.2. Select Objects                                        ........................................ 9

            4.1.3. Select Keywords                                       ........................................ 9

            4.1.4. Enter Parameters                                      ........................................ 9

            4.1.5. Select Snapshot Option                                ...................................... 10

       4.2. Test Suite Preparation                                       .......................................10

   5. Run Suite                                                          .......................................11

   6. Result Analysis                                                    .......................................12

   7. Files Location                                                     .......................................13

   8. Known Issues                                                       .......................................14

   9. Enhancement Plan                                                   .......................................15




http://www.crestechglobal.com/
QTKey - Automation Framework (Implementation Guide)

   1. Purpose of the Document
   This document is prepared to provide a basic guideline to implement QtKey for testing any standard
   Web application. This Keyword driven Framework is domain and application independent which
   performs selected actions and verification. In the keyword driven approach all test scripts are developed
   in excel that is processed by the main function and executed. Complete automation comprises of
   following steps:-


   1. Object Repository Preparation
   2. Test Scripts Preparation
   3. Test Suite Preparation
   4. Execution
   5. Result Analysis




         Object
       Repository                  Test Scripts                  Test Suite                   Execution
       Preperation




                                             Result Analysis




http://www.crestechglobal.com/                                                                                 1
QTKey - Automation Framework (Implementation Guide)

      2. Package Content and their Significance
      QtKey framework (URL Location) once unzipped will contain following folder and files structure:-


                                                       QtKey Keyword                Export_OR_InExcel_Build
                                                       Manual (1.0).pdf                    _v1.0.vbs

                        Documentation
                                                     QtKey User Manual
                                                         (1 0).pdf


                                                      Export Object Rep            KeyWords_Build_v1.0.vbs
  QTKey_FrameWork_1.0




                                                          to Excel



                                                           Library                    Utility_Build_v1.0.vbs

                         FrameWork

                                                     Library_UserDefined             XlTest_Build_v1.0.vbs




                                                          RunSuite                  userDefinedFunction.qfl



                                                       Data Pool Files                    DataPool.xls




                                                   Object Repository Files           Mtours_Application.tsr

                        Sample Project

                                                      Test Case Scripts              Mtours_Application.xls



                                                          Test Suite                       Flight1.xls

                          Templates

                                                    TestCase_Tamplate.xls              TestSuite_Flight.xls



                         launch.vbs                TestSuite_Tamplate.xls




http://www.crestechglobal.com/                                                                                 2
QTKey - Automation Framework (Implementation Guide)
   Location of key files:-

     File/Folder Name                    Locations

     Test Suite                          QtKey_FrameWork_1.0Sample ProjectTest Suite


     Test Scripts                        QtKey_FrameWork_1.0Sample ProjectTest Case Scripts


     Object Repository                   QtKey_FrameWork_1.0Sample ProjectObject Repository Files


     Report                              QtKey_FrameWork_1.0FrameWorkRunSuiteRes1

                                         QtKey_FrameWork_1.0FrameWorkRunSuiteRes1TestSuite_
     Snapshot                            Flight_SnapShots

     Run Suite                           QtKey_FrameWork_1.0FrameWork




   Steps to implement framework:-
   1. Extract framework package to desired location.
   2. Create object repository for the AUT (explained in detail under section 3.1)
   3. Convert the object repository (.tsr) file to excel file (explained in detail under section 3.2) and
     put it under the object repository path mentioned in above table.
   4. Prepare test scripts (explained in detail under section 4 )
   5. Prepare test suite (explained in detail under section 5 )
   6. Open Run Suite test case in QTP (Path given above) and start execution.(explained in detail
     under section 6)
   7. Evaluate the result (explained in detail under section 7)




http://www.crestechglobal.com/                                                                              2
QTKey - Automation Framework (Implementation Guide)

   3. Object Repository Preparation
   Preparation of object repository is a onetime effort, and users needs to do the following activity:
   1. Creation of object repository in QTP (.tsr file)
   2. Convert object repository (.tsr file) in excel (.xls file)




            3.1. Creation of Object Repository in QTP (.tsr file)
            There are two ways to create object repository in QTP.
            1. By adding different objects in object repository (OR).
               User should follow the following steps for creating object repository.
               a) Launch the QTP application.
               b) Open a blank test
               c) Access the “Resource Object Repository” Link (Ctr+R)
               d) Click on “Add Object to Local Repository” button
               e) Move hand pointer on object ,and click on object which you want to add in OR
               f) Click on “OK” button of “Object Selection-Add to Repository” pop-up window.
               g) Repeat the steps from “d)” to “f)” for adding more objects in repository.
               h) Access the “FileExport Local Objects…” link and save the object repository
                 (.tsr file).


            2. By navigating in web application in recording mode of QTP
               a) Launch the QTP 9.2 application.
               b) Open a blank test
               c) Click on “Record” button.
               d) Navigate in web application (over desired objects )
                 Access the “FileExport Local Object…”link and save the object repository(.tsr file)


            Note: - Detailed steps to create object repository for the new users can be found in QTP tutorial
            (http://thinh1808.files.wordpress.com/2008/03/qtp-tutorial.pdf)




http://www.crestechglobal.com/                                                                                  3
QTKey - Automation Framework (Implementation Guide)

         3.2. Convert Object Repository (.tsr file) in Excel (.xls file)
         User need to convert object repository (.tsr file) in to an excel sheet (.xls file). For
         converting the object repository user should follow the following steps:
           a) Under “Export Object Rep to Excel” folder double click
              “Export_OR_InExcel_Build _v1.0.vbs” file.                                          Double Click




           b) Enter the full path of object repository file (.tsr) which you want to convert.




                                                                                       Enter full path of Object
                                                                                        Repository File (*.tsr)




           c) Click on “OK” button
           d) Objects in the .tsr file will get listed with its properties in the form of excel sheet.
           e) Enter the full path with object repository name (.xls) where you want to save
              converted object repository.


                                                                                         Enter full path where
                                                                                         you want converted
                                                                                        Object repository excel
                                                                                             sheet to save




http://www.crestechglobal.com/                                                                                     4
QTKey - Automation Framework (Implementation Guide)

   4. Test Preparation
   User need to prepare following two excel sheets:


   Test Case

                               Object list
                            Generation Button
    “1” to skip
     step sheet
                        OR excel                    Iteration                Step Description
        Path
                        sheet Path                   Count




                              Object List         Action List            Parameter         Output     “Yes” to take
         Test case ID         Dropdown            Dropdown                  List          Parameter     Snapshot



   Test Suite

               Load              Load           Load utility
             Keywords          Excel OR          functions




        Load User              Run Test case             Load actual
      Define Function            Function                OR(.tsr) file




http://www.crestechglobal.com/                                                                                        5
QTKey - Automation Framework (Implementation Guide)

             4.1. Test Case Preparation
             For test case preparation, user needs to do following activities:


                      4.1.1. Generate Object List
                      a) Click on “Generate Object List” button on test case template.



     Click here




                      b) Enter the path of OR (.xls file) in message box.




    Enter Excel
  Object Repository
      Path here



                      c) Click OK
                      d) All objects in OR will be displayed in the dropdown.




     Object List




                      e) Drag first cell of “Object” column in test case template up to last cell of the
                         same column.



http://www.crestechglobal.com/                                                                             6
QTKey - Automation Framework (Implementation Guide)
                      4.1.2. Select Objects
                      Each keyword requires object reference for which user need to select an Object from the
                      dropdown on each cell of “Object” column of test case template.


    Select Object
    from the list




                      4.1.3. Select Keywords
                      User need to select keyword from dropdown on “Keyword” column of the test case
                      template, so that action can be performed on the object. Refer available keyword's details
                      from “KeyWord_Repository.xls file




   Select correct
   keyword from
       the list




                      4.1.4. Enter Parameters
                      There are some keywords which required some value to perform action. So user need to
                      give parameter for those keywords in “parm” column in the test case template.
                      For example:
                      1. “editField” keyword requires some text such as “name3” etc.
                      2. “webBrowserOpen” keyword requires URL such as “https://www.gmail.com.”



    Enter value
  corresponding to
  object and action




http://www.crestechglobal.com/                                                                                     7
QTKey - Automation Framework (Implementation Guide)
                  4.1.5. Select Snap Shot Option
                  This gramework can take the Snapshot of each step of test case, for which user required to
                  mark as “YES” in the last column (snapshot) of each row.


                  Note: User can skip any keyword action by entering “1” in disable column.



         4.2. Test Suite Preparation
         For execution of test cases user required to create test suite in which user give the path of “OR” and
         “Test case”.
         Step to create test suit are as follow:
         a) Enter the path of OR (.xls file) in the “parm_002” column in test suit template. This
            “OR” path must be on the same row in which “ORCode” keyword written.
         b) Enter the path of OR (.tsr file) in the “parm_002” column in test suit template. This
            “OR” path must be on the same tow in which “LoadObjRepositoryCode” keyword
            written.
         c) Give the path of test case (.xls file) in the “parm_001 “column in test suit template.
            This test cases path must be on the same row in which “RunTest” keyword written.


                                                                        Excel OR Path




                                              Test Script Path         Actual OR (.trs)
                                                                            Path




http://www.crestechglobal.com/                                                                                    8
QTKey - Automation Framework (Implementation Guide)

   5. Run Suite
   To run the script user required have to do the following step:
   1. Open the “RunSuite” test case in QTP (Found in QTP_FrameWork_Build_2.0 > Framework)




                                                                                Select “Run Suite”
   2. Click on “Run” button at the QTP tool bar (Press F5).                        and Open it

   3. Framework required the test suite path for which a new message
     box generated, in which user has to enter the path of test suite.



                                                                                           Enter Test
                                                                                           Suite Path




http://www.crestechglobal.com/                                                                          9
QTKey - Automation Framework (Implementation Guide)
   4. Message box will be displayed once the complete execution is finished. It will show the path
     where user can find the test results, MsgLog and snapshots.




   6. Analysis Result
   User can find the run result from ResultDir in environment setting. This folder contains all the logs, test
   results and snapshots.



   7. Known Issues
   1. Framework does not handle exception.
   2. For QTP version higher than 9.2, execution of file “Export_OR_InExcel_Build _v1.0.vbs” throws an
     error, which can be ignored.




http://www.crestechglobal.com/                                                                                   10

More Related Content

What's hot

What's hot (20)

Some useful tips with qtp
Some useful tips with qtpSome useful tips with qtp
Some useful tips with qtp
 
Concurrency with java
Concurrency with javaConcurrency with java
Concurrency with java
 
Postman quick-reference-guide 2021
Postman quick-reference-guide 2021Postman quick-reference-guide 2021
Postman quick-reference-guide 2021
 
Testing Django Applications
Testing Django ApplicationsTesting Django Applications
Testing Django Applications
 
In-depth caching in Varnish - GOG Varnish Meetup, march 2019
In-depth caching in Varnish - GOG Varnish Meetup, march 2019In-depth caching in Varnish - GOG Varnish Meetup, march 2019
In-depth caching in Varnish - GOG Varnish Meetup, march 2019
 
Commons Pool and DBCP
Commons Pool and DBCPCommons Pool and DBCP
Commons Pool and DBCP
 
Introduction+To+Java+Concurrency
Introduction+To+Java+ConcurrencyIntroduction+To+Java+Concurrency
Introduction+To+Java+Concurrency
 
Java Concurrency, Memory Model, and Trends
Java Concurrency, Memory Model, and TrendsJava Concurrency, Memory Model, and Trends
Java Concurrency, Memory Model, and Trends
 
Sbt Concepts - Tips, Tricks, Sandbox, ... 02/2013
Sbt Concepts - Tips, Tricks, Sandbox, ... 02/2013Sbt Concepts - Tips, Tricks, Sandbox, ... 02/2013
Sbt Concepts - Tips, Tricks, Sandbox, ... 02/2013
 
Apache ZooKeeper
Apache ZooKeeperApache ZooKeeper
Apache ZooKeeper
 
Everything as a code
Everything as a codeEverything as a code
Everything as a code
 
Java concurrency
Java concurrencyJava concurrency
Java concurrency
 
DevOps Enabling Your Team
DevOps Enabling Your TeamDevOps Enabling Your Team
DevOps Enabling Your Team
 
Concurrency in Java
Concurrency in  JavaConcurrency in  Java
Concurrency in Java
 
Kubernetes
KubernetesKubernetes
Kubernetes
 
The Ring programming language version 1.9 book - Part 81 of 210
The Ring programming language version 1.9 book - Part 81 of 210The Ring programming language version 1.9 book - Part 81 of 210
The Ring programming language version 1.9 book - Part 81 of 210
 
Reactive server with netty
Reactive server with nettyReactive server with netty
Reactive server with netty
 
Apache Commons Pool and DBCP - Version 2 Update
Apache Commons Pool and DBCP - Version 2 UpdateApache Commons Pool and DBCP - Version 2 Update
Apache Commons Pool and DBCP - Version 2 Update
 
Spock
SpockSpock
Spock
 
The Ring programming language version 1.6 book - Part 80 of 189
The Ring programming language version 1.6 book - Part 80 of 189The Ring programming language version 1.6 book - Part 80 of 189
The Ring programming language version 1.6 book - Part 80 of 189
 

Viewers also liked (15)

Tugas kecil ppwk
Tugas kecil ppwkTugas kecil ppwk
Tugas kecil ppwk
 
Zulfin
ZulfinZulfin
Zulfin
 
اليوتيوب
اليوتيوباليوتيوب
اليوتيوب
 
الرسوم
الرسومالرسوم
الرسوم
 
14 tcn 183 2006 den 14 tcn 185-2006 ban hanh ve da xay dung cong trinh thuy loi
14 tcn 183 2006 den 14 tcn 185-2006 ban hanh ve da xay dung cong trinh thuy loi14 tcn 183 2006 den 14 tcn 185-2006 ban hanh ve da xay dung cong trinh thuy loi
14 tcn 183 2006 den 14 tcn 185-2006 ban hanh ve da xay dung cong trinh thuy loi
 
Nest thermostat review
Nest thermostat reviewNest thermostat review
Nest thermostat review
 
Chapter 13 dramuh
Chapter 13 dramuhChapter 13 dramuh
Chapter 13 dramuh
 
Chapter 10 polly
Chapter 10 pollyChapter 10 polly
Chapter 10 polly
 
Mindreadingcomputer
Mindreadingcomputer Mindreadingcomputer
Mindreadingcomputer
 
اليوتيوب في التعليم
اليوتيوب في التعليماليوتيوب في التعليم
اليوتيوب في التعليم
 
Chapter 11 servo romance
Chapter 11 servo romanceChapter 11 servo romance
Chapter 11 servo romance
 
Man is a social animal
Man is a social animalMan is a social animal
Man is a social animal
 
Wimppt
WimpptWimppt
Wimppt
 
Airbus Internship Presentation 2012
Airbus Internship Presentation 2012Airbus Internship Presentation 2012
Airbus Internship Presentation 2012
 
Multisensor Data Fusion : Techno Briefing
Multisensor Data Fusion : Techno BriefingMultisensor Data Fusion : Techno Briefing
Multisensor Data Fusion : Techno Briefing
 

Similar to Automation framework123

Qtp framework implementation_guide_v1
Qtp framework implementation_guide_v1Qtp framework implementation_guide_v1
Qtp framework implementation_guide_v1
Saurabh Singh
 
Qtp material for beginners
Qtp material for beginnersQtp material for beginners
Qtp material for beginners
Ramu Palanki
 
QTP Interview Questions and answers
QTP Interview Questions and answersQTP Interview Questions and answers
QTP Interview Questions and answers
Rita Singh
 
Interview qutions
Interview qutionsInterview qutions
Interview qutions
satyaragha
 
Qtp interview questions
Qtp interview questionsQtp interview questions
Qtp interview questions
Ramu Palanki
 
Qtp interview questions
Qtp interview questionsQtp interview questions
Qtp interview questions
Ramu Palanki
 
Comparative Development Methodologies
Comparative Development MethodologiesComparative Development Methodologies
Comparative Development Methodologies
elliando dias
 

Similar to Automation framework123 (20)

Qtp framework implementation_guide_v1
Qtp framework implementation_guide_v1Qtp framework implementation_guide_v1
Qtp framework implementation_guide_v1
 
ssssssssss
ssssssssssssssssssss
ssssssssss
 
Qtp material for beginners
Qtp material for beginnersQtp material for beginners
Qtp material for beginners
 
Qtp faqs
Qtp faqsQtp faqs
Qtp faqs
 
Qtp stuff
Qtp stuffQtp stuff
Qtp stuff
 
Qtp basic stuff
Qtp basic stuffQtp basic stuff
Qtp basic stuff
 
Servlets
ServletsServlets
Servlets
 
Automation Framework 042009 V2
Automation Framework   042009  V2Automation Framework   042009  V2
Automation Framework 042009 V2
 
QTP Interview Questions and answers
QTP Interview Questions and answersQTP Interview Questions and answers
QTP Interview Questions and answers
 
QTP Faqs
QTP FaqsQTP Faqs
QTP Faqs
 
SAP Testing Training
SAP Testing TrainingSAP Testing Training
SAP Testing Training
 
Hybrid framework
Hybrid frameworkHybrid framework
Hybrid framework
 
Automation Framework 042009 V2
Automation Framework   042009  V2Automation Framework   042009  V2
Automation Framework 042009 V2
 
Interview qutions
Interview qutionsInterview qutions
Interview qutions
 
Qtp interview questions
Qtp interview questionsQtp interview questions
Qtp interview questions
 
Qtp interview questions
Qtp interview questionsQtp interview questions
Qtp interview questions
 
Qtp day 1
Qtp day 1Qtp day 1
Qtp day 1
 
Comparative Development Methodologies
Comparative Development MethodologiesComparative Development Methodologies
Comparative Development Methodologies
 
Hp Quick Test Professional
Hp Quick Test ProfessionalHp Quick Test Professional
Hp Quick Test Professional
 
Build Your Own CaaS (Container as a Service)
Build Your Own CaaS (Container as a Service)Build Your Own CaaS (Container as a Service)
Build Your Own CaaS (Container as a Service)
 

Automation framework123

  • 1. QTKey - Automation Framework DISCLAIMER Version 1.0 Verbatim copying and distribution of this entire article are permitted worldwide, without Royalty, in any medium, provided this notice is preserved. Implementation Guide
  • 2. QTKey - Automation Framework (Implementation Guide) Table of Contents 1. Purpose of the Document ........................................ 2 2. Package Content and their Significance ..................................... 3-4 3. Object Repository Preparation 3.1. Creation of Object Repository in QTP (.tsr file) ........................................ 5 3.2. Convert Object Repository (.tsr file) in Excel (.xls file) ........................................ 6 4. Test Preparation ........................................ 7 4.1 Test Case Preparation ........................................ 8 4.1.1. Generate Object List ........................................ 8 4.1.2. Select Objects ........................................ 9 4.1.3. Select Keywords ........................................ 9 4.1.4. Enter Parameters ........................................ 9 4.1.5. Select Snapshot Option ...................................... 10 4.2. Test Suite Preparation .......................................10 5. Run Suite .......................................11 6. Result Analysis .......................................12 7. Files Location .......................................13 8. Known Issues .......................................14 9. Enhancement Plan .......................................15 http://www.crestechglobal.com/
  • 3. QTKey - Automation Framework (Implementation Guide) 1. Purpose of the Document This document is prepared to provide a basic guideline to implement QtKey for testing any standard Web application. This Keyword driven Framework is domain and application independent which performs selected actions and verification. In the keyword driven approach all test scripts are developed in excel that is processed by the main function and executed. Complete automation comprises of following steps:- 1. Object Repository Preparation 2. Test Scripts Preparation 3. Test Suite Preparation 4. Execution 5. Result Analysis Object Repository Test Scripts Test Suite Execution Preperation Result Analysis http://www.crestechglobal.com/ 1
  • 4. QTKey - Automation Framework (Implementation Guide) 2. Package Content and their Significance QtKey framework (URL Location) once unzipped will contain following folder and files structure:- QtKey Keyword Export_OR_InExcel_Build Manual (1.0).pdf _v1.0.vbs Documentation QtKey User Manual (1 0).pdf Export Object Rep KeyWords_Build_v1.0.vbs QTKey_FrameWork_1.0 to Excel Library Utility_Build_v1.0.vbs FrameWork Library_UserDefined XlTest_Build_v1.0.vbs RunSuite userDefinedFunction.qfl Data Pool Files DataPool.xls Object Repository Files Mtours_Application.tsr Sample Project Test Case Scripts Mtours_Application.xls Test Suite Flight1.xls Templates TestCase_Tamplate.xls TestSuite_Flight.xls launch.vbs TestSuite_Tamplate.xls http://www.crestechglobal.com/ 2
  • 5. QTKey - Automation Framework (Implementation Guide) Location of key files:- File/Folder Name Locations Test Suite QtKey_FrameWork_1.0Sample ProjectTest Suite Test Scripts QtKey_FrameWork_1.0Sample ProjectTest Case Scripts Object Repository QtKey_FrameWork_1.0Sample ProjectObject Repository Files Report QtKey_FrameWork_1.0FrameWorkRunSuiteRes1 QtKey_FrameWork_1.0FrameWorkRunSuiteRes1TestSuite_ Snapshot Flight_SnapShots Run Suite QtKey_FrameWork_1.0FrameWork Steps to implement framework:- 1. Extract framework package to desired location. 2. Create object repository for the AUT (explained in detail under section 3.1) 3. Convert the object repository (.tsr) file to excel file (explained in detail under section 3.2) and put it under the object repository path mentioned in above table. 4. Prepare test scripts (explained in detail under section 4 ) 5. Prepare test suite (explained in detail under section 5 ) 6. Open Run Suite test case in QTP (Path given above) and start execution.(explained in detail under section 6) 7. Evaluate the result (explained in detail under section 7) http://www.crestechglobal.com/ 2
  • 6. QTKey - Automation Framework (Implementation Guide) 3. Object Repository Preparation Preparation of object repository is a onetime effort, and users needs to do the following activity: 1. Creation of object repository in QTP (.tsr file) 2. Convert object repository (.tsr file) in excel (.xls file) 3.1. Creation of Object Repository in QTP (.tsr file) There are two ways to create object repository in QTP. 1. By adding different objects in object repository (OR). User should follow the following steps for creating object repository. a) Launch the QTP application. b) Open a blank test c) Access the “Resource Object Repository” Link (Ctr+R) d) Click on “Add Object to Local Repository” button e) Move hand pointer on object ,and click on object which you want to add in OR f) Click on “OK” button of “Object Selection-Add to Repository” pop-up window. g) Repeat the steps from “d)” to “f)” for adding more objects in repository. h) Access the “FileExport Local Objects…” link and save the object repository (.tsr file). 2. By navigating in web application in recording mode of QTP a) Launch the QTP 9.2 application. b) Open a blank test c) Click on “Record” button. d) Navigate in web application (over desired objects ) Access the “FileExport Local Object…”link and save the object repository(.tsr file) Note: - Detailed steps to create object repository for the new users can be found in QTP tutorial (http://thinh1808.files.wordpress.com/2008/03/qtp-tutorial.pdf) http://www.crestechglobal.com/ 3
  • 7. QTKey - Automation Framework (Implementation Guide) 3.2. Convert Object Repository (.tsr file) in Excel (.xls file) User need to convert object repository (.tsr file) in to an excel sheet (.xls file). For converting the object repository user should follow the following steps: a) Under “Export Object Rep to Excel” folder double click “Export_OR_InExcel_Build _v1.0.vbs” file. Double Click b) Enter the full path of object repository file (.tsr) which you want to convert. Enter full path of Object Repository File (*.tsr) c) Click on “OK” button d) Objects in the .tsr file will get listed with its properties in the form of excel sheet. e) Enter the full path with object repository name (.xls) where you want to save converted object repository. Enter full path where you want converted Object repository excel sheet to save http://www.crestechglobal.com/ 4
  • 8. QTKey - Automation Framework (Implementation Guide) 4. Test Preparation User need to prepare following two excel sheets: Test Case Object list Generation Button “1” to skip step sheet OR excel Iteration Step Description Path sheet Path Count Object List Action List Parameter Output “Yes” to take Test case ID Dropdown Dropdown List Parameter Snapshot Test Suite Load Load Load utility Keywords Excel OR functions Load User Run Test case Load actual Define Function Function OR(.tsr) file http://www.crestechglobal.com/ 5
  • 9. QTKey - Automation Framework (Implementation Guide) 4.1. Test Case Preparation For test case preparation, user needs to do following activities: 4.1.1. Generate Object List a) Click on “Generate Object List” button on test case template. Click here b) Enter the path of OR (.xls file) in message box. Enter Excel Object Repository Path here c) Click OK d) All objects in OR will be displayed in the dropdown. Object List e) Drag first cell of “Object” column in test case template up to last cell of the same column. http://www.crestechglobal.com/ 6
  • 10. QTKey - Automation Framework (Implementation Guide) 4.1.2. Select Objects Each keyword requires object reference for which user need to select an Object from the dropdown on each cell of “Object” column of test case template. Select Object from the list 4.1.3. Select Keywords User need to select keyword from dropdown on “Keyword” column of the test case template, so that action can be performed on the object. Refer available keyword's details from “KeyWord_Repository.xls file Select correct keyword from the list 4.1.4. Enter Parameters There are some keywords which required some value to perform action. So user need to give parameter for those keywords in “parm” column in the test case template. For example: 1. “editField” keyword requires some text such as “name3” etc. 2. “webBrowserOpen” keyword requires URL such as “https://www.gmail.com.” Enter value corresponding to object and action http://www.crestechglobal.com/ 7
  • 11. QTKey - Automation Framework (Implementation Guide) 4.1.5. Select Snap Shot Option This gramework can take the Snapshot of each step of test case, for which user required to mark as “YES” in the last column (snapshot) of each row. Note: User can skip any keyword action by entering “1” in disable column. 4.2. Test Suite Preparation For execution of test cases user required to create test suite in which user give the path of “OR” and “Test case”. Step to create test suit are as follow: a) Enter the path of OR (.xls file) in the “parm_002” column in test suit template. This “OR” path must be on the same row in which “ORCode” keyword written. b) Enter the path of OR (.tsr file) in the “parm_002” column in test suit template. This “OR” path must be on the same tow in which “LoadObjRepositoryCode” keyword written. c) Give the path of test case (.xls file) in the “parm_001 “column in test suit template. This test cases path must be on the same row in which “RunTest” keyword written. Excel OR Path Test Script Path Actual OR (.trs) Path http://www.crestechglobal.com/ 8
  • 12. QTKey - Automation Framework (Implementation Guide) 5. Run Suite To run the script user required have to do the following step: 1. Open the “RunSuite” test case in QTP (Found in QTP_FrameWork_Build_2.0 > Framework) Select “Run Suite” 2. Click on “Run” button at the QTP tool bar (Press F5). and Open it 3. Framework required the test suite path for which a new message box generated, in which user has to enter the path of test suite. Enter Test Suite Path http://www.crestechglobal.com/ 9
  • 13. QTKey - Automation Framework (Implementation Guide) 4. Message box will be displayed once the complete execution is finished. It will show the path where user can find the test results, MsgLog and snapshots. 6. Analysis Result User can find the run result from ResultDir in environment setting. This folder contains all the logs, test results and snapshots. 7. Known Issues 1. Framework does not handle exception. 2. For QTP version higher than 9.2, execution of file “Export_OR_InExcel_Build _v1.0.vbs” throws an error, which can be ignored. http://www.crestechglobal.com/ 10