Using the Object Spy
Posted By Lax on January 27th, 2009 in QTP Lessons
The Object Spy feature enables you to view the properties and their current values as well as methods associated with an object. Object Spy also enables you to view the syntax for a selected method.

To view the run-time properties of an object using the Object Spy:
- On the QuickTest Professional Toolbar, click OBJECT SPY. The OBJECT SPY dialog box appears.
Note: Alternatively, select TOOLS ? OBJECT SPY. - In the OBJECT SPY dialog box, click the pointing hand button.
- With the pointing hand, click on the desired object in the aut.
- In the OBJECT SPY dialog box, click the PROPERTIES tab to view the properties of the selected object.
Note:
- Test object properties of the actual object are available for all types of Objects. This is what you always see in the
Object Repository. The list shows values when the object was learned. - Run-time properties are available for Web, ActiveX, .Net, and Java objects. These may be different from the test
object properties because object properties change during run-time.
Similar Posts: QTP Lessons
