Verification Point Framework Reference

prevnext

VerificationPointComparator Interface


For a class implementing this interface, the interface provides a method to compare 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 class is passed into the constructor of the abstract VerificationPoint class and is used when that verification point needs to perform its comparison.


Overview

public interface VerificationPointComparator
Known implementing class:
DatabaseVPComparator

Applicability

Commonly used with QualityArchitect.

This interface requires QualityArchitect.


VerificationPointComparator.compare()

This method does the following:

public boolean compare(VerificationPointData vpsExpected, 
VerificationPointData vpsActual, java.lang.Object 
objOptions, java.lang.StringBuffer sFailureDescription)

Element Description
vpsExpected The expected data object.
vpsActual The actual data object.
objOptions Options that are passed from the Verification Point class to qualify the comparison. Options can include the predefined COMPARE_CASESENSITIVE and COMPARE_CASEINSENSITIVE options, plus any user-defined options.
sFailureDescription An output parameter that contains the differences between the expected and actual data objects in a failed verification point. The failure description is written to the log.


Return Value

A Boolean value indicating whether the test passed or failed.

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