Posted In — Automation Testing, QTP Tutorials
Virtual Objects in QTP
Do you see Object not found error while running QTP tests? Well, this is because during playback QTP can’t recognize non-standard objects. To solve this object recognition problem we use Virtual Objects. Using Virtual Object Wizard we can map these unrecognized objects to standard class which then can be used as standard object to record the test.
How to solve object recognition problem in QTP?
Example of Virtual Object:
Here is a scenario: I am recording a test on a Microsoft word document. I activate the already opened MS word doc and I click on any of the icons in the Continue reading →
Google+
Posted In — Automation Testing, QTP Tutorials
In this QTP tutorial we will learn – Smart Object identification, adding Synchronization point, Running a test and viewing the results, and Silent Test runner.
Smart Identification:
Assume a situation when no object matches or multiple objects match the recorded description for an object during run time, how does QTP handle it?
QTP has a mechanism in place for cases exactly like this. If the recorded description does not enable QTP to identify the specified object in a step, and a smart identification definition is defined (and enabled) for the object, QTP tries Continue reading →
Google+
Posted In — Automation Testing, QTP Tutorials
Object Repositories and Object Repository Manager
Today’s topic is Object repositories. In the previous articles, we have discussed how QTP identifies and stores objects in a warehouse, the OR. We also have seen how the object properties appear in the OR. To quickly recap, we will take a look at the OR screen. You can launch it from your current test by clicking on the
icon or from the “Resources->Object Repository” option.
It launches the following Object repository dialog box: Continue reading →
Google+
Posted In — Automation Testing, QTP Tutorials
QTP Actions and Action Properties:
Actions divide a test into logical units. This aids in highly readable tests and make sure that modularity is achieved.
There are 3 types of QTP actions:
- Reusable – only these can be called multiple times within the same or different tests
- Non-reusable – These cannot be called by any other actions
- External actions – a reusable action when called from another action becomes an external action in the called action.
How to use QTP Actions in tests?
1) By default all new actions are reusable
Continue reading →
Google+
Posted In — Automation Testing, QTP Tutorials
In part 1 of this QTP Parameterization tutorial we explained Datatable Parameterization with example. In this QTP tutorial let’s focus on remaining three parameterization techniques:
2) Random number parameters
3) Environment variable parameters
4) Test/Action parameters
#2 – QTP Parameterization using Random Number
If a certain field needs to have any number within a certain range you can specify the same using QTP. In the Value configuration properties screen, select “Random number” and the following options come up: Continue reading →
Google+