|
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.Objectcom.rational.test.ft.datapool.DatapoolUtilities
public class DatapoolUtilities
This class provides static datapool specific utility methods.
| Constructor Summary | |
|---|---|
DatapoolUtilities()
|
|
| Method Summary | |
|---|---|
static IDatapool |
constructDatapool(java.lang.String[] variables, java.lang.Object[][] data)
Method to construct a simple (one equivalence class) datapool with specified variables and initial data settings. |
static IDatapool |
loadCSV(java.io.File csvFile)
Load a file in CSV file format and perse into a standard datapool form. |
static IDatapool |
loadCSV(java.io.File csvFile, java.lang.String separator, boolean firstRowIsHeaders)
Load a file in CSV file format and perse into a standard datapool form. |
static void |
storeCSV(IDatapool datapool, java.io.File csvFile, java.lang.String separator, boolean firstRowIsHeaders)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DatapoolUtilities()
| Method Detail |
|---|
public static IDatapool constructDatapool(java.lang.String[] variables, java.lang.Object[][] data)
variables - The names of the variables (or columns) in the datapool.data - The initial data associated with the datapool.
public static IDatapool loadCSV(java.io.File csvFile)
csvFile - The file name of a file in CSV format. If the
this name is null or the file it represents does not exist an appropriate exception is thrown.storeCSV(IDatapool,File,String,boolean),
loadCSV(File,String,boolean)public static IDatapool loadCSV(java.io.File csvFile, java.lang.String separator, boolean firstRowIsHeaders)
csvFile - The file name of a file in CSV format. If the
this name is null or the file it represents does not exist an appropriate exception is thrown.separator - The cell separator used in the file being parsed.
If null then a single character comma is used.firstRowIsHeaders - Flag to parser to use the first row of values as the column headers.secondRowIsTypes - If firstRowIsHeaders the second row may contain encodings for the suggested type used in each column.storeCSV(IDatapool,File,String,boolean),
loadCSV(File)public static void storeCSV(IDatapool datapool, java.io.File csvFile, java.lang.String separator, boolean firstRowIsHeaders)
loadCSV(File),
loadCSV(File,String,boolean)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||