An object can be added to a shared object repository in one of the following ways:
1. From a local repository.
2. Add objects manually.
• Go to Resources -> Object Repository Manager.
• Go to File -> Open ->
• By default the repository will open in read-only mode. Go to File -> Enable Editing.
• Go to Object -> Add Objects.
• Click on the object to be added to the repository.
• If the Object Selection window appears, select the desired object, and click
• If the Add Object to Object Repository window appears, select the appropriate option:
• To add only the selected object, select the “Only the selected object” radio button. To add the selected object and its child objects of a specified type, select the “Selected object and its descendants of type” radio button. Then, select the checkbox next to the child object types that should be added.
• Click
3. Manually define a new test object.
• Go to Resources -> Object Repository Manager.
• Go to File -> Open ->
• By default the repository will open in read-only mode. Go to File -> Enable Editing.
• Go to Object -> Define New Test Object.
• Select the appropriate Environment for your test object. For example, to add a Link object, select “Web.”
• Select the desired test object class for the new object.
• Enter a name for your test object.
• Fill in the Test object details as needed. The Test object details area automatically contains the mandatory properties defined for the object class in the Object Identification dialog box. You can add or remove properties as required, and define values for the properties.
• To add properties, click the “Add description properties” button (with the + icon). Select the properties to be added and click
To remove properties, select the properties to be removed and click the “Remove selected description properties” button (with the X icon)
• Click
• Repeat steps d through h as needed.
• When done, click
Note:
When you manually define an object, QuickTest Professional will not automatically add the object’s parent. If the parent objects are not present, you will need to define them as well. Once the objects are added to the repository, you can drag and drop them to their appropriate positions.
4. Merge with another shared object repository.

No comments:
Post a Comment