Home
QTKey - Automation Framework
Contents
1. OP e eee 12 d eg Locman a e ww w eeeenn nn rooo nana noon ooo euonoo 13 vo ISTO il SUES OO MEU M 5 I 0 eeeeeren nr oooo hana toov eaae uuoooo 14 9 Enhancement Fiane U UU essen roro attt oae uonoo 15 http www crestechglobal com OT Key Automation Framework piementation Guias 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 Preperation Result Analysis http www crestechglobal com OIKey E Automation Framework Implementation Guide 2 Package Content and their Significam 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 to Excel Library Utility_Build_v1 0 vbs FrameWork Library_UserDefined XITest Build v1 0
2. www crestechglobal com OIKey E Automation Framework Implementation Guide 3 Object Repository Preparat 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 ry in OTP 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 NO 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 thinh1
3. in OR will be displayed in the dropdown A B C D 1 3 JDIe List Object List 4 T 4 No Parent gt Welcome Mercury Tours Browser Welcome Mercury Tours Welcome Mercury Tours Page Welcome Mercury Tours gt tripType Radio Button Welcome Mercury Tours gt servClass Radio Button Welcome Mercury Tours gt toPort List Welcome Mercury Tours toMonth List Welcome Mercury Tours gt toDay List Welcome Mercury Tours fromPort List di om Oona Qn n e Drag first cell of Object column in test case template up to last cell ofthe same column http www crestechglobal com OIKey E 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 Generate Object List TC_1 No Parent gt Welcome Mercury Tours Browser 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 Generate Object List Select correct keyword from Jbject List the list No Parent Welcome Mercury Tours Browser webBrowserOpen_ 4 1 4 Enter Parameters There are some keywords which
4. on the same row in which RunTest keyword written Excel OR Path Comment Framework keywords Load AUT specific functions KeyWords aor Load Object Repository Excel Sheet ObjectRepository ProjectiObiRepository Mtours Application xis Load Utility specific function a 7 load User Defined functions AssociateLibraryFunctions LoadObjRepositoryCode Load Object Repository tsr file e Projec ObiRepository Mtours A ication ObiRepositoryilitours Application tst _ Comment Execute Test Cases go co 0 mmm d o D TUE Actual OR trs Path Test Script Path http www crestechglobal com OTKey E 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 gt Framework Filename pde A Files oftyee QgacTea Teas v L6 ws Open in read only mode 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 Copyright c 2008 Crestech Software Systems Pvt Ltd AT nights reserved Option Explicit Public FilePath2 FilePath3 UserDefruncFolder DimsTesiScript oXITest
5. vbs RunSuite userDefinedFunction qfl Data Pool Files DEC adeo Bi Object Repository Files Mtours_Application tsr Sample Project Test Case Scripts Mtours Application xls QTKey FrameWork 1 0 Test Suite Flight1 xls Templates TestCase_Tamplate xls TestSuite_Flight xls launch vbs TestSuite_Tamplate xls http www crestechglobal com OTKey Automation Framework ampiementation Guias Location of key files File Folder Name Test Suite OtKey FrameWork 1 0 Sample Project Test Suite Test Scripts QtKey FrameWork 1 0 Sample Project Test Case Scripts Object Repository OtKey FrameWork 1 0 Sample Project Object Repository Files Report QtKey FrameWork 1 0 FrameWork RunSuite Res1 Sea SE a 0 Frame Work RunSuite Res 1 TestSuite ght SnapShots Run Suite OtKey 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
6. 808 files wordpress com 2008 03 qtp tutorial pdf http www crestechglobal com OIKey E Automation Framework Implementation Guide 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 4 FrameWork Name Export Object Rep to Excel Ji Library 4 Library UserDefined S Export OR InExcel Build _v1 0 vbs b Enter the full path of object repository file tsr which you want to convert a 3 Please enter the path of Object Repository tsr file OK Enter full path of Object Cancel Repository File tsr Nork Build 2 0 Sample Project Obj Repository Mtours_Application 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 Please enter the path where you want to save you want converted Object Repository excel sheet Object repository excel sheet to save Nork Build 2 0 Sample Project NObjRepository Mtours Application sdg http www crestechglobal com OTKey E Automation Framework Implementation Guide 4 Test Pre
7. Cres YOUR TESTING PARTNER Automation Framework DISCLAIMER Verbatim copying and distribution of this entire article are permitted worldwide without I c d Royalty in any medium provided this notice is preserved mp ementation Guide OTKey Automation Framework piementation Guias Table of Contents 1 Purpose ofthe Document j 5 LLLLLLeeeee ee eee eene eee eet o ss nono 2 2 Package Content and their Significance eeeee eerte 3 4 3 Object Repository Preparation 3 1 Creation of Object Repository in OTP tsr tile 35 1 eeeeeeereee ern nnnnn 5 3 2 Convert Object Repository tsr file in Excel xls file 6 4 Test Preparation gt seeeeeo nete ero neenon eoo neos uuu 7 aap cSt Case Prepar do EMEN LA OL haga gs ee pba sss cbw eoo sees eaa s e eaa eres oe 8 4 1 1 Generate ODC MM EET TTE ceuueemennnn nnne ntun enun eee ee 8 4 1 2 SelecaB Eo NE CHE jenen nnne nun etettnnhhnnA 9 4 1 3 Select S cm a JAEUEBE J s eeeeeeee e8ne 9 4 1 4 Enter Earann o a dE S00 eeneeeseeennnnnnnn enn 2 9 4 1 5 Select SmapsheMSDHuOnM NE UN 5 euueennoooeoonno ooo oot eeooos 10 4 2 Test Suite Prepara S i eeeeneesssececcnccesecesssoroccreseeses 10 5 Run Sues c7 UNNMUM w 333 eene 11 6 Resultomalysis 10 7 S
8. paration User need to prepare following two excel sheets Test Case Object list Generation Button 1 to skip step sheet Path OR excel Iteration Step Description sheet Path Count P P TC 1 um a T ID Object List Action List Parameter Output Yes to take a Dropdown Dropdown List Parameter Snapshot Test Suite Load Load Load utility Keywords Excel OR functions ment Framewo eywords Load f specie functions AUTCode ORCode Load Object Repository Excel Sheet ObjectRepository Srepc Obiencstocyulhours Application xi xis UtilityCode Load Utility specific function UserDefFuncCode load User Defined functions LoadObjRepcsito Code Load Object Repository tsr file noeneen E ic ObReco Mtours Applicaticr ler Lxecute Test Cases 9mmen RunTest Flight Book gt in Mtours Load User Run Test case Load actual Define Function Function OR tsr file http www crestechglobal com OTKey E Automation Framework Implementation Guide 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 Generate Object List IU Object List b Enter the path of OR xls file in message box Microsoft Excel Enter path of Object Repository Excel Sheet Enter Excel Object Repository Path here c Click OK d All objects
9. 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 erin omm omo Object List INo Parent gt Welcome Mercury Tours Browser Detrkoma Open Web Browser EEE moaut com http www crestechglobal com OIKey Automation Framework Implementation Guide 4 1 5 Select 5nap 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 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
10. sXIVbs Dim FilePath TestDirectory arr Path upperindex LibFileCount Co TestDirectory Environment TestDir rr Path split TestDirectory 1 1 upperlndex UBound a r Path For LibFileCounte 1 To3 FilePath am Path 0 For Counter 1T o upperindex 1 FilePath FilePat amp amp ar Path Counter Next UserDefFuncFolder FilePath amp amp Library UserDefined FilePath FilePath amp amp Library yu exo V http www crestechglobal com OIKey E 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 Test Complete Results can be found in G Backup QTP_FrameWork_Build_2 0 FrameWork RunSuite Res45 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
Download Pdf Manuals
Related Search
Related Contents
Leica EZ5 Technical Brochure Manual de instalación y mantenimiento Detector magnético 45239 Rare Bear manual.indb CONEX-PP - Controller GUI Manual R&S ZVT Service Manual UMP300 User manual .cdr C C - COBRA C Copyright © All rights reserved.
Failed to retrieve file