Enhancing Your Test In QTP

Enhancing Your Test

You can use a variety of options to enhance your existing tests. This section describes some of the ways in which you can enhance your existing tests.


You can add checkpoints to your test. A checkpoint is a step in your test that compares the a specified item during a run session with the values stored for the same item within the test. This enables you to identify whether or not your application is functioning correctly. There are several different checkpoint types. For more information on creating checkpoints, see Understanding Checkpoints.

Tip: You can also use the CheckProperty method, which enables you to verify the property value of an object without using the checkpoint interface. For more information, see HP QuickTest Professional Object Model Reference.


You can parameterize your test to replace fixed values with values from an external source during your run session. The values can come from a Data Table, environment variables you define, or values that QuickTest generates during the run session. For more information, see Parameterizing Values.

Output Values

You can retrieve values from your test and store them in the Data Table as output values. You can subsequently use these values as an input parameter in your test. This enables you to use data retrieved during a test in other parts of the test. For more information, see Outputting Values.


You can divide your test into actions to streamline the testing process of your application. For more information, see Working with Actions.

Programming Statements

You can use special QuickTest options to enhance your test with programming statements. The Step Generator guides you step-by-step through the process of adding recordable and non-recordable operations (methods and properties) to your test. You can also synchronize your test to ensure that your application is ready for QuickTest to perform the next step in your test, and you can measure the amount of time it takes for your application to perform steps in a test by defining and measuring transactions. For more information, see Adding Steps Containing Programming Logic.

You can also manually enter standard VBScript statements, as well as statements using QuickTest test objects and operations, in the Expert View. For more information, see Working in the Expert View and Function Library Windows.

Post a Comment

Previous Post Next Post