Enhancing your tests

Relevant for: GUI tests only

After creating an initial test, you can further enhance it by adding and modifying steps in the Keyword View or the Editor.

Checkpoints

Add checkpoints to your test to compare specified items during a run session with the values stored for the same items within the test.

Checkpoints enable you to identify whether or not your application is functioning correctly, and have several types. For details, see Checkpoints in GUI Testing

Tip: You can also use the CheckProperty method, which enables you to verify the property value of an object without using the checkpoint interface.

Parameterization

Parameterizing your test is when you replace fixed values with values from an external source during your run session.

Do this to test the same operations with different data.

You can supply data from a data table, environment variables you define, or values that UFT generates during the run session.

For more details, see Parameterizing Object Values.

Output Values

Retrieve values from your test and store them in the data table as output values to subsequently use these values as an input parameter in your test.

For more details, see Output Values in GUI Testing.

Programming Statements

Use special UFT 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.

  • Synchronize your test to ensure that your application is ready for UFT to perform the next step in your test.

  • Measure the amount of time it takes for your application to perform steps in a test by defining and measuring transactions.

For more details, see Generated Programming Operations.

You can also manually enter standard VBScript statements, as well as statements using UFT test objects and operations. For details, see Programming Tests.

Active Screen Updates

As the content of your application changes, update the selected Active Screen display.

Then, use the Active Screen to add new steps to your test instead of re-recording steps on new or modified objects.

For details, see Update test object descriptions, checkpoints, or output values, or Active Screen captures.