|
IBM Rational Functional Tester Version 8.1.1000 IBM Rational Functional Tester API Reference Project Version 2.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.rational.test.ft.vp.VpUtil
public class VpUtil
Provides a default set of utility methods that can be used to create interesting data objects. The primary usage for this class is in conjunction with vpManual
verification points.
Constructor Summary | |
---|---|
VpUtil()
|
Method Summary | |
---|---|
static ITestDataProperties |
getTestData(java.util.Hashtable properties)
Provides a default properties TestData object. |
static ITestDataTree |
getTestData(ITestDataTreeNode[] rootNodes)
Provides a default tree TestData object. |
static ITestDataList |
getTestData(java.lang.Object[] list)
Provides a default list TestData object. |
static ITestDataTable |
getTestData(java.lang.Object[][] table)
Provides a default table TestData object. |
static ITestDataText |
getTestData(java.lang.String text)
Provides a default TestDataText object. |
static ITestDataList |
getTestData(java.util.Vector list)
Provides a default list TestData object. |
static ITestDataMenu |
getTestDataMenu(java.lang.String text, java.lang.String mnemonic, java.lang.String accelerator)
Provides a default menu item that can be used as the node type in a tree test data object to get the destinctive menu item presentation in the tree. |
static ITestDataMenu |
getTestDataMenu(java.lang.String text, java.lang.String mnemonic, java.lang.String accelerator, boolean isCheckbox, boolean isRadiobutton, boolean isSelected)
Provides a default menu item that can be used as the node type in a tree test data object to get the destinctive menu item presentation in the tree. |
static ITestDataTableRegion |
getTestDataTableRegion()
Provides a comparison region that specifies all cells in the table are to be included in the comparison region. |
static ITestDataTableRegion |
getTestDataTableRegion(Cell cell)
Provides a comparison region that specifies a single cell in the table that is to be included in the comparison region. |
static ITestDataTableRegion |
getTestDataTableRegion(Cell topLeft, Cell bottomRight)
Provides a comparison region that specifies the block of cells in a table that are to be included in the comparison region. |
static ITestDataTableRegion |
getTestDataTableRegion(Column column)
Provides a comparison region that specifies a single column in a table that is to be included in the comparison region. |
static ITestDataTableRegion |
getTestDataTableRegion(Row row)
Provides a comparison region that specifies a single row in a table that is to be included in the comparison region. |
static ITestDataTreeNode |
getTestDataTreeNode(java.lang.Object node)
Provides a default tree node object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VpUtil()
Method Detail |
---|
public static ITestDataText getTestData(java.lang.String text)
TestDataText
object. The meta properties for how the data will
be compared are defaulted.
text
- the text that the TestData
object wraps.
TestData
object that contains the supplied text.public static ITestDataProperties getTestData(java.util.Hashtable properties)
TestData
object. The masking bit associated with each property is defaulted to false
so that all properties are compared.
properties
- the properties that TestData
object wraps public static ITestDataList getTestData(java.util.Vector list)
TestData
object. The meta properties for how the data will
be compared are defaulted. No elements will be considered masked from comparison in the returned list object.
list
- the set of objects that TestData
object encapsulates public static ITestDataList getTestData(java.lang.Object[] list)
TestData
object. The meta properties for how the data will
be compared are defaulted. No elements will be considered masked from comparison in the returned list object.
list
- the set of objects that TestData
object encapsulates public static ITestDataTable getTestData(java.lang.Object[][] table)
TestData
object. The meta properties for how the data will
be compared are defaulted. The comparison region will default to all data being compared.
No row or column headers exist by default.
table
- the objects that TestData
object encapsulates public static ITestDataTableRegion getTestDataTableRegion()
public static ITestDataTableRegion getTestDataTableRegion(Column column)
column
- the column to be included in the comparison region public static ITestDataTableRegion getTestDataTableRegion(Row row)
row
- the row to be included in the comparison region public static ITestDataTableRegion getTestDataTableRegion(Cell cell)
cell
- the cell to be included in the comparison region public static ITestDataTableRegion getTestDataTableRegion(Cell topLeft, Cell bottomRight)
topLeft
- the top left cell in the block of cells in
the comparison regionbottomRight
- the botton right cell in the block of cells in
the comparison region public static ITestDataTree getTestData(ITestDataTreeNode[] rootNodes)
TestData
object. The meta properties for how the data will
be compared are made defaults, with all nodes compared.
rootNodes
- the objects that define the root nodes in the returned data tree getTestDataTreeNode(Object)
public static ITestDataTreeNode getTestDataTreeNode(java.lang.Object node)
null
and need to be explicitly defined by the caller. Note that by defining the parent directly in the resultant object, the result is not automatically made a child of the parent node. Managing of the data hierarchy is left to the user when using this method.
node
- the object that is encapsulated by the returned node TestDataTree
objectgetTestData(ITestDataTreeNode[])
public static ITestDataMenu getTestDataMenu(java.lang.String text, java.lang.String mnemonic, java.lang.String accelerator, boolean isCheckbox, boolean isRadiobutton, boolean isSelected)
ITestDataMenu
extends ITestData
, which supports generic properties.
text
- the visible text on the menu itemmnemonic
- the character used for keyboard access to the menu itemaccelerator
- the key code used to trigger the associated actionisCheckbox
- true
if the menu item is a checkbox menu itemisRadiobutton
- true
if the menu item is a RadioButton
menu itemisSelected
- true
if the menu item state is selected or checked ITestDataTree
objectgetTestDataTreeNode(Object)
public static ITestDataMenu getTestDataMenu(java.lang.String text, java.lang.String mnemonic, java.lang.String accelerator)
getTestDataMenu
. In this version of the method the state attributes all default to false
.
text
- the visible text on the menu itemmnemonic
- the character used for keyboard access to the menu itemaccelerator
- the key code used to trigger the associated action ITestDataTree
objectgetTestDataTreeNode(Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |