Category «Quick Test Professional»

QTP – Extract Runtime Object Property

A “Test Engineer” need to validate many values on the application during runtime against a set of test data. To facilitate this, the test automation tools provide functionalities such as checkpoints. Apart from the eight different checkpoints, the QTP also provides a function called “GetROProperty”. You might wonder why GetROProperty needs to be used while …

QTP – Create a Simple Script without Recording

If the QTP’s recording engine is used to record a test scenario, then the script will have following issues: Script will have hardcoded values No proper naming convention No modularity No reusability Maintenance is difficult Difficult to accommodate frequent changes Difficult to debug How to overcome these problems? Simple!! Create your own script… do not …

QTP – Object Identification

Every test automation tool is GUI (graphical user interface)sensitive. Test automation tool has to identify the objects on the application, then only it can do the intended operations. QuickTest Professional has its own mechanism to identify the objects on the Application Under Test. QTP has various  add-ins available for different applications.  Let us have a …

QTP – Environment Variables

A test automation suite might be containing lot of tests / actions. Hence, while executing the test cases in batch mode we might need to refer to the Iteration, name of the test, Results directory, etc. But how to get them? QTP provides global variables called Built-in Environment Variables through which we can access these …

QTP – Parameterization with Data Table

When a test is recorded using QTPs recording engine all the values are hardcoded. If we want to run the same test many times, the application might throw error because of duplication of data. Hence, the data needs to be parameterized from an external means. QTP provides an excellent feature called Data Table for this …

QTP – Recovery Scenario

Execution of automated test cases might result in some unexpected error conditions. In such situations, QTPs error handling feature Recovery Scenario comes in handy. To create a Recovery Scenario, we need to configure the below steps: Trigger Event Recovery Operation Post-Recovery Test Run Options Name and Description of the Recovery Scenario Finish Click Resources –> …

QTP – Introduction to Checkpoints

Every test case will be having an “Expected Result” and during the execution, this needs to be compared with the “Actual Result” to verify whether the application under test is working properly as expected. QuickTest Professional provides an excellent feature called “Checkpoints” to accomplish this. As the meaning of the word “checkpoint”, it compares the …

QTP – Analyze Test Results

Once the automated test case is executed, the result needs to be analyzed and application issues (if any) should be reported. QuickTest Professional (QTP) gives an excellent feature to view the results summary and ability to drilldown to the level of each object. By default after every execution test results window gets opened and we …

Create Shared Object Repository in QTP

As the name suggests, Shared Object Repository can share the objects across various tests. Shared object repository can be created through Object Repository Manager. After creating the shared repository, it needs to be associated with a particular test.  Then the objects stored in the repository are accessible to the associated test / action. The biggest …