More QTP Steps
* Open Associate Resources dialog by clicking Resources -> Associate Repositories
* Add your repository in the dialog
* Select the Available Actions and move it to the Associated Actions
* Click Ok
B. EXPORTING A TEST TO A ZIP FILE
Why: This is useful to make it easy to email a QTP test
When: Done after the test is complete
* Save all updates to your test
* Select File -> Export Test to Zip File
* Choose a location to save the zip file and click Ok
C. IMPORTING A TEST FROM A ZIP FILE
Why: This is the format in which you receive tests via email
* Select File -> Import Test from Zip File
* Choose a location to import the zip file to and click ok
D. ADD A SYNCHRONIZATION POINT (FORMAT 1)
Why: Used whenever there is a need to slow down QTP execution
* Put cursor in the right location
* Type wait x (where x is the amount of time to wait in seconds)
D. ADD A SYNCHRONIZATION POINT (FORMAT 2)
Why: Used whenever there is a need to slow down QTP execution
* Put cursor in the right location
* Have the test object on the screen
* Click on record
* Select Insert -> Synchronization Point...
* Confirm the object selection and click Ok
* Make appropriate choices on the checkpoint dialog
* Click Ok
* Immediately stop recording
F. INSERT A CHECKPOINT
Why: This verifies that the actual result in the AUT matches an expected result
When: Used when you have an item in the expected resulted column
* Put cursor in the right location
* Have the test object on the screen
* Click on record
* Select Insert -> Checkpoint -> The type of checkpoint you want
* Confirm the object selection and click Ok
* Make appropriate choices on the checkpoint dialog
* Click Ok
* Immediately stop recording
G. INSERT AN OUTPUT VALUE
Why: This retrieves a value from the AUT and stores it in the data table
When: Used whenever you are checking a non constant value in the AUT
* Put cursor in the right location
* Have the test object on the screen
* Click on record
* Select Insert -> Output Value -> The type of output value you want
* Confirm the object selection and click Ok
* Make appropriate choices on the output value dialog
* Click Modify and select an appropriate name for the datatable column
* Click Ok
* Immediately stop recording
<< Home