This is just a simple 'How to' example, for complete/detailed version see QTP User Guide.
(Part of QTP Script 8)
1. Make sure that the Login window of Flight application is open.
2. In QTP Go to Resources -> Object Repository Manager
3. Then Go to Object -> Add Objects
4. Mouse pointer will change to hand shaped icon and Object Repository Manager window will be minimised.
5. Click on the Ok button on the Login window of Flight application
6. 'Object Selection - Add to Repository' window will open. Click OK
The object will be added to the Object Repository.
7. Go to File-> Save As and save the newly created Object Repository by giving it a name of your choice.
8. Close the Object Repository Manager window.
9. Now Open a New test.
10. In the Expert View of the new test type one line
msgbox "test 1"
11.In the Keyword View, right Click on Action1 and choose Action Properties.
12. Action Properties window opens. Go to Associated Repositories tab.
13. Click on the Plus sign and Add the Shared Object Repository we just created. Click Ok.