Qtkey: - Automation Framework
Qtkey: - Automation Framework
Qtkey: - Automation Framework
DISCLAIMER Verbatim copying and distribution of this entire article are permitted worldwide, without Royalty, in any medium, provided this notice is preserved.
http://www.crestechglobal.com/
1. Object Repository Preparation 2. Test Scripts Preparation 3. Test Suite Preparation 4. Execution 5. Result Analysis
Test Scripts
Test Suite
Execution
Result Analysis
http://www.crestechglobal.com/
Export_OR_InExcel_Build _v1.0.vbs
QTKey_FrameWork_1.0
KeyWords_Build_v1.0.vbs
Utility_Build_v1.0.vbs
XlTest_Build_v1.0.vbs
RunSuite
userDefinedFunction.qfl
DataPool.xls
Mtours_Application.tsr
Mtours_Application.xls
Flight1.xls
TestSuite_Flight.xls
launch.vbs
TestSuite_Tamplate.xls
http://www.crestechglobal.com/
Locations
QtKey_FrameWork_1.0\Sample Project\Test Suite QtKey_FrameWork_1.0\Sample Project\Test Case Scripts QtKey_FrameWork_1.0\Sample Project\Object Repository Files QtKey_FrameWork_1.0\FrameWork\RunSuite\Res1 QtKey_FrameWork_1.0\FrameWork\RunSuite\Res1\TestSuite_ Flight_SnapShots QtKey_FrameWork_1.0\FrameWork
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. 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 Objectlink 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/
b) Enter the full path of object repository file (.tsr) which you want to convert.
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/
Test Case
Object list Generation Button 1 to skip step sheet Path OR excel sheet Path Iteration Count Step Description
Test case ID
Parameter List
Output Parameter
Test Suite
Load Keywords Load Excel OR Load utility functions
http://www.crestechglobal.com/
Click here
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/
http://www.crestechglobal.com/
Excel OR Path
http://www.crestechglobal.com/
2. Click on Run button at the QTP tool bar (Press F5). 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.
http://www.crestechglobal.com/
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