Verification Point Framework Reference

prevnext

IVerificationPointComparator Interface


An interface implementing this interface provides a method that compares two VerificationPointData objects to determine if the comparison succeeds or fails. The comparison can test for equality between the expected and actual data, or it can test for some other condition (for example, that the actual data falls within a given range).

This interface is passed into the constructor of the abstract VerificationPoint interface and is used when that verification point needs to perform its comparison.


Overview

Extends IDispatch.


Applicability

Commonly used with QualityArchitect.

QualityArchitect is required for use of this interface.


IVerificationPointComparator.Compare

Compares an expected data object with an actual data object and determines whether the test succeeds or fails.

compare(ExpectedData As IVerificationPointData, ActualData As 
IVerificationPointData, Options As Variant, 
FailureDescription As String) As Boolean

Element Description
ExpectedData The expected data object.
ActualData The actual data object.
Options Options that are passed from the Verification Point interface to qualify the comparison. Options can be pre-defined, such as VPOPTION_COMPARE_CASEINSENSITIVE, VPOPTION_EXPECT_FAILURE, and VPOPTION_USER_ACKNOWLEDGE_BASELINE, or any user-defined options.
FailureDescription input / output. A value that contains the differences between the expected and actual data objects in a failed verification point. The failure description is written to the log. If you assign a value to this parameter, the method may change the value.


Return Value

A Boolean value indicating whether the comparison passed or failed.

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