Q.What is the purpose of Objects spy?

A. the Object Spy also enables you to view both the run-time object methods and the test object methods associated with an object and to view the syntax for a selected method.

Q.What is the return value of the ‘Quit’ Method?
A. The Quit method can return an optional error code. If the Quit method is the final instruction in your script (and you have no need to return a non-zero value), you can leave it out, and your script will end normally.
Q.What is the purpose of loading QTP Add-Ins?
A. QuickTest add-ins help you to create and run tests and components on applications in a variety of development environments. Once you load an add-in, you can record and run tests and components on applications in the corresponding development environment, similar to the way you do with any other application.
Q.What is  Smart Identification mechanisam in QTP ?

A. When QuickTest uses the recorded description to identify an object, it searches for an object that matches every one of the property values in the description. In most cases, this description is the simplest way to identify the object and unless the main properties of the object change, this method will work.

If QuickTest is unable to find any object that matches the recorded object description, or if it finds more than one object that fits the description, then QuickTest ignores the recorded description, and uses the Smart Identification mechanism to try to identify the object.



Q.What are the properties used by the Smart Identification mechanisam ?

A. The Smart Identification mechanism uses two types of properties:

Base filter properties—The most fundamental properties of a particular test object class; those whose values cannot be changed without changing the essence of the original object. For example, if a Web link's tag was changed from <A> to any other value, you could no longer call it the same object.

Optional filter properties—Other properties that can help identify objects of a particular class as they are unlikely to change on a regular basis, but which can be ignored if they are no longer applicable.