Verification Point Framework Reference

prevnext

IVPFramework Interface


Provides the method that a test designer uses to verify a component.


Overview

Extends IDispatch.

Known subclass:
IVerificationPoint


Applicability

Commonly used with QualityArchitect.

QualityArchitect is required for use of this interface.


Summary

This interface contains the following properties:

Property Description
VPname String. The name of the verification point.
VP For internal use only.
Plumbing For internal use only.
CodeFactorySuffix String. A unique identifier to variable names assigned by the code factory methods. This unique suffix prevents name conflicts when multiple verification points are created in the same scope.

This interface contains the following method:

Method Description
PerformTest Performs a static, dynamic, or manual verification point, depending upon the parameters that are passed to it.


IVPFramework.PerformTest

Performs a static, dynamic, or manual verification point, depending upon the parameters that are passed to it.


Syntax

PerformTest(Object As Variant, [ExpectedData As Variant], 
[ActualData As Variant]) As Integer

Element Description
Object The object-under-test. If the verification point operates on an object that is not directly accessible (for example, a remote object or a database), the verification point object must contain the information needed to find the object-under-test, and the value of objTarget is ignored. The IVerificationPointDataProvider interface passes this parameter to CaptureData() as its first parameter.
ExpectedData An optional parameter which, if it exists, represents the expected data object. The test script can construct the expected data object, or it can deserialize the expected data object from a file that is not managed by the datastore.
ActualData An optional parameter which, if it exists, represents the actual data object. This object was captured or constructed by code in the test script.


Return Value

This method returns one of the following values:

Value Description
VERIFICATION_SUCCEEDED The verification point was performed, and the comparison passed.
VERIFICATION_FAILED The verification point was performed, and the comparison failed.
VERIFICATION_NO_RESULT The static verification point was run for the first time, and a baseline (expected) data object was successfully captured.
VERIFICATION_ERROR An error occurred, and the verification point was not performed.


Comments

The type of verification point that this method performs depends upon the parameters that you pass to it:

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