public class StepTestTable extends AbstractTestTable
Once the table is created the user can commence adding Commands and ComponentFunctions to build up the test records that make up this test table.
Example:
StepTestTable badUserTest = new StepTestTable("BadUserIDTest");
// using org.safs.model.commands
badUserTest.add( DDDriverCommands.setApplicationMap("MyApp.MAP"));
badUserTest.add( EditBoxFunctions.setTextValue( "LoginWin", "UserField", "BogusName" ));
// alternatives using org.safs.model.components
badUserTest.add( LoginWin.PasswordField.setTextValue( "BogusPassword" ));
badUserTest.add( LoginWin.OKButton.click( ));
...
_commands, CYCLE_TABLE_FILE_EXTENSION, DEFAULT_FIELD_SEPARATOR, STEP_TABLE_FILE_EXTENSION, SUITE_TABLE_FILE_EXTENSION
_parameters, BLOCKID_RECORD_TYPE, BREAKPOINT_RECORD_TYPE, COMPONENT_FUNCTION_FAILOK_RECORD_TYPE, COMPONENT_FUNCTION_RECORD_TYPE, COMPONENT_FUNCTION_WARNOK_RECORD_TYPE, DRIVER_COMMAND_FAILOK_RECORD_TYPE, DRIVER_COMMAND_RECORD_TYPE, DRIVER_COMMAND_WARNOK_RECORD_TYPE, EMPTY_PARAMETER, ENGINE_COMMAND_FAILOK_RECORD_TYPE, ENGINE_COMMAND_RECORD_TYPE, ENGINE_COMMAND_WARNOK_RECORD_TYPE, PROJECT_COMMAND_RECORD_TYPE, SKIPPED_RECORD_TYPE
Constructor and Description |
---|
StepTestTable(java.lang.String testTableName)
Create a new instance of a StepTestTable with the provided name.
|
Modifier and Type | Method and Description |
---|---|
void |
add(ComponentFunction componentFunction)
Add a ComponentFunction to the StepTestTable just like any other valid command.
|
add, exportTestRecord, exportToCSV, getCommands, getSAFSFileName, getTestRecordFieldSeparator, getTestTableFileExtension, getTestTableName, isExported, setTestRecordFieldSeparator, setTestTableFileExtension, validateCommand
addParameter, addParameters, appendParametersToTestRecord, getParameters
public StepTestTable(java.lang.String testTableName)
testTableName
- -- the name for this StepTestTablejava.lang.IllegalArgumentException
- if the provided name is null or zero-lengthpublic void add(ComponentFunction componentFunction)
table
- ComponentFunction to be added\invoked just like any other command.java.lang.IllegalArgumentException
- if the command is nullCopyright © SAS Institute. All Rights Reserved.