Verification Point Framework Reference

prevnext

VerificationPointData Interface


A class implementing this interface encapsulates and serializes a single snapshot of either expected or actual data. It can be populated through the captureData  method of a Verification Point Data Provider class, or it can be populated manually in the test script -- for example, by literal values or by values from a datapool.

Each implementation of the VerificationPointData interface must provide its own serialization methods in order to support all possible file formats. Use the readFile() and writeFile() methods to implement serialization for the encapsulated data.

Note: For the current QualityArchitect release, Verification Point Data classes must serialize to a .CSV file format. This restriction will be removed in a future release of QualityArchitect.

In addition to implementing the methods defined by this interface, all Verification Point Data classes should create member variables that encapsulate the data being compared by the verification point. The data encapsulated in these member variables should be exposed through public get... and set... methods that you implement, thereby allowing a test script to create and populate an instance of the class for use in dynamic and manual verification points.


Overview

public interface VerificationPointData
Known implementing class:
DatabaseVPData

Applicability

Commonly used with QualityArchitect.

This interface requires QualityArchitect.


VerificationPointData.getFileExtension()

Returns the extension of the file used to store the data object.


Syntax

public java.lang.String getFileExtension()

Return Value

The extension of the file used to store the data object.


Comments

The verification point framework uses the file extension to determine the format to use when it serializes files (for example, a .CSV extension indicates a comma-separated-value text file).

The current release only supports the .CSV file formatt. Future releases will support other formats.


VerificationPointData.readFile()

Reads the expected or actual data object from the specified InputStream.


Syntax

public void readFile(java.io.InputStream in)

Element Description
in The InputStream from which the object is read.


Exceptions

This method throws the following exception:


VerificationPointData.writeFile()

Writes the expected or actual data object to the specified OutputStream.


Syntax

public void writeFile(java.io.OutputStream out)

Element Description
out The OutputStream to which the object is written.


Exceptions

This method throws the following exception:

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