RSS Feed for QTP Interview QuestionsCategory: QTP Interview Questions

What is checkpoint? »

Checkpoint is basically a point in the test which validates for truthfulness of a specific things in the AUT. There are different types of checkpoints depending on the type of data that needs to be tested in the AUT. It can be text, image/bitmap, attributes, XML etc….

Where to use function or action? »

Well answer depends on the scenario. If you want to use the OR feature then you have to go for Action only. If the functionality is not about any automation script i.e. a function like getting a string between to specific characters, now this is something not specific to QTP and can be done on [...]

What is the difference between an Action and a function? »

Action is a thing specific to QTP while functions are a generic thing which is a feature of VB Scripting. Action can have a object repository associated with it while a function can’t. A function is just lines of code with some/none parameters and a single return value while an action can have more than [...]

Can i change properties of a run time object? »

No (but Yes also). You can use GetROProperty(”outerText”) to get the outerText of a object but there is no function like SetROProperty to change this property. But you can use WebElement().object.outerText=”Something” to change the property.

What is the difference between Test Objects and Run Time Objects? »

Test objects are basic and generic objects that QTP recognize. Run time object means the actual object to which a test object maps.
Can i change properties of a test object Yes. You can use SetTOProperty to change the test object properties. It is recommended that you switch off the Smart Identification for the
object on which [...]

When to associate a library file with a test and when to use execute file? »

When we associate a library file with the test, then all the functions within that library are available to all the actions present in the test. But when we use Executefile function to load a library file, then the function are available in the action that called executefile. By associated a library to a test [...]

How do we associate a library file with a test? »

Library files are files containing normal VBScript code. The file can contain function, sub procedure, classes etc…. You can also use executefile function to include a file at run-time also. To associate a library file with your script go to Test->Settings… and add your library file to resources
tab.