Database Verification Point Reference

prevnext

DatabaseVPDataRenderer Class


This class implements a renderer for any class that implements the DataTable interface.

The renderer creates a JDialog containing a scrollable JTable with the data from the supplied DatabaseVPData object.

If no expected data object exists in the datastore and the OPTION_USER_ACKNOWLEDGE_BASELINE option is set in the test script, the verification point framework invokes the displayAndValidateData() method in this class. This method lets the tester interactively accept or reject the displayed data as the baseline (expected) data for a static verification point.


Overview

public class DatabaseVPDataRenderer 
extends java.lang.Object 
implements com.rational.test.vp.VerificationPointDataRenderer
java.lang.Object
  |
  +--com.rational.test.vp.DatabaseVPDataRenderer

Applicability

Commonly used with QualityArchitect.

This class requires QualityArchitect.


Summary

This class contains the following method:

Method Description
displayAndValidateData() Presents the tester with a visual representation of the data object as it exists before the expected (baseline) data is stored for this static verification point.

Methods Inherited from Class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait


Constructor


Syntax

public DatabaseVPDataRenderer()

DatabaseVPDataRenderer.displayAndValidateData()

Presents the tester with a visual representation of the data object as it exists before the expected (baseline) data is stored for this static verification point.


Syntax

public boolean displayAndValidateData(VerificationPointData 
vpdData)

Element Description
vpdData The data to present to the tester for confirmation.


Return Value

true if the tester accepts the displayed data, or false if the tester rejects the data.


Comments

This method is specified by displayAndValidateData() in the VerificationPointDataRenderer interface .

The verification point framework invokes this method when the following conditions exist:

When the method is invoked, it presents the tester with a visual representation of the data, and allows the tester to accept or reject the data:

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