Testers can use Quick Test Automation Object model to drive/automate the QuickTest operations/features. The Quick Test Automation Object Model (AOM) provides classes, objects, methods and their properties which enable the automation tester to control the QuickTest features from another application.
If you want to invoke QTP and execute a test you would write a small invocation script to invoke and execute a test. You can also write an automation script to run selected batch of tests. Advantage : This would help me creating a testing automation framework and in test management.
Creating Automation Program
The properties tab of the test settings dialog box, the General Tab of the options dialog box and the object identification dialog box each contains a "Generate Script" button. Clicking this button and saving it would create a .vbs file containing the current test settings.
You can now run the .vbs file to invoke QTP with the exact configurations that when script is generated, or you can copy and paste the selected lines from the generated file into your own automation script.
Generating the automation script from QTP Options:
1. Go to Tools -> Options
2. Select the General Tab
3. Click Generate Script and save it as Launch.vbs (can be any name given)
Generating the automation script from the Test Settings:
1. Go to Test -> Settings
2. Select the properties Tab
3. Click on generate script and save it as Launch.vbs (can be any name given)
Generating the automation script from the object identification settings:
1. Go to Tools-> Object Identification
2. Click Generate Script and save it as Launch.vbs (can be any name given)
The QTP automation object model reference file is the help file provided by HP, that provides detailed description, syntax information and examples for the object, method and properties in the Quick Test Automation object Model.