Verification Point Framework Reference |
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.
public interface VerificationPointData Known implementing class: DatabaseVPData
Commonly used with QualityArchitect.
This interface requires QualityArchitect.
Returns the extension of the file used to store the data object.
public java.lang.String getFileExtension
()
The extension of the file used to store the data object.
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.
Reads the expected or actual data object from the specified InputStream.
public voidreadFile
(java.io.InputStreamin
)
in
The InputStream from which the object is read.
This method throws the following exception:
Writes the expected or actual data object to the specified OutputStream.
public voidwriteFile
(java.io.OutputStreamout
)
out
The OutputStream to which the object is written.
This method throws the following exception:
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 |