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 actions outlined below 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 point.


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 IVerificationPoint class encapsulates a verification point's metadata. Metadata includes the following kinds of information:

You can specify verification point metadata either explicitly or implicitly:

For more information about how to provide verification point metadata, see IVerificationPoint Interface.


Step 2. Execute the Verification Point

To execute a verification point, call the PerformTest method in the specialized IVerificationPoint class, as follows:

Using the metadata in the specialized IVerificationPoint 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 IVerificationPointData  interface.

After you create the expected data object, 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 Dynamic Database Verification Point Example.


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 IVerificationPointData  interface.

After you create the expected and actual data objects, you can pass them to the PerformTest method when you execute the verification point.

prevnext


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