Verification Services

prevnext

Setting Up Verification Points in Test Scripts


This section outlines the actions that you, the test designer, need to take to set up a verification point in a test script.

Use the following actions outlined as a guideline for setting up a verification point. You may need to perform other actions to accommodate the requirements of a particular verification point implementation.

Note that the verification point framework does much of the work that is required to perform a verification.


Setting Up a Static Verification Point

To set up a static verification point:

  1. Specify the metadata for the verification point.

  2. Execute the verification point.

The following sections provide information to help you perform these steps.


Step 1. Specify the Metadata for the Verification Point

The specialized VerificationPoint class encapsulates a verification point's metadata. Metadata includes the following kinds of information:

Verification point metadata can be specified either explicitly or implicitly:

For more information about how to provide verification point metadata, see VerificationPoint Class.


Step 2. Execute the Verification Point

To execute a verification point, call the performTest() method in the specialized VerificationPoint class, as follows:

Using the metadata in the specialized VerificationPoint class, the framework captures the actual data for the test. The framework also checks the datastore for an expected (baseline) data object to compare against the actual data:

For an example of a static verification point setup in a test script, see Example of a Static Database Verification Point.


Setting Up a Dynamic Verification Point

Setting up a dynamic verification point is similar to setting up a static verification point. However, before the test script executes the verification point, the test script must create the expected data object. The framework is responsible for capturing and building the actual data object, just as it does for a static verification point.

You create the expected data object using the appropriate implementation of the VerificationPointData  interface.

After the expected data object is created, you can pass it to the performTest() method when you execute the verification point.

For an example of a dynamic verification point setup in a test script, see Example of a Dynamic Database Verification Point.


Setting Up a Manual Verification Point

Setting up a manual verification point is similar to setting up a static verification point. However, before the test script executes the verification point, the test script must create both the expected and actual data objects.

You create the expected and actual data objects using the appropriate implementation of the VerificationPointData  interface.

After the expected and actual data objects are created, you can pass them to the performTest() method when you execute the verification point.

prevnext


Rational Test Script Services for Java Rational Software Corporation
Copyright (c) 2003, Rational Software Corporation http://www.rational.com
support@rational.com
info@rational.com