Defining a New Test Object
Posted By Lax on January 27th, 2009 in QTP Lessons
You can define Test Objects in your Object Repository that do not yet exist in your Application. You can prepare an Object Repository and build components for your application before the application is ready for testing.
For example, you know that you soon have a new field in your application, a WINEDIT for the passenger’s last name. You can define the WINEDIT object for the last name field before it is developed.

To define a new test object: Follow the below 7 steps to add new object into repository
- Open the OBJECT REPOSITORY.
- Expand the OBJECT REPOSITORY tree and select the parent object under which you want to define the new object.
- On the QuickTest Professional Toolbar, click the DEFINE NEW TEST OBJECT button. The DEFINE NEW TEST OBJECT dialog box appears.(Alternatively, select OBJECT ? DEFINE NEW TEST OBJECT.)
- From the CLASS list, select the class of the test object.
- In the NAME field, type a name for the new test object.
- In the TEST OBJECT DETAILS section, you can specify test object properties and values for the new object.
- Click ADD to add the new test object to the Local object repository.
Similar Posts: QTP Lessons

This post has one comment
June 18th, 2011
Good.