public class GenericMaster extends UIComponent
Modifier | Constructor and Description |
---|---|
protected |
GenericMaster(java.lang.String compname) |
|
GenericMaster(java.lang.String winname,
java.lang.String compname)
Constructor
Create an instance of pseudo-component representing
a specific component in a specific window.
|
|
GenericMaster(Window window,
java.lang.String compname)
Constructor
Create an instance of pseudo-component representing
a specific component in a specific window.
|
Modifier and Type | Method and Description |
---|---|
void |
assignPropertyVariable(StepTestTable table,
java.lang.String[] parameters)
Assign the string value of an object property to a specific DDVariable
Assign the string value of an object property to a specific DDVariable.
|
void |
assignPropertyVariable(StepTestTable table,
java.lang.String propertyName,
java.lang.String variableName,
java.lang.String suppressValue)
Assign the string value of an object property to a specific DDVariable
Assign the string value of an object property to a specific DDVariable.
|
ComponentFunction |
assignPropertyVariable(java.lang.String[] parameters)
Assign the string value of an object property to a specific DDVariable
Assign the string value of an object property to a specific DDVariable.
|
ComponentFunction |
assignPropertyVariable(java.lang.String propertyName,
java.lang.String variableName,
java.lang.String suppressValue)
Assign the string value of an object property to a specific DDVariable
Assign the string value of an object property to a specific DDVariable.
|
void |
captureObjectDataToFile(StepTestTable table,
java.lang.String[] parameters)
Copy the current contents of an object's data to a file.
|
void |
captureObjectDataToFile(StepTestTable table,
java.lang.String file,
java.lang.String fileEncoding,
java.lang.String filterMode,
java.lang.String filterOptions)
Copy the current contents of an object's data to a file.
|
ComponentFunction |
captureObjectDataToFile(java.lang.String[] parameters)
Copy the current contents of an object's data to a file.
|
ComponentFunction |
captureObjectDataToFile(java.lang.String file,
java.lang.String fileEncoding,
java.lang.String filterMode,
java.lang.String filterOptions)
Copy the current contents of an object's data to a file.
|
void |
capturePropertiesToFile(StepTestTable table,
java.lang.String[] parameters)
Copy all of the value properties a test object to a file.
|
void |
capturePropertiesToFile(StepTestTable table,
java.lang.String file,
java.lang.String fileEncoding)
Copy all of the value properties a test object to a file.
|
ComponentFunction |
capturePropertiesToFile(java.lang.String[] parameters)
Copy all of the value properties a test object to a file.
|
ComponentFunction |
capturePropertiesToFile(java.lang.String file,
java.lang.String fileEncoding)
Copy all of the value properties a test object to a file.
|
void |
capturePropertyToFile(StepTestTable table,
java.lang.String[] parameters)
Copy a propertie's value of a test object to to a file.
|
void |
capturePropertyToFile(StepTestTable table,
java.lang.String propertyName,
java.lang.String file,
java.lang.String fileEncoding)
Copy a propertie's value of a test object to to a file.
|
ComponentFunction |
capturePropertyToFile(java.lang.String[] parameters)
Copy a propertie's value of a test object to to a file.
|
ComponentFunction |
capturePropertyToFile(java.lang.String propertyName,
java.lang.String file,
java.lang.String fileEncoding)
Copy a propertie's value of a test object to to a file.
|
ComponentFunction |
clearAppMapCache()
Clear the internal application map cache.
|
void |
clearAppMapCache(StepTestTable table)
Clear the internal application map cache.
|
ComponentFunction |
clearCache()
Clear the cache of a component.
|
void |
clearCache(StepTestTable table)
Clear the cache of a component.
|
void |
executeScript(StepTestTable table,
java.lang.String[] parameters)
Execute a piece of script on the specified component synchronously.
|
void |
executeScript(StepTestTable table,
java.lang.String script,
java.lang.String paramN)
Execute a piece of script on the specified component synchronously.
|
ComponentFunction |
executeScript(java.lang.String[] parameters)
Execute a piece of script on the specified component synchronously.
|
ComponentFunction |
executeScript(java.lang.String script,
java.lang.String paramN)
Execute a piece of script on the specified component synchronously.
|
void |
getComputedStyle(StepTestTable table,
java.lang.String testFile)
Get a component's 'computed style', and save them to a file.
|
ComponentFunction |
getComputedStyle(java.lang.String testFile)
Get a component's 'computed style', and save them to a file.
|
void |
getGUIImage(StepTestTable table,
java.lang.String[] parameters)
Capture the screen shot of a GUI component and save it to a file
Capture the screen shot of a GUI component and save it to a file.
|
void |
getGUIImage(StepTestTable table,
java.lang.String outputFile,
java.lang.String subArea,
java.lang.String filteredAreas)
Capture the screen shot of a GUI component and save it to a file
Capture the screen shot of a GUI component and save it to a file.
|
ComponentFunction |
getGUIImage(java.lang.String[] parameters)
Capture the screen shot of a GUI component and save it to a file
Capture the screen shot of a GUI component and save it to a file.
|
ComponentFunction |
getGUIImage(java.lang.String outputFile,
java.lang.String subArea,
java.lang.String filteredAreas)
Capture the screen shot of a GUI component and save it to a file
Capture the screen shot of a GUI component and save it to a file.
|
void |
getTextFromGUI(StepTestTable table,
java.lang.String[] parameters)
Incorporate OCR technology to detect the text on a GUI component and save the text to a variable.
|
void |
getTextFromGUI(StepTestTable table,
java.lang.String variableName,
java.lang.String subArea,
java.lang.String oCRId,
java.lang.String langId,
java.lang.String scaleRatio)
Incorporate OCR technology to detect the text on a GUI component and save the text to a variable.
|
ComponentFunction |
getTextFromGUI(java.lang.String[] parameters)
Incorporate OCR technology to detect the text on a GUI component and save the text to a variable.
|
ComponentFunction |
getTextFromGUI(java.lang.String variableName,
java.lang.String subArea,
java.lang.String oCRId,
java.lang.String langId,
java.lang.String scaleRatio)
Incorporate OCR technology to detect the text on a GUI component and save the text to a variable.
|
ComponentFunction |
gUIDoesExist()
Routine to verify the visual existence of a particular window and/or component.
|
void |
gUIDoesExist(StepTestTable table)
Routine to verify the visual existence of a particular window and/or component.
|
ComponentFunction |
gUIDoesNotExist()
Routine to verify the visual non-existence of a particular window and/or component.
|
void |
gUIDoesNotExist(StepTestTable table)
Routine to verify the visual non-existence of a particular window and/or component.
|
void |
hoverMouse(StepTestTable table,
java.lang.String[] parameters)
Hover the mouse over an object.
|
void |
hoverMouse(StepTestTable table,
java.lang.String appMapSubkey,
java.lang.String hoverTime)
Hover the mouse over an object.
|
ComponentFunction |
hoverMouse(java.lang.String[] parameters)
Hover the mouse over an object.
|
ComponentFunction |
hoverMouse(java.lang.String appMapSubkey,
java.lang.String hoverTime)
Hover the mouse over an object.
|
void |
hoverScreenLocation(StepTestTable table,
java.lang.String[] parameters)
Hover the mouse over a specified screen location.
|
void |
hoverScreenLocation(StepTestTable table,
java.lang.String appMapSubkey,
java.lang.String hoverTime)
Hover the mouse over a specified screen location.
|
ComponentFunction |
hoverScreenLocation(java.lang.String[] parameters)
Hover the mouse over a specified screen location.
|
ComponentFunction |
hoverScreenLocation(java.lang.String appMapSubkey,
java.lang.String hoverTime)
Hover the mouse over a specified screen location.
|
void |
inputCharacters(StepTestTable table,
java.lang.String textValue)
Sends literal text to the specified component.
|
ComponentFunction |
inputCharacters(java.lang.String textValue)
Sends literal text to the specified component.
|
void |
inputKeys(StepTestTable table,
java.lang.String textValue)
Sends keystrokes to the specified component.
|
ComponentFunction |
inputKeys(java.lang.String textValue)
Sends keystrokes to the specified component.
|
void |
isPropertyExist(StepTestTable table,
java.lang.String[] parameters)
Verify if object's property exists or not.
|
void |
isPropertyExist(StepTestTable table,
java.lang.String propertyName,
java.lang.String propertyExistVariable)
Verify if object's property exists or not.
|
ComponentFunction |
isPropertyExist(java.lang.String[] parameters)
Verify if object's property exists or not.
|
ComponentFunction |
isPropertyExist(java.lang.String propertyName,
java.lang.String propertyExistVariable)
Verify if object's property exists or not.
|
void |
locateScreenImage(StepTestTable table,
java.lang.String[] parameters)
Store the location and dimensions of a component.
|
void |
locateScreenImage(StepTestTable table,
java.lang.String variableName,
java.lang.String whomRelativeTo)
Store the location and dimensions of a component.
|
ComponentFunction |
locateScreenImage(java.lang.String[] parameters)
Store the location and dimensions of a component.
|
ComponentFunction |
locateScreenImage(java.lang.String variableName,
java.lang.String whomRelativeTo)
Store the location and dimensions of a component.
|
void |
saveTextFromGUI(StepTestTable table,
java.lang.String[] parameters)
Incorporate OCR technology to detect the text on a GUI component and save the text to a text file.
|
void |
saveTextFromGUI(StepTestTable table,
java.lang.String outputFile,
java.lang.String subArea,
java.lang.String oCRId,
java.lang.String langId,
java.lang.String scaleRatio)
Incorporate OCR technology to detect the text on a GUI component and save the text to a text file.
|
ComponentFunction |
saveTextFromGUI(java.lang.String[] parameters)
Incorporate OCR technology to detect the text on a GUI component and save the text to a text file.
|
ComponentFunction |
saveTextFromGUI(java.lang.String outputFile,
java.lang.String subArea,
java.lang.String oCRId,
java.lang.String langId,
java.lang.String scaleRatio)
Incorporate OCR technology to detect the text on a GUI component and save the text to a text file.
|
void |
sendEvent(StepTestTable table,
java.lang.String[] parameters)
Send or trigger an "event" with 0 or more arguments.
|
void |
sendEvent(StepTestTable table,
java.lang.String event,
java.lang.String pARAM_N)
Send or trigger an "event" with 0 or more arguments.
|
ComponentFunction |
sendEvent(java.lang.String[] parameters)
Send or trigger an "event" with 0 or more arguments.
|
ComponentFunction |
sendEvent(java.lang.String event,
java.lang.String pARAM_N)
Send or trigger an "event" with 0 or more arguments.
|
void |
setPropertyValue(StepTestTable table,
java.lang.String[] parameters)
Sets a value to the property of an object.
|
void |
setPropertyValue(StepTestTable table,
java.lang.String objectPropertyName,
java.lang.String propertyValue)
Sets a value to the property of an object.
|
ComponentFunction |
setPropertyValue(java.lang.String[] parameters)
Sets a value to the property of an object.
|
ComponentFunction |
setPropertyValue(java.lang.String objectPropertyName,
java.lang.String propertyValue)
Sets a value to the property of an object.
|
void |
showOnPage(StepTestTable table,
java.lang.String verify)
Make the component visible on the page.
|
ComponentFunction |
showOnPage(java.lang.String verify)
Make the component visible on the page.
|
void |
typeChars(StepTestTable table,
java.lang.String textValue)
Sends literal text keystrokes to whatever has keyboard focus.
|
ComponentFunction |
typeChars(java.lang.String textValue)
Sends literal text keystrokes to whatever has keyboard focus.
|
void |
typeEncryption(StepTestTable table,
java.lang.String[] parameters)
Sends secret-text (such as password) to whatever has keyboard focus.
|
void |
typeEncryption(StepTestTable table,
java.lang.String encryptedDataFile,
java.lang.String privateKeyFile)
Sends secret-text (such as password) to whatever has keyboard focus.
|
ComponentFunction |
typeEncryption(java.lang.String[] parameters)
Sends secret-text (such as password) to whatever has keyboard focus.
|
ComponentFunction |
typeEncryption(java.lang.String encryptedDataFile,
java.lang.String privateKeyFile)
Sends secret-text (such as password) to whatever has keyboard focus.
|
void |
typeKeys(StepTestTable table,
java.lang.String textValue)
Sends keystrokes to whatever has keyboard focus.
|
ComponentFunction |
typeKeys(java.lang.String textValue)
Sends keystrokes to whatever has keyboard focus.
|
void |
verifyArrayPropertyToFile(StepTestTable table,
java.lang.String[] parameters)
Verify the value of an array property with a benchmark file
Typically, benchmarks are stored in the Datapool\Bench directory.
|
void |
verifyArrayPropertyToFile(StepTestTable table,
java.lang.String propertyName,
java.lang.String benchmarkFile,
java.lang.String filterMode,
java.lang.String filterOptions)
Verify the value of an array property with a benchmark file
Typically, benchmarks are stored in the Datapool\Bench directory.
|
ComponentFunction |
verifyArrayPropertyToFile(java.lang.String[] parameters)
Verify the value of an array property with a benchmark file
Typically, benchmarks are stored in the Datapool\Bench directory.
|
ComponentFunction |
verifyArrayPropertyToFile(java.lang.String propertyName,
java.lang.String benchmarkFile,
java.lang.String filterMode,
java.lang.String filterOptions)
Verify the value of an array property with a benchmark file
Typically, benchmarks are stored in the Datapool\Bench directory.
|
void |
verifyBinaryFileToFile(StepTestTable table,
java.lang.String[] parameters)
Verify the current contents of a binary file with a benchmark file.
|
void |
verifyBinaryFileToFile(StepTestTable table,
java.lang.String benchmarkFile,
java.lang.String actualFile,
java.lang.String filterMode,
java.lang.String filterOptions)
Verify the current contents of a binary file with a benchmark file.
|
ComponentFunction |
verifyBinaryFileToFile(java.lang.String[] parameters)
Verify the current contents of a binary file with a benchmark file.
|
ComponentFunction |
verifyBinaryFileToFile(java.lang.String benchmarkFile,
java.lang.String actualFile,
java.lang.String filterMode,
java.lang.String filterOptions)
Verify the current contents of a binary file with a benchmark file.
|
void |
verifyClipboardToFile(StepTestTable table,
java.lang.String[] parameters)
Verify the current contents of the Windows clipboard with a benchmark file.
|
void |
verifyClipboardToFile(StepTestTable table,
java.lang.String benchmarkFile,
java.lang.String filterMode,
java.lang.String filterOptions)
Verify the current contents of the Windows clipboard with a benchmark file.
|
ComponentFunction |
verifyClipboardToFile(java.lang.String[] parameters)
Verify the current contents of the Windows clipboard with a benchmark file.
|
ComponentFunction |
verifyClipboardToFile(java.lang.String benchmarkFile,
java.lang.String filterMode,
java.lang.String filterOptions)
Verify the current contents of the Windows clipboard with a benchmark file.
|
void |
verifyClipboardVP(StepTestTable table,
java.lang.String vPName)
Verify the current contents of the Windows clipboard using a Robot ClipboardVP.
|
ComponentFunction |
verifyClipboardVP(java.lang.String vPName)
Verify the current contents of the Windows clipboard using a Robot ClipboardVP.
|
void |
verifyComputedStyle(StepTestTable table,
java.lang.String benchFile)
Verify a component's 'computed style' against a benchmark file.
|
ComponentFunction |
verifyComputedStyle(java.lang.String benchFile)
Verify a component's 'computed style' against a benchmark file.
|
void |
verifyFileToFile(StepTestTable table,
java.lang.String[] parameters)
Verify the current contents of a text file with a benchmark file (same as VerifyTextFileToFile).
|
void |
verifyFileToFile(StepTestTable table,
java.lang.String benchmarkFile,
java.lang.String actualFile,
java.lang.String filterMode,
java.lang.String filterOptions)
Verify the current contents of a text file with a benchmark file (same as VerifyTextFileToFile).
|
ComponentFunction |
verifyFileToFile(java.lang.String[] parameters)
Verify the current contents of a text file with a benchmark file (same as VerifyTextFileToFile).
|
ComponentFunction |
verifyFileToFile(java.lang.String benchmarkFile,
java.lang.String actualFile,
java.lang.String filterMode,
java.lang.String filterOptions)
Verify the current contents of a text file with a benchmark file (same as VerifyTextFileToFile).
|
void |
verifyGUIImageToFile(StepTestTable table,
java.lang.String[] parameters)
Verify the screen shot of a GUI component with a benchmark image file
Verify the screen shot of a GUI component with a benchmark image file.
|
void |
verifyGUIImageToFile(StepTestTable table,
java.lang.String benchmarkFile,
java.lang.String subArea,
java.lang.String percentageTolerance,
java.lang.String uUIDFlag,
java.lang.String filteredAreas)
Verify the screen shot of a GUI component with a benchmark image file
Verify the screen shot of a GUI component with a benchmark image file.
|
ComponentFunction |
verifyGUIImageToFile(java.lang.String[] parameters)
Verify the screen shot of a GUI component with a benchmark image file
Verify the screen shot of a GUI component with a benchmark image file.
|
ComponentFunction |
verifyGUIImageToFile(java.lang.String benchmarkFile,
java.lang.String subArea,
java.lang.String percentageTolerance,
java.lang.String uUIDFlag,
java.lang.String filteredAreas)
Verify the screen shot of a GUI component with a benchmark image file
Verify the screen shot of a GUI component with a benchmark image file.
|
void |
verifyObjectDataToFile(StepTestTable table,
java.lang.String[] parameters)
Verify the current contents of an object's data with a benchmark file.
|
void |
verifyObjectDataToFile(StepTestTable table,
java.lang.String benchmarkFile,
java.lang.String fileEncoding,
java.lang.String filterMode,
java.lang.String filterOptions)
Verify the current contents of an object's data with a benchmark file.
|
ComponentFunction |
verifyObjectDataToFile(java.lang.String[] parameters)
Verify the current contents of an object's data with a benchmark file.
|
ComponentFunction |
verifyObjectDataToFile(java.lang.String benchmarkFile,
java.lang.String fileEncoding,
java.lang.String filterMode,
java.lang.String filterOptions)
Verify the current contents of an object's data with a benchmark file.
|
void |
verifyPropertiesSubsetToFile(StepTestTable table,
java.lang.String[] parameters)
Compare/Verify the subset of properties of a test object with the values stored in a benchmark file.
|
void |
verifyPropertiesSubsetToFile(StepTestTable table,
java.lang.String benchFile,
java.lang.String fileEncoding)
Compare/Verify the subset of properties of a test object with the values stored in a benchmark file.
|
ComponentFunction |
verifyPropertiesSubsetToFile(java.lang.String[] parameters)
Compare/Verify the subset of properties of a test object with the values stored in a benchmark file.
|
ComponentFunction |
verifyPropertiesSubsetToFile(java.lang.String benchFile,
java.lang.String fileEncoding)
Compare/Verify the subset of properties of a test object with the values stored in a benchmark file.
|
void |
verifyPropertiesToFile(StepTestTable table,
java.lang.String[] parameters)
Compare/Verify ALL of the value properties of a test object with a benchmark file.
|
void |
verifyPropertiesToFile(StepTestTable table,
java.lang.String benchFile,
java.lang.String fileEncoding)
Compare/Verify ALL of the value properties of a test object with a benchmark file.
|
ComponentFunction |
verifyPropertiesToFile(java.lang.String[] parameters)
Compare/Verify ALL of the value properties of a test object with a benchmark file.
|
ComponentFunction |
verifyPropertiesToFile(java.lang.String benchFile,
java.lang.String fileEncoding)
Compare/Verify ALL of the value properties of a test object with a benchmark file.
|
void |
verifyProperty(StepTestTable table,
java.lang.String[] parameters)
Verify the value of a single object property
|
void |
verifyProperty(StepTestTable table,
java.lang.String propertyName,
java.lang.String expectedValue,
java.lang.String caseInsensitive)
Verify the value of a single object property
|
ComponentFunction |
verifyProperty(java.lang.String[] parameters)
Verify the value of a single object property
|
ComponentFunction |
verifyProperty(java.lang.String propertyName,
java.lang.String expectedValue,
java.lang.String caseInsensitive)
Verify the value of a single object property
|
void |
verifyPropertyContains(StepTestTable table,
java.lang.String[] parameters)
Verify that the value of an object property contains a string
|
void |
verifyPropertyContains(StepTestTable table,
java.lang.String propertyName,
java.lang.String searchString,
java.lang.String caseInsensitive)
Verify that the value of an object property contains a string
|
ComponentFunction |
verifyPropertyContains(java.lang.String[] parameters)
Verify that the value of an object property contains a string
|
ComponentFunction |
verifyPropertyContains(java.lang.String propertyName,
java.lang.String searchString,
java.lang.String caseInsensitive)
Verify that the value of an object property contains a string
|
void |
verifyPropertyToFile(StepTestTable table,
java.lang.String[] parameters)
Verify the value of a single object property with a benchmark file
Verify the value of a single object property with a benchmark file.
|
void |
verifyPropertyToFile(StepTestTable table,
java.lang.String propertyName,
java.lang.String benchmarkFile,
java.lang.String fileEncoding,
java.lang.String filterMode,
java.lang.String filterOptions)
Verify the value of a single object property with a benchmark file
Verify the value of a single object property with a benchmark file.
|
ComponentFunction |
verifyPropertyToFile(java.lang.String[] parameters)
Verify the value of a single object property with a benchmark file
Verify the value of a single object property with a benchmark file.
|
ComponentFunction |
verifyPropertyToFile(java.lang.String propertyName,
java.lang.String benchmarkFile,
java.lang.String fileEncoding,
java.lang.String filterMode,
java.lang.String filterOptions)
Verify the value of a single object property with a benchmark file
Verify the value of a single object property with a benchmark file.
|
void |
verifyTabOrder(StepTestTable table,
java.lang.String fileName)
Attempts to verify the tab order of the specified object--usually a Window.
|
ComponentFunction |
verifyTabOrder(java.lang.String fileName)
Attempts to verify the tab order of the specified object--usually a Window.
|
void |
verifyTextFileToFile(StepTestTable table,
java.lang.String[] parameters)
Verify the current contents of a text file with a benchmark file (same as VerifyFileToFile).
|
void |
verifyTextFileToFile(StepTestTable table,
java.lang.String benchmarkFile,
java.lang.String actualFile,
java.lang.String filterMode,
java.lang.String filterOptions)
Verify the current contents of a text file with a benchmark file (same as VerifyFileToFile).
|
ComponentFunction |
verifyTextFileToFile(java.lang.String[] parameters)
Verify the current contents of a text file with a benchmark file (same as VerifyFileToFile).
|
ComponentFunction |
verifyTextFileToFile(java.lang.String benchmarkFile,
java.lang.String actualFile,
java.lang.String filterMode,
java.lang.String filterOptions)
Verify the current contents of a text file with a benchmark file (same as VerifyFileToFile).
|
void |
verifyValueContains(StepTestTable table,
java.lang.String[] parameters)
Verify that a string value contains a substring
|
void |
verifyValueContains(StepTestTable table,
java.lang.String value,
java.lang.String searchString,
java.lang.String suppressValue)
Verify that a string value contains a substring
|
ComponentFunction |
verifyValueContains(java.lang.String[] parameters)
Verify that a string value contains a substring
|
ComponentFunction |
verifyValueContains(java.lang.String value,
java.lang.String searchString,
java.lang.String suppressValue)
Verify that a string value contains a substring
|
void |
verifyValueContainsIgnoreCase(StepTestTable table,
java.lang.String[] parameters)
Verify that a string value contains a substring, ignoring case.
|
void |
verifyValueContainsIgnoreCase(StepTestTable table,
java.lang.String value,
java.lang.String searchString,
java.lang.String suppressValue)
Verify that a string value contains a substring, ignoring case.
|
ComponentFunction |
verifyValueContainsIgnoreCase(java.lang.String[] parameters)
Verify that a string value contains a substring, ignoring case.
|
ComponentFunction |
verifyValueContainsIgnoreCase(java.lang.String value,
java.lang.String searchString,
java.lang.String suppressValue)
Verify that a string value contains a substring, ignoring case.
|
void |
verifyValueDoesNotContain(StepTestTable table,
java.lang.String[] parameters)
Verify that a string value does NOT contain a substring
|
void |
verifyValueDoesNotContain(StepTestTable table,
java.lang.String value,
java.lang.String searchString,
java.lang.String suppressValue)
Verify that a string value does NOT contain a substring
|
ComponentFunction |
verifyValueDoesNotContain(java.lang.String[] parameters)
Verify that a string value does NOT contain a substring
|
ComponentFunction |
verifyValueDoesNotContain(java.lang.String value,
java.lang.String searchString,
java.lang.String suppressValue)
Verify that a string value does NOT contain a substring
|
void |
verifyValues(StepTestTable table,
java.lang.String[] parameters)
Verify that two string values are identical.
|
void |
verifyValues(StepTestTable table,
java.lang.String value1,
java.lang.String value2,
java.lang.String suppressValue)
Verify that two string values are identical.
|
ComponentFunction |
verifyValues(java.lang.String[] parameters)
Verify that two string values are identical.
|
ComponentFunction |
verifyValues(java.lang.String value1,
java.lang.String value2,
java.lang.String suppressValue)
Verify that two string values are identical.
|
void |
verifyValuesIgnoreCase(StepTestTable table,
java.lang.String[] parameters)
Verify that two string values are identical, ignoring case.
|
void |
verifyValuesIgnoreCase(StepTestTable table,
java.lang.String value1,
java.lang.String value2,
java.lang.String suppressValue)
Verify that two string values are identical, ignoring case.
|
ComponentFunction |
verifyValuesIgnoreCase(java.lang.String[] parameters)
Verify that two string values are identical, ignoring case.
|
ComponentFunction |
verifyValuesIgnoreCase(java.lang.String value1,
java.lang.String value2,
java.lang.String suppressValue)
Verify that two string values are identical, ignoring case.
|
void |
verifyValuesNotEqual(StepTestTable table,
java.lang.String[] parameters)
Verify that two string values are NOT identical.
|
void |
verifyValuesNotEqual(StepTestTable table,
java.lang.String value1,
java.lang.String value2,
java.lang.String suppressValue)
Verify that two string values are NOT identical.
|
ComponentFunction |
verifyValuesNotEqual(java.lang.String[] parameters)
Verify that two string values are NOT identical.
|
ComponentFunction |
verifyValuesNotEqual(java.lang.String value1,
java.lang.String value2,
java.lang.String suppressValue)
Verify that two string values are NOT identical.
|
getWindow, setWindow
getName, getParent, getParentName, quote
public GenericMaster(Window window, java.lang.String compname)
window
- Optional:NO
Specifies which Window this component is 'in'.compname
- Optional:NO
Specifies the AppMap name of the component in the Window.public GenericMaster(java.lang.String winname, java.lang.String compname)
winname
- Optional:NO
Specifies the AppMap name of the window.compname
- Optional:NO
Specifies the AppMap name of the component in the Window.protected GenericMaster(java.lang.String compname)
public ComponentFunction assignPropertyVariable(java.lang.String propertyName, java.lang.String variableName, java.lang.String suppressValue)
Assign the string value of an object property to a specific DDVariable Assign the string value of an object property to a specific DDVariable. Note, if you supply the name of the variable and include the leading caret (^) symbol then the variable must be enclosed in quotes. Otherwise, that variable will be used like any other variable and the substituted value of that variable will be interpretted as the name of the variable you wish to use.Supporting Engines:
propertyName
- Optional:NO
The case-sensitive name of the object property.variableName
- Optional:NO
The name of the variable to receive the property value.suppressValue
- Optional:YES
Set to "SUPPRESSVALUE" to prevent the logging of ugly multi-line property values.public void assignPropertyVariable(StepTestTable table, java.lang.String propertyName, java.lang.String variableName, java.lang.String suppressValue)
Assign the string value of an object property to a specific DDVariable Assign the string value of an object property to a specific DDVariable. Note, if you supply the name of the variable and include the leading caret (^) symbol then the variable must be enclosed in quotes. Otherwise, that variable will be used like any other variable and the substituted value of that variable will be interpretted as the name of the variable you wish to use.Supporting Engines:
table
- Optional:NO
The table to add the record to.propertyName
- Optional:NO
The case-sensitive name of the object property.variableName
- Optional:NO
The name of the variable to receive the property value.suppressValue
- Optional:YES
Set to "SUPPRESSVALUE" to prevent the logging of ugly multi-line property values.public ComponentFunction assignPropertyVariable(java.lang.String[] parameters)
Assign the string value of an object property to a specific DDVariable Assign the string value of an object property to a specific DDVariable. Note, if you supply the name of the variable and include the leading caret (^) symbol then the variable must be enclosed in quotes. Otherwise, that variable will be used like any other variable and the substituted value of that variable will be interpretted as the name of the variable you wish to use.Supporting Engines:
parameters
- Optional:NO
An array containing the following parameters:
public void assignPropertyVariable(StepTestTable table, java.lang.String[] parameters)
Assign the string value of an object property to a specific DDVariable Assign the string value of an object property to a specific DDVariable. Note, if you supply the name of the variable and include the leading caret (^) symbol then the variable must be enclosed in quotes. Otherwise, that variable will be used like any other variable and the substituted value of that variable will be interpretted as the name of the variable you wish to use.Supporting Engines:
table
- Optional:NO
The table to add the record to.parameters
- Optional:NO
An array containing the following parameters:
public ComponentFunction captureObjectDataToFile(java.lang.String file, java.lang.String fileEncoding, java.lang.String filterMode, java.lang.String filterOptions)
Copy the current contents of an object's data to a file. Only an object that Robot can perform an ObjectData VP on can use this command. By default, the files will be stored in the active "Test" directory. If you specify a relative path, the path will be relative to the project directory. The directory for a full or relative path must already exist.Supporting Engines:
file
- Optional:NO
The name of the file used to store the object data.fileEncoding
- Optional:YES DefaultVal:
Specify a character encoding to be used when saving data to a file.
If it is not specified, the system default file encoding will be used.
The encoding should be a valid string supported by Java; if it is not valid,
the system default file encoding will be used instead.filterMode
- Optional:YES DefaultVal:
(Future) Specify a file filter to use to process the text before comparison.filterOptions
- Optional:YES DefaultVal:
(Future) Specify filter options to use with the file filter.public void captureObjectDataToFile(StepTestTable table, java.lang.String file, java.lang.String fileEncoding, java.lang.String filterMode, java.lang.String filterOptions)
Copy the current contents of an object's data to a file. Only an object that Robot can perform an ObjectData VP on can use this command. By default, the files will be stored in the active "Test" directory. If you specify a relative path, the path will be relative to the project directory. The directory for a full or relative path must already exist.Supporting Engines:
table
- Optional:NO
The table to add the record to.file
- Optional:NO
The name of the file used to store the object data.fileEncoding
- Optional:YES DefaultVal:
Specify a character encoding to be used when saving data to a file.
If it is not specified, the system default file encoding will be used.
The encoding should be a valid string supported by Java; if it is not valid,
the system default file encoding will be used instead.filterMode
- Optional:YES DefaultVal:
(Future) Specify a file filter to use to process the text before comparison.filterOptions
- Optional:YES DefaultVal:
(Future) Specify filter options to use with the file filter.public ComponentFunction captureObjectDataToFile(java.lang.String[] parameters)
Copy the current contents of an object's data to a file. Only an object that Robot can perform an ObjectData VP on can use this command. By default, the files will be stored in the active "Test" directory. If you specify a relative path, the path will be relative to the project directory. The directory for a full or relative path must already exist.Supporting Engines:
parameters
- Optional:NO
An array containing the following parameters:
public void captureObjectDataToFile(StepTestTable table, java.lang.String[] parameters)
Copy the current contents of an object's data to a file. Only an object that Robot can perform an ObjectData VP on can use this command. By default, the files will be stored in the active "Test" directory. If you specify a relative path, the path will be relative to the project directory. The directory for a full or relative path must already exist.Supporting Engines:
table
- Optional:NO
The table to add the record to.parameters
- Optional:NO
An array containing the following parameters:
public ComponentFunction capturePropertiesToFile(java.lang.String file, java.lang.String fileEncoding)
Copy all of the value properties a test object to a file. Copy all of the value properties a test object to a file. By default, the files will be stored in the active "Test" directory. If you specify a relative path, the path will be relative to the project directory. The directory for a full or relative path must already exist.Supporting Engines:
file
- Optional:NO
The name of the file used to store the property list data.fileEncoding
- Optional:YES DefaultVal:
Specify a character encoding to be used when saving data to a file.public void capturePropertiesToFile(StepTestTable table, java.lang.String file, java.lang.String fileEncoding)
Copy all of the value properties a test object to a file. Copy all of the value properties a test object to a file. By default, the files will be stored in the active "Test" directory. If you specify a relative path, the path will be relative to the project directory. The directory for a full or relative path must already exist.Supporting Engines:
table
- Optional:NO
The table to add the record to.file
- Optional:NO
The name of the file used to store the property list data.fileEncoding
- Optional:YES DefaultVal:
Specify a character encoding to be used when saving data to a file.public ComponentFunction capturePropertiesToFile(java.lang.String[] parameters)
Copy all of the value properties a test object to a file. Copy all of the value properties a test object to a file. By default, the files will be stored in the active "Test" directory. If you specify a relative path, the path will be relative to the project directory. The directory for a full or relative path must already exist.Supporting Engines:
parameters
- Optional:NO
An array containing the following parameters:
public void capturePropertiesToFile(StepTestTable table, java.lang.String[] parameters)
Copy all of the value properties a test object to a file. Copy all of the value properties a test object to a file. By default, the files will be stored in the active "Test" directory. If you specify a relative path, the path will be relative to the project directory. The directory for a full or relative path must already exist.Supporting Engines:
table
- Optional:NO
The table to add the record to.parameters
- Optional:NO
An array containing the following parameters:
public ComponentFunction capturePropertyToFile(java.lang.String propertyName, java.lang.String file, java.lang.String fileEncoding)
Copy a propertie's value of a test object to to a file. Copy a propertie's value of a test object to to a file. The file will be stored in the active "Test" directory. If you specify a relative path, the path will be relative to the project directory. The directory for a full or relative path must already exist.Supporting Engines:
propertyName
- Optional:NO
The case-sensitive name of the object array property to verify.file
- Optional:NO
The name of the file used to store the property list data.fileEncoding
- Optional:YES DefaultVal:
Specify a character encoding to be used when saving data to a file.
If it is not specified, the system default file encoding will be used.
The encoding should be a valid string supported by Java; if it is not valid,
the system default file encoding will be used instead.public void capturePropertyToFile(StepTestTable table, java.lang.String propertyName, java.lang.String file, java.lang.String fileEncoding)
Copy a propertie's value of a test object to to a file. Copy a propertie's value of a test object to to a file. The file will be stored in the active "Test" directory. If you specify a relative path, the path will be relative to the project directory. The directory for a full or relative path must already exist.Supporting Engines:
table
- Optional:NO
The table to add the record to.propertyName
- Optional:NO
The case-sensitive name of the object array property to verify.file
- Optional:NO
The name of the file used to store the property list data.fileEncoding
- Optional:YES DefaultVal:
Specify a character encoding to be used when saving data to a file.
If it is not specified, the system default file encoding will be used.
The encoding should be a valid string supported by Java; if it is not valid,
the system default file encoding will be used instead.public ComponentFunction capturePropertyToFile(java.lang.String[] parameters)
Copy a propertie's value of a test object to to a file. Copy a propertie's value of a test object to to a file. The file will be stored in the active "Test" directory. If you specify a relative path, the path will be relative to the project directory. The directory for a full or relative path must already exist.Supporting Engines:
parameters
- Optional:NO
An array containing the following parameters:
public void capturePropertyToFile(StepTestTable table, java.lang.String[] parameters)
Copy a propertie's value of a test object to to a file. Copy a propertie's value of a test object to to a file. The file will be stored in the active "Test" directory. If you specify a relative path, the path will be relative to the project directory. The directory for a full or relative path must already exist.Supporting Engines:
table
- Optional:NO
The table to add the record to.parameters
- Optional:NO
An array containing the following parameters:
public ComponentFunction clearAppMapCache()
Clear the internal application map cache. Some Engines maintain an internal cache of previously sought application objects. In RobotJ, there exists a cache of TestObject objects, that cache is cleared by this command so that the recognition string algorithm has to be re-run the next time a window or component is to be recognized. This is useful for cases when a dialog pops up, goes away, then pops up again. The cached version of the dialog or it's components may not correspond to the actual version. This command lets a tester clear the cache when this kind of condition may arrise. (Future: instruct the safsmaps service to reload it's application map data)Supporting Engines:
public void clearAppMapCache(StepTestTable table)
Clear the internal application map cache. Some Engines maintain an internal cache of previously sought application objects. In RobotJ, there exists a cache of TestObject objects, that cache is cleared by this command so that the recognition string algorithm has to be re-run the next time a window or component is to be recognized. This is useful for cases when a dialog pops up, goes away, then pops up again. The cached version of the dialog or it's components may not correspond to the actual version. This command lets a tester clear the cache when this kind of condition may arrise. (Future: instruct the safsmaps service to reload it's application map data)Supporting Engines:
table
- Optional:NO
The table to add the record to.public ComponentFunction clearCache()
Clear the cache of a component. Clear the cache of a component. To save time, component may contain a cache to store its content or some time-consuming resource. But sometime, the cache's content may not be fresh, which will affect the test, at this situation, user may call this keyword to clear the cache and SAFS will use the latest content.Supporting Engines:
public void clearCache(StepTestTable table)
Clear the cache of a component. Clear the cache of a component. To save time, component may contain a cache to store its content or some time-consuming resource. But sometime, the cache's content may not be fresh, which will affect the test, at this situation, user may call this keyword to clear the cache and SAFS will use the latest content.Supporting Engines:
table
- Optional:NO
The table to add the record to.public ComponentFunction executeScript(java.lang.String script, java.lang.String paramN)
Execute a piece of script on the specified component synchronously. Execute a piece of script on the specified component synchronously.Supporting Engines:
script
- Optional:NO
The script to execute.paramN
- Optional:YES
The paramters passed to script.public void executeScript(StepTestTable table, java.lang.String script, java.lang.String paramN)
Execute a piece of script on the specified component synchronously. Execute a piece of script on the specified component synchronously.Supporting Engines:
table
- Optional:NO
The table to add the record to.script
- Optional:NO
The script to execute.paramN
- Optional:YES
The paramters passed to script.public ComponentFunction executeScript(java.lang.String[] parameters)
Execute a piece of script on the specified component synchronously. Execute a piece of script on the specified component synchronously.Supporting Engines:
parameters
- Optional:NO
An array containing the following parameters:
public void executeScript(StepTestTable table, java.lang.String[] parameters)
Execute a piece of script on the specified component synchronously. Execute a piece of script on the specified component synchronously.Supporting Engines:
table
- Optional:NO
The table to add the record to.parameters
- Optional:NO
An array containing the following parameters:
public ComponentFunction getComputedStyle(java.lang.String testFile)
Get a component's 'computed style', and save them to a file. Get a component's 'computed style', and save them to a file.Supporting Engines:
testFile
- Optional:NO
The test file to save 'computed style'.public void getComputedStyle(StepTestTable table, java.lang.String testFile)
Get a component's 'computed style', and save them to a file. Get a component's 'computed style', and save them to a file.Supporting Engines:
table
- Optional:NO
The table to add the record to.testFile
- Optional:NO
The test file to save 'computed style'.public ComponentFunction getGUIImage(java.lang.String outputFile, java.lang.String subArea, java.lang.String filteredAreas)
Capture the screen shot of a GUI component and save it to a file Capture the screen shot of a GUI component and save it to a file. The available formats for the output file are BITMAP (*.bmp) and JPEG (*.jpg). For RJ and IBT engine, other formats like TIFF (*.tif), GIF (*.gif), PNG (*.png) and PNM (*.pnm) are also supported. Optionally the user can specify part of the component to capture. The specified GUI component/part must be in the viewing range of its containing window. If portion of the component is displayed in the window, only that portion will be captured; if the component falls completely out of the viewing range of the window, the command will fail. The command makes no attempt to bring the component into view. Robot Classic (RC) Specific Notes: 1) This command may fail to execute if the user has turned off logging to TestManager via the Robot tools setting. You may have to enable TestManager logging for the command to successfully execute. 2) This command requires that the TestManager Image Comparator tool is installed on the test machine. Machines having only the Robot Test Agent installed will not be able to use this command. 3) Due to a bug in Robot Classic, images captured using the Robot Classic engine may differ in image size and/or file size from those captured using other supported engines. Depending on the comparator used, rebenching your images may be necessary when migrating to another engine. RobotJ (RJ) and IBT Specific Notes: 1)It requires that Java Advanced Imaging (JAI) be installed on the test machine 2)It supports to save image in format TIFF (*.tif), GIF (*.gif), PNG (*.png) and PNM (*.pnm) Apple IOS specific Notes: UIAutomation captures all screenshots as PNG images, but SAFS copies and stores them into the image format desired (JPG, BMP, etc.). However, the rootname of the desired output image name must be unique to avoid UIAutomation generating indexed image names we will not be looking for. For example, specifying MyImage.JPG and later MyImage.BMP will cause UIAutomation to capture MyImage.PNG and MyImage1.PNG. When attempting to find MyImage.PNG captured for MyImage.BMP we will retrieve MyImage.PNG which is NOT the correct image capture for MyImage.BMP.Supporting Engines:
outputFile
- Optional:NO
Path (with filename) to the output image file.subArea
- Optional:YES
Optional app map subkey indicating partial image of the component to capture.filteredAreas
- Optional:YES
"Filter=one or multiple areas" to filter the GUI image (or sub image of GUI if the parameter "SubArea" is present)public void getGUIImage(StepTestTable table, java.lang.String outputFile, java.lang.String subArea, java.lang.String filteredAreas)
Capture the screen shot of a GUI component and save it to a file Capture the screen shot of a GUI component and save it to a file. The available formats for the output file are BITMAP (*.bmp) and JPEG (*.jpg). For RJ and IBT engine, other formats like TIFF (*.tif), GIF (*.gif), PNG (*.png) and PNM (*.pnm) are also supported. Optionally the user can specify part of the component to capture. The specified GUI component/part must be in the viewing range of its containing window. If portion of the component is displayed in the window, only that portion will be captured; if the component falls completely out of the viewing range of the window, the command will fail. The command makes no attempt to bring the component into view. Robot Classic (RC) Specific Notes: 1) This command may fail to execute if the user has turned off logging to TestManager via the Robot tools setting. You may have to enable TestManager logging for the command to successfully execute. 2) This command requires that the TestManager Image Comparator tool is installed on the test machine. Machines having only the Robot Test Agent installed will not be able to use this command. 3) Due to a bug in Robot Classic, images captured using the Robot Classic engine may differ in image size and/or file size from those captured using other supported engines. Depending on the comparator used, rebenching your images may be necessary when migrating to another engine. RobotJ (RJ) and IBT Specific Notes: 1)It requires that Java Advanced Imaging (JAI) be installed on the test machine 2)It supports to save image in format TIFF (*.tif), GIF (*.gif), PNG (*.png) and PNM (*.pnm) Apple IOS specific Notes: UIAutomation captures all screenshots as PNG images, but SAFS copies and stores them into the image format desired (JPG, BMP, etc.). However, the rootname of the desired output image name must be unique to avoid UIAutomation generating indexed image names we will not be looking for. For example, specifying MyImage.JPG and later MyImage.BMP will cause UIAutomation to capture MyImage.PNG and MyImage1.PNG. When attempting to find MyImage.PNG captured for MyImage.BMP we will retrieve MyImage.PNG which is NOT the correct image capture for MyImage.BMP.Supporting Engines:
table
- Optional:NO
The table to add the record to.outputFile
- Optional:NO
Path (with filename) to the output image file.subArea
- Optional:YES
Optional app map subkey indicating partial image of the component to capture.filteredAreas
- Optional:YES
"Filter=one or multiple areas" to filter the GUI image (or sub image of GUI if the parameter "SubArea" is present)public ComponentFunction getGUIImage(java.lang.String[] parameters)
Capture the screen shot of a GUI component and save it to a file Capture the screen shot of a GUI component and save it to a file. The available formats for the output file are BITMAP (*.bmp) and JPEG (*.jpg). For RJ and IBT engine, other formats like TIFF (*.tif), GIF (*.gif), PNG (*.png) and PNM (*.pnm) are also supported. Optionally the user can specify part of the component to capture. The specified GUI component/part must be in the viewing range of its containing window. If portion of the component is displayed in the window, only that portion will be captured; if the component falls completely out of the viewing range of the window, the command will fail. The command makes no attempt to bring the component into view. Robot Classic (RC) Specific Notes: 1) This command may fail to execute if the user has turned off logging to TestManager via the Robot tools setting. You may have to enable TestManager logging for the command to successfully execute. 2) This command requires that the TestManager Image Comparator tool is installed on the test machine. Machines having only the Robot Test Agent installed will not be able to use this command. 3) Due to a bug in Robot Classic, images captured using the Robot Classic engine may differ in image size and/or file size from those captured using other supported engines. Depending on the comparator used, rebenching your images may be necessary when migrating to another engine. RobotJ (RJ) and IBT Specific Notes: 1)It requires that Java Advanced Imaging (JAI) be installed on the test machine 2)It supports to save image in format TIFF (*.tif), GIF (*.gif), PNG (*.png) and PNM (*.pnm) Apple IOS specific Notes: UIAutomation captures all screenshots as PNG images, but SAFS copies and stores them into the image format desired (JPG, BMP, etc.). However, the rootname of the desired output image name must be unique to avoid UIAutomation generating indexed image names we will not be looking for. For example, specifying MyImage.JPG and later MyImage.BMP will cause UIAutomation to capture MyImage.PNG and MyImage1.PNG. When attempting to find MyImage.PNG captured for MyImage.BMP we will retrieve MyImage.PNG which is NOT the correct image capture for MyImage.BMP.Supporting Engines:
parameters
- Optional:NO
An array containing the following parameters:
public void getGUIImage(StepTestTable table, java.lang.String[] parameters)
Capture the screen shot of a GUI component and save it to a file Capture the screen shot of a GUI component and save it to a file. The available formats for the output file are BITMAP (*.bmp) and JPEG (*.jpg). For RJ and IBT engine, other formats like TIFF (*.tif), GIF (*.gif), PNG (*.png) and PNM (*.pnm) are also supported. Optionally the user can specify part of the component to capture. The specified GUI component/part must be in the viewing range of its containing window. If portion of the component is displayed in the window, only that portion will be captured; if the component falls completely out of the viewing range of the window, the command will fail. The command makes no attempt to bring the component into view. Robot Classic (RC) Specific Notes: 1) This command may fail to execute if the user has turned off logging to TestManager via the Robot tools setting. You may have to enable TestManager logging for the command to successfully execute. 2) This command requires that the TestManager Image Comparator tool is installed on the test machine. Machines having only the Robot Test Agent installed will not be able to use this command. 3) Due to a bug in Robot Classic, images captured using the Robot Classic engine may differ in image size and/or file size from those captured using other supported engines. Depending on the comparator used, rebenching your images may be necessary when migrating to another engine. RobotJ (RJ) and IBT Specific Notes: 1)It requires that Java Advanced Imaging (JAI) be installed on the test machine 2)It supports to save image in format TIFF (*.tif), GIF (*.gif), PNG (*.png) and PNM (*.pnm) Apple IOS specific Notes: UIAutomation captures all screenshots as PNG images, but SAFS copies and stores them into the image format desired (JPG, BMP, etc.). However, the rootname of the desired output image name must be unique to avoid UIAutomation generating indexed image names we will not be looking for. For example, specifying MyImage.JPG and later MyImage.BMP will cause UIAutomation to capture MyImage.PNG and MyImage1.PNG. When attempting to find MyImage.PNG captured for MyImage.BMP we will retrieve MyImage.PNG which is NOT the correct image capture for MyImage.BMP.Supporting Engines:
table
- Optional:NO
The table to add the record to.parameters
- Optional:NO
An array containing the following parameters:
public ComponentFunction getTextFromGUI(java.lang.String variableName, java.lang.String subArea, java.lang.String oCRId, java.lang.String langId, java.lang.String scaleRatio)
Incorporate OCR technology to detect the text on a GUI component and save the text to a variable. Two open-source OCRs are integrated into SAFS. One is TesseractOCR (TOCR) at http://code.google.com/p/tesseract-ocr; the other GOCR at http://jocr.sourceforge.net. TOCR 2.0.4 and GOCR 0.48 are the latest release. They are available in SAFS and only support English. Both two OCR owners claim to support more languages in next release. Chinese, Japanese, and Korean are going to be supported in TOCR's next release 3.00.Supporting Engines:
variableName
- Optional:NO
The name of the variable to receive detected text.subArea
- Optional:YES
Optional app map subkey indicating partial image of the component to capture.oCRId
- Optional:YES
OCRId indicating the OCR used to recognize text.langId
- Optional:YES
Optional LangId representing the language in use for selected OCR to recognize text.scaleRatio
- Optional:YES
Optional ScaleRatio indicating the scale ratio for resizing the original image.public void getTextFromGUI(StepTestTable table, java.lang.String variableName, java.lang.String subArea, java.lang.String oCRId, java.lang.String langId, java.lang.String scaleRatio)
Incorporate OCR technology to detect the text on a GUI component and save the text to a variable. Two open-source OCRs are integrated into SAFS. One is TesseractOCR (TOCR) at http://code.google.com/p/tesseract-ocr; the other GOCR at http://jocr.sourceforge.net. TOCR 2.0.4 and GOCR 0.48 are the latest release. They are available in SAFS and only support English. Both two OCR owners claim to support more languages in next release. Chinese, Japanese, and Korean are going to be supported in TOCR's next release 3.00.Supporting Engines:
table
- Optional:NO
The table to add the record to.variableName
- Optional:NO
The name of the variable to receive detected text.subArea
- Optional:YES
Optional app map subkey indicating partial image of the component to capture.oCRId
- Optional:YES
OCRId indicating the OCR used to recognize text.langId
- Optional:YES
Optional LangId representing the language in use for selected OCR to recognize text.scaleRatio
- Optional:YES
Optional ScaleRatio indicating the scale ratio for resizing the original image.public ComponentFunction getTextFromGUI(java.lang.String[] parameters)
Incorporate OCR technology to detect the text on a GUI component and save the text to a variable. Two open-source OCRs are integrated into SAFS. One is TesseractOCR (TOCR) at http://code.google.com/p/tesseract-ocr; the other GOCR at http://jocr.sourceforge.net. TOCR 2.0.4 and GOCR 0.48 are the latest release. They are available in SAFS and only support English. Both two OCR owners claim to support more languages in next release. Chinese, Japanese, and Korean are going to be supported in TOCR's next release 3.00.Supporting Engines:
parameters
- Optional:NO
An array containing the following parameters:
public void getTextFromGUI(StepTestTable table, java.lang.String[] parameters)
Incorporate OCR technology to detect the text on a GUI component and save the text to a variable. Two open-source OCRs are integrated into SAFS. One is TesseractOCR (TOCR) at http://code.google.com/p/tesseract-ocr; the other GOCR at http://jocr.sourceforge.net. TOCR 2.0.4 and GOCR 0.48 are the latest release. They are available in SAFS and only support English. Both two OCR owners claim to support more languages in next release. Chinese, Japanese, and Korean are going to be supported in TOCR's next release 3.00.Supporting Engines:
table
- Optional:NO
The table to add the record to.parameters
- Optional:NO
An array containing the following parameters:
public ComponentFunction gUIDoesExist()
Routine to verify the visual existence of a particular window and/or component. Routine to verify the visual existence of a particular window and/or component. If the window(Field 2) and component(Field 3) are the same then we only check for the existence of the window. However, if the component is actually a child of the window then we first check for the window and then check for the component. If a Window or Component is HIDDEN, it will be treated as if it Does NOT Exist. The item must be VISIBLE to pass.Supporting Engines:
public void gUIDoesExist(StepTestTable table)
Routine to verify the visual existence of a particular window and/or component. Routine to verify the visual existence of a particular window and/or component. If the window(Field 2) and component(Field 3) are the same then we only check for the existence of the window. However, if the component is actually a child of the window then we first check for the window and then check for the component. If a Window or Component is HIDDEN, it will be treated as if it Does NOT Exist. The item must be VISIBLE to pass.Supporting Engines:
table
- Optional:NO
The table to add the record to.public ComponentFunction gUIDoesNotExist()
Routine to verify the visual non-existence of a particular window and/or component. Routine to verify the visual non-existence of a particular window and/or component. If the window(Field 2) and component(Field 3) are the same then we only check for the visual non-existence of the window. However, if the component is actually a child of the window then we first check for the visual existence of the window and then check for the visual non-existence of the component. If a Window or Component is HIDDEN, it will be treated as if it Does NOT Exist. The item must not exist or be HIDDEN to pass.Supporting Engines:
public void gUIDoesNotExist(StepTestTable table)
Routine to verify the visual non-existence of a particular window and/or component. Routine to verify the visual non-existence of a particular window and/or component. If the window(Field 2) and component(Field 3) are the same then we only check for the visual non-existence of the window. However, if the component is actually a child of the window then we first check for the visual existence of the window and then check for the visual non-existence of the component. If a Window or Component is HIDDEN, it will be treated as if it Does NOT Exist. The item must not exist or be HIDDEN to pass.Supporting Engines:
table
- Optional:NO
The table to add the record to.public ComponentFunction hoverMouse(java.lang.String appMapSubkey, java.lang.String hoverTime)
Hover the mouse over an object. By default, hover on the center of the component for 2000 milliseconds. We can also hover on any part of an object based on a stored x,y coordinate. The object containing the coordinate is first given context and then the hover command is generated at the coordinate. Thus, an item or object can be referenced by name even though it is only recognized via coordinates. The coordinate lookup is done with the component name of the record AND Field #5. Typical Data Table records: (1) t MainWindow Component HoverMouse 1000 (2) t MainWindow MainWindow HoverMouse AnObject 2000 (3) t MainWindow FolderTree HoverMouse Node1 3000 #1 above will contain a blank as it's 5th field and 1000 as 6th field, and it will hover at the center of the Component for 1000 milliseconds. #2 above will contain an AnObject="3,10" entry in the MainWindow section of the Application Map to hover at x=3, y=10 in the MainWindow. #3 above will contain a FolderTree entry in the MainWindow section with normal recognition information for it. FolderTree will also have it's own section in the Application Map in which there will be an entry like Node1="15,30". This will tell Robot to locate the FolderTree Generic object and hover at the coordinates specified by the reference.Supporting Engines:
appMapSubkey
- Optional:YES
(Optional)Name of the AppMap subkey to lookup and use for the hover.hoverTime
- Optional:YES DefaultVal:2000
(Optional)Number of milliseconds to hover.public void hoverMouse(StepTestTable table, java.lang.String appMapSubkey, java.lang.String hoverTime)
Hover the mouse over an object. By default, hover on the center of the component for 2000 milliseconds. We can also hover on any part of an object based on a stored x,y coordinate. The object containing the coordinate is first given context and then the hover command is generated at the coordinate. Thus, an item or object can be referenced by name even though it is only recognized via coordinates. The coordinate lookup is done with the component name of the record AND Field #5. Typical Data Table records: (1) t MainWindow Component HoverMouse 1000 (2) t MainWindow MainWindow HoverMouse AnObject 2000 (3) t MainWindow FolderTree HoverMouse Node1 3000 #1 above will contain a blank as it's 5th field and 1000 as 6th field, and it will hover at the center of the Component for 1000 milliseconds. #2 above will contain an AnObject="3,10" entry in the MainWindow section of the Application Map to hover at x=3, y=10 in the MainWindow. #3 above will contain a FolderTree entry in the MainWindow section with normal recognition information for it. FolderTree will also have it's own section in the Application Map in which there will be an entry like Node1="15,30". This will tell Robot to locate the FolderTree Generic object and hover at the coordinates specified by the reference.Supporting Engines:
table
- Optional:NO
The table to add the record to.appMapSubkey
- Optional:YES
(Optional)Name of the AppMap subkey to lookup and use for the hover.hoverTime
- Optional:YES DefaultVal:2000
(Optional)Number of milliseconds to hover.public ComponentFunction hoverMouse(java.lang.String[] parameters)
Hover the mouse over an object. By default, hover on the center of the component for 2000 milliseconds. We can also hover on any part of an object based on a stored x,y coordinate. The object containing the coordinate is first given context and then the hover command is generated at the coordinate. Thus, an item or object can be referenced by name even though it is only recognized via coordinates. The coordinate lookup is done with the component name of the record AND Field #5. Typical Data Table records: (1) t MainWindow Component HoverMouse 1000 (2) t MainWindow MainWindow HoverMouse AnObject 2000 (3) t MainWindow FolderTree HoverMouse Node1 3000 #1 above will contain a blank as it's 5th field and 1000 as 6th field, and it will hover at the center of the Component for 1000 milliseconds. #2 above will contain an AnObject="3,10" entry in the MainWindow section of the Application Map to hover at x=3, y=10 in the MainWindow. #3 above will contain a FolderTree entry in the MainWindow section with normal recognition information for it. FolderTree will also have it's own section in the Application Map in which there will be an entry like Node1="15,30". This will tell Robot to locate the FolderTree Generic object and hover at the coordinates specified by the reference.Supporting Engines:
parameters
- Optional:NO
An array containing the following parameters:
public void hoverMouse(StepTestTable table, java.lang.String[] parameters)
Hover the mouse over an object. By default, hover on the center of the component for 2000 milliseconds. We can also hover on any part of an object based on a stored x,y coordinate. The object containing the coordinate is first given context and then the hover command is generated at the coordinate. Thus, an item or object can be referenced by name even though it is only recognized via coordinates. The coordinate lookup is done with the component name of the record AND Field #5. Typical Data Table records: (1) t MainWindow Component HoverMouse 1000 (2) t MainWindow MainWindow HoverMouse AnObject 2000 (3) t MainWindow FolderTree HoverMouse Node1 3000 #1 above will contain a blank as it's 5th field and 1000 as 6th field, and it will hover at the center of the Component for 1000 milliseconds. #2 above will contain an AnObject="3,10" entry in the MainWindow section of the Application Map to hover at x=3, y=10 in the MainWindow. #3 above will contain a FolderTree entry in the MainWindow section with normal recognition information for it. FolderTree will also have it's own section in the Application Map in which there will be an entry like Node1="15,30". This will tell Robot to locate the FolderTree Generic object and hover at the coordinates specified by the reference.Supporting Engines:
table
- Optional:NO
The table to add the record to.parameters
- Optional:NO
An array containing the following parameters:
public ComponentFunction hoverScreenLocation(java.lang.String appMapSubkey, java.lang.String hoverTime)
Hover the mouse over a specified screen location. Hover the mouse over a specified screen location. We can hover on any screen location based on stored x,y coordinates or hardcoded literal values. The Window:Component fields can be anything at all and will be ignored if they do not exist in the app map, or if the retrieved app map data does not contain coordinate data. Thus, an item or object can be referenced by name even though it is only known via coordinates. If the Window:Component AppMap lookup does NOT contain coordinate data and is ignored, then the AppMapSubKey field is REQUIRED and is expected to contain a reference or literal text containing absolute screen coordinates. If the Window:Component AppMap lookup DOES contain coordinate data, this data is treated as the absolute screen coordinates to be used. The AppMapSubKey field becomes OPTIONAL and coordinate data in the field is treated as a relative offset added to the absolute values found for the Window:Component. Any AppMapSubKey lookup is done with the Component name in the record AND Field #5. Typical Data Table records: (1) t MainWindow Component HoverScreenLocation 1000 (2) t MainWindow MainWindow HoverScreenLocation AnObject 2000 (3) t MainWindow MainWindow HoverScreenLocation 50,80 3000 (4) t AnyWin AnyComp HoverScreenLocation Node1 3000 #1 above will contain a blank as it's 5th field and 1000 as 6th field. Because the AppMapSubKey field is blank, the [MainWindow] section of the AppMap MUST have a Component item with valid absolute screen coordinate data. The mouse cursor will hover at the specified Component location for 1000 milliseconds. #2 above will contain an AnObject="Coords=50,80" entry in the [MainWindow] section of the AppMap. If there is a MainWindow component in the AppMap with valid screen coordinates then the mouse cursor will hover with a relative offset of 50,80 from those absolute screen coordinates. Otherwise, the mouse will hover at absolute screen coordinates 50,80. #3 If there is a MainWindow component in the [MainWindow] section of the AppMap with valid screen coordinates then the mouse cursor will hover with a relative offset of 50,80 from those absolute screen coordinates. Otherwise, the mouse will hover at absolute screen coordinates 50,80. #4 above will contain no valid AnyWin:AnyComp coordinate data and those fields will be ignored. However, Node1 MUST exist in the Application Map [AnyComp] section to provide absolute screen coordinates.Supporting Engines:
appMapSubkey
- Optional:YES
(Sometimes Optional)Name of the AppMap subkey to lookup and use for the hover.hoverTime
- Optional:YES DefaultVal:2000
(Optional)Number of milliseconds to hover.public void hoverScreenLocation(StepTestTable table, java.lang.String appMapSubkey, java.lang.String hoverTime)
Hover the mouse over a specified screen location. Hover the mouse over a specified screen location. We can hover on any screen location based on stored x,y coordinates or hardcoded literal values. The Window:Component fields can be anything at all and will be ignored if they do not exist in the app map, or if the retrieved app map data does not contain coordinate data. Thus, an item or object can be referenced by name even though it is only known via coordinates. If the Window:Component AppMap lookup does NOT contain coordinate data and is ignored, then the AppMapSubKey field is REQUIRED and is expected to contain a reference or literal text containing absolute screen coordinates. If the Window:Component AppMap lookup DOES contain coordinate data, this data is treated as the absolute screen coordinates to be used. The AppMapSubKey field becomes OPTIONAL and coordinate data in the field is treated as a relative offset added to the absolute values found for the Window:Component. Any AppMapSubKey lookup is done with the Component name in the record AND Field #5. Typical Data Table records: (1) t MainWindow Component HoverScreenLocation 1000 (2) t MainWindow MainWindow HoverScreenLocation AnObject 2000 (3) t MainWindow MainWindow HoverScreenLocation 50,80 3000 (4) t AnyWin AnyComp HoverScreenLocation Node1 3000 #1 above will contain a blank as it's 5th field and 1000 as 6th field. Because the AppMapSubKey field is blank, the [MainWindow] section of the AppMap MUST have a Component item with valid absolute screen coordinate data. The mouse cursor will hover at the specified Component location for 1000 milliseconds. #2 above will contain an AnObject="Coords=50,80" entry in the [MainWindow] section of the AppMap. If there is a MainWindow component in the AppMap with valid screen coordinates then the mouse cursor will hover with a relative offset of 50,80 from those absolute screen coordinates. Otherwise, the mouse will hover at absolute screen coordinates 50,80. #3 If there is a MainWindow component in the [MainWindow] section of the AppMap with valid screen coordinates then the mouse cursor will hover with a relative offset of 50,80 from those absolute screen coordinates. Otherwise, the mouse will hover at absolute screen coordinates 50,80. #4 above will contain no valid AnyWin:AnyComp coordinate data and those fields will be ignored. However, Node1 MUST exist in the Application Map [AnyComp] section to provide absolute screen coordinates.Supporting Engines:
table
- Optional:NO
The table to add the record to.appMapSubkey
- Optional:YES
(Sometimes Optional)Name of the AppMap subkey to lookup and use for the hover.hoverTime
- Optional:YES DefaultVal:2000
(Optional)Number of milliseconds to hover.public ComponentFunction hoverScreenLocation(java.lang.String[] parameters)
Hover the mouse over a specified screen location. Hover the mouse over a specified screen location. We can hover on any screen location based on stored x,y coordinates or hardcoded literal values. The Window:Component fields can be anything at all and will be ignored if they do not exist in the app map, or if the retrieved app map data does not contain coordinate data. Thus, an item or object can be referenced by name even though it is only known via coordinates. If the Window:Component AppMap lookup does NOT contain coordinate data and is ignored, then the AppMapSubKey field is REQUIRED and is expected to contain a reference or literal text containing absolute screen coordinates. If the Window:Component AppMap lookup DOES contain coordinate data, this data is treated as the absolute screen coordinates to be used. The AppMapSubKey field becomes OPTIONAL and coordinate data in the field is treated as a relative offset added to the absolute values found for the Window:Component. Any AppMapSubKey lookup is done with the Component name in the record AND Field #5. Typical Data Table records: (1) t MainWindow Component HoverScreenLocation 1000 (2) t MainWindow MainWindow HoverScreenLocation AnObject 2000 (3) t MainWindow MainWindow HoverScreenLocation 50,80 3000 (4) t AnyWin AnyComp HoverScreenLocation Node1 3000 #1 above will contain a blank as it's 5th field and 1000 as 6th field. Because the AppMapSubKey field is blank, the [MainWindow] section of the AppMap MUST have a Component item with valid absolute screen coordinate data. The mouse cursor will hover at the specified Component location for 1000 milliseconds. #2 above will contain an AnObject="Coords=50,80" entry in the [MainWindow] section of the AppMap. If there is a MainWindow component in the AppMap with valid screen coordinates then the mouse cursor will hover with a relative offset of 50,80 from those absolute screen coordinates. Otherwise, the mouse will hover at absolute screen coordinates 50,80. #3 If there is a MainWindow component in the [MainWindow] section of the AppMap with valid screen coordinates then the mouse cursor will hover with a relative offset of 50,80 from those absolute screen coordinates. Otherwise, the mouse will hover at absolute screen coordinates 50,80. #4 above will contain no valid AnyWin:AnyComp coordinate data and those fields will be ignored. However, Node1 MUST exist in the Application Map [AnyComp] section to provide absolute screen coordinates.Supporting Engines:
parameters
- Optional:NO
An array containing the following parameters:
public void hoverScreenLocation(StepTestTable table, java.lang.String[] parameters)
Hover the mouse over a specified screen location. Hover the mouse over a specified screen location. We can hover on any screen location based on stored x,y coordinates or hardcoded literal values. The Window:Component fields can be anything at all and will be ignored if they do not exist in the app map, or if the retrieved app map data does not contain coordinate data. Thus, an item or object can be referenced by name even though it is only known via coordinates. If the Window:Component AppMap lookup does NOT contain coordinate data and is ignored, then the AppMapSubKey field is REQUIRED and is expected to contain a reference or literal text containing absolute screen coordinates. If the Window:Component AppMap lookup DOES contain coordinate data, this data is treated as the absolute screen coordinates to be used. The AppMapSubKey field becomes OPTIONAL and coordinate data in the field is treated as a relative offset added to the absolute values found for the Window:Component. Any AppMapSubKey lookup is done with the Component name in the record AND Field #5. Typical Data Table records: (1) t MainWindow Component HoverScreenLocation 1000 (2) t MainWindow MainWindow HoverScreenLocation AnObject 2000 (3) t MainWindow MainWindow HoverScreenLocation 50,80 3000 (4) t AnyWin AnyComp HoverScreenLocation Node1 3000 #1 above will contain a blank as it's 5th field and 1000 as 6th field. Because the AppMapSubKey field is blank, the [MainWindow] section of the AppMap MUST have a Component item with valid absolute screen coordinate data. The mouse cursor will hover at the specified Component location for 1000 milliseconds. #2 above will contain an AnObject="Coords=50,80" entry in the [MainWindow] section of the AppMap. If there is a MainWindow component in the AppMap with valid screen coordinates then the mouse cursor will hover with a relative offset of 50,80 from those absolute screen coordinates. Otherwise, the mouse will hover at absolute screen coordinates 50,80. #3 If there is a MainWindow component in the [MainWindow] section of the AppMap with valid screen coordinates then the mouse cursor will hover with a relative offset of 50,80 from those absolute screen coordinates. Otherwise, the mouse will hover at absolute screen coordinates 50,80. #4 above will contain no valid AnyWin:AnyComp coordinate data and those fields will be ignored. However, Node1 MUST exist in the Application Map [AnyComp] section to provide absolute screen coordinates.Supporting Engines:
table
- Optional:NO
The table to add the record to.parameters
- Optional:NO
An array containing the following parameters:
public ComponentFunction inputCharacters(java.lang.String textValue)
Sends literal text to the specified component. Sends literal text to the specified component. The InputChars command does not convert or interpret any special characters like InputKeys (InputKeystrokes) does. Some engines cannot set keyboard focus to the component. These engines will require the component already have keyboard focus before calling this command.Supporting Engines:
textValue
- Optional:NO
String of keystrokes to send.public void inputCharacters(StepTestTable table, java.lang.String textValue)
Sends literal text to the specified component. Sends literal text to the specified component. The InputChars command does not convert or interpret any special characters like InputKeys (InputKeystrokes) does. Some engines cannot set keyboard focus to the component. These engines will require the component already have keyboard focus before calling this command.Supporting Engines:
table
- Optional:NO
The table to add the record to.textValue
- Optional:NO
String of keystrokes to send.public ComponentFunction inputKeys(java.lang.String textValue)
Sends keystrokes to the specified component. Sends keystrokes to the specified component. Some engines cannot set keyboard focus to the component. These engines will require the component already have keyboard focus before calling this command.Supporting Engines:
textValue
- Optional:NO
String of keystrokes to send.public void inputKeys(StepTestTable table, java.lang.String textValue)
Sends keystrokes to the specified component. Sends keystrokes to the specified component. Some engines cannot set keyboard focus to the component. These engines will require the component already have keyboard focus before calling this command.Supporting Engines:
table
- Optional:NO
The table to add the record to.textValue
- Optional:NO
String of keystrokes to send.public ComponentFunction isPropertyExist(java.lang.String propertyName, java.lang.String propertyExistVariable)
Verify if object's property exists or not.Supporting Engines:
propertyName
- Optional:NO
The case-sensitive name of the object property to verify.propertyExistVariable
- Optional:NO
The variable to store 'true' or 'false' to indicate if the property exist or not.public void isPropertyExist(StepTestTable table, java.lang.String propertyName, java.lang.String propertyExistVariable)
Verify if object's property exists or not.Supporting Engines:
table
- Optional:NO
The table to add the record to.propertyName
- Optional:NO
The case-sensitive name of the object property to verify.propertyExistVariable
- Optional:NO
The variable to store 'true' or 'false' to indicate if the property exist or not.public ComponentFunction isPropertyExist(java.lang.String[] parameters)
Verify if object's property exists or not.Supporting Engines:
parameters
- Optional:NO
An array containing the following parameters:
public void isPropertyExist(StepTestTable table, java.lang.String[] parameters)
Verify if object's property exists or not.Supporting Engines:
table
- Optional:NO
The table to add the record to.parameters
- Optional:NO
An array containing the following parameters:
public ComponentFunction locateScreenImage(java.lang.String variableName, java.lang.String whomRelativeTo)
Store the location and dimensions of a component. Store the location and dimensions of a component. The component can be SAFS IBT, RJ, Selenium object. The information is stored in a collection of variables using the variable root name provided. The following variables are set by this command: rootname=x y w h [space delimited values] rootname.x=x rootname.y=y rootname.w=w rootname.h=hSupporting Engines:
variableName
- Optional:NO
The root name of the collection of variables to receive the location and dimensions.whomRelativeTo
- Optional:YES DefaultVal:screen
This parameter decides the coordinates stored in VariableName is relative to the screen or the parent window.
'screen' means they are relative to the screen; 'parent' means they are relative to the parent window.
The parameter is curently available in RJ only.public void locateScreenImage(StepTestTable table, java.lang.String variableName, java.lang.String whomRelativeTo)
Store the location and dimensions of a component. Store the location and dimensions of a component. The component can be SAFS IBT, RJ, Selenium object. The information is stored in a collection of variables using the variable root name provided. The following variables are set by this command: rootname=x y w h [space delimited values] rootname.x=x rootname.y=y rootname.w=w rootname.h=hSupporting Engines:
table
- Optional:NO
The table to add the record to.variableName
- Optional:NO
The root name of the collection of variables to receive the location and dimensions.whomRelativeTo
- Optional:YES DefaultVal:screen
This parameter decides the coordinates stored in VariableName is relative to the screen or the parent window.
'screen' means they are relative to the screen; 'parent' means they are relative to the parent window.
The parameter is curently available in RJ only.public ComponentFunction locateScreenImage(java.lang.String[] parameters)
Store the location and dimensions of a component. Store the location and dimensions of a component. The component can be SAFS IBT, RJ, Selenium object. The information is stored in a collection of variables using the variable root name provided. The following variables are set by this command: rootname=x y w h [space delimited values] rootname.x=x rootname.y=y rootname.w=w rootname.h=hSupporting Engines:
parameters
- Optional:NO
An array containing the following parameters:
public void locateScreenImage(StepTestTable table, java.lang.String[] parameters)
Store the location and dimensions of a component. Store the location and dimensions of a component. The component can be SAFS IBT, RJ, Selenium object. The information is stored in a collection of variables using the variable root name provided. The following variables are set by this command: rootname=x y w h [space delimited values] rootname.x=x rootname.y=y rootname.w=w rootname.h=hSupporting Engines:
table
- Optional:NO
The table to add the record to.parameters
- Optional:NO
An array containing the following parameters:
public ComponentFunction saveTextFromGUI(java.lang.String outputFile, java.lang.String subArea, java.lang.String oCRId, java.lang.String langId, java.lang.String scaleRatio)
Incorporate OCR technology to detect the text on a GUI component and save the text to a text file. Two open-source OCRs are integrated into SAFS. One is TesseractOCR (TOCR) at http://code.google.com/p/tesseract-ocr; the other GOCR at http://jocr.sourceforge.net. TOCR 2.0.4 and GOCR 0.48 are the latest release. They are available in SAFS and only support English. Both two OCR owners claim to support more languages in next release. Chinese, Japanese, and Korean are going to be supported in TOCR's next release 3.00.Supporting Engines:
outputFile
- Optional:NO
The name of the text file used to store detected text.subArea
- Optional:YES
Optional app map subkey indicating partial image of the component to capture.oCRId
- Optional:YES
OCRId indicating the OCR used to recognize text.langId
- Optional:YES
Optional LangId representing the language in use for selected OCR to recognize text.scaleRatio
- Optional:YES
Optional ScaleRatio indicating the scale ratio for resizing the original image.public void saveTextFromGUI(StepTestTable table, java.lang.String outputFile, java.lang.String subArea, java.lang.String oCRId, java.lang.String langId, java.lang.String scaleRatio)
Incorporate OCR technology to detect the text on a GUI component and save the text to a text file. Two open-source OCRs are integrated into SAFS. One is TesseractOCR (TOCR) at http://code.google.com/p/tesseract-ocr; the other GOCR at http://jocr.sourceforge.net. TOCR 2.0.4 and GOCR 0.48 are the latest release. They are available in SAFS and only support English. Both two OCR owners claim to support more languages in next release. Chinese, Japanese, and Korean are going to be supported in TOCR's next release 3.00.Supporting Engines:
table
- Optional:NO
The table to add the record to.outputFile
- Optional:NO
The name of the text file used to store detected text.subArea
- Optional:YES
Optional app map subkey indicating partial image of the component to capture.oCRId
- Optional:YES
OCRId indicating the OCR used to recognize text.langId
- Optional:YES
Optional LangId representing the language in use for selected OCR to recognize text.scaleRatio
- Optional:YES
Optional ScaleRatio indicating the scale ratio for resizing the original image.public ComponentFunction saveTextFromGUI(java.lang.String[] parameters)
Incorporate OCR technology to detect the text on a GUI component and save the text to a text file. Two open-source OCRs are integrated into SAFS. One is TesseractOCR (TOCR) at http://code.google.com/p/tesseract-ocr; the other GOCR at http://jocr.sourceforge.net. TOCR 2.0.4 and GOCR 0.48 are the latest release. They are available in SAFS and only support English. Both two OCR owners claim to support more languages in next release. Chinese, Japanese, and Korean are going to be supported in TOCR's next release 3.00.Supporting Engines:
parameters
- Optional:NO
An array containing the following parameters:
public void saveTextFromGUI(StepTestTable table, java.lang.String[] parameters)
Incorporate OCR technology to detect the text on a GUI component and save the text to a text file. Two open-source OCRs are integrated into SAFS. One is TesseractOCR (TOCR) at http://code.google.com/p/tesseract-ocr; the other GOCR at http://jocr.sourceforge.net. TOCR 2.0.4 and GOCR 0.48 are the latest release. They are available in SAFS and only support English. Both two OCR owners claim to support more languages in next release. Chinese, Japanese, and Korean are going to be supported in TOCR's next release 3.00.Supporting Engines:
table
- Optional:NO
The table to add the record to.parameters
- Optional:NO
An array containing the following parameters:
public ComponentFunction sendEvent(java.lang.String event, java.lang.String pARAM_N)
Send or trigger an "event" with 0 or more arguments. For objects or technologies that can be effectively event-driven, rather than GUI-driven. The first implementation is in IBM Rational Functional Tester for Flex testing. Many Flex objects respond to events, in addition to traditional GUI interaction. Some Flex objects ONLY respond to events. This is especially true of many custom Flex delegates. The tester must know the events and arguments available for their particular object and technology. The generic nature for this command cannot generally know if a particular event or set of arguments is valid or not. Thus, the implementation may not be able issue failures resulting from invalid events, arguments, or other issues not generating recognizable failure conditions.Supporting Engines:
event
- Optional:NO
The potentially case-sensitive name of the event to send or trigger.pARAM_N
- Optional:YES
The first of 0 or more parameters needed for the event.public void sendEvent(StepTestTable table, java.lang.String event, java.lang.String pARAM_N)
Send or trigger an "event" with 0 or more arguments. For objects or technologies that can be effectively event-driven, rather than GUI-driven. The first implementation is in IBM Rational Functional Tester for Flex testing. Many Flex objects respond to events, in addition to traditional GUI interaction. Some Flex objects ONLY respond to events. This is especially true of many custom Flex delegates. The tester must know the events and arguments available for their particular object and technology. The generic nature for this command cannot generally know if a particular event or set of arguments is valid or not. Thus, the implementation may not be able issue failures resulting from invalid events, arguments, or other issues not generating recognizable failure conditions.Supporting Engines:
table
- Optional:NO
The table to add the record to.event
- Optional:NO
The potentially case-sensitive name of the event to send or trigger.pARAM_N
- Optional:YES
The first of 0 or more parameters needed for the event.public ComponentFunction sendEvent(java.lang.String[] parameters)
Send or trigger an "event" with 0 or more arguments. For objects or technologies that can be effectively event-driven, rather than GUI-driven. The first implementation is in IBM Rational Functional Tester for Flex testing. Many Flex objects respond to events, in addition to traditional GUI interaction. Some Flex objects ONLY respond to events. This is especially true of many custom Flex delegates. The tester must know the events and arguments available for their particular object and technology. The generic nature for this command cannot generally know if a particular event or set of arguments is valid or not. Thus, the implementation may not be able issue failures resulting from invalid events, arguments, or other issues not generating recognizable failure conditions.Supporting Engines:
parameters
- Optional:NO
An array containing the following parameters:
public void sendEvent(StepTestTable table, java.lang.String[] parameters)
Send or trigger an "event" with 0 or more arguments. For objects or technologies that can be effectively event-driven, rather than GUI-driven. The first implementation is in IBM Rational Functional Tester for Flex testing. Many Flex objects respond to events, in addition to traditional GUI interaction. Some Flex objects ONLY respond to events. This is especially true of many custom Flex delegates. The tester must know the events and arguments available for their particular object and technology. The generic nature for this command cannot generally know if a particular event or set of arguments is valid or not. Thus, the implementation may not be able issue failures resulting from invalid events, arguments, or other issues not generating recognizable failure conditions.Supporting Engines:
table
- Optional:NO
The table to add the record to.parameters
- Optional:NO
An array containing the following parameters:
public ComponentFunction setPropertyValue(java.lang.String objectPropertyName, java.lang.String propertyValue)
Sets a value to the property of an object. Routine to set a value to the property of an object.. The routine expects that the given object already has Context or Focus. It also expects that Global StepDriverTestInfo contains all the information it needs to perform its function. The routine will set the StepDriverTestInfo.statuscode and log any pass/fail info using the StepDriverTestInfo.fac LogFacility. RJ implementation directly modifies the object in the software under test;therefore, it should be done with extreme care. Avoid using setPropertyValue whenever possible because it allows you to modify the software under test in ways that a typical user cannot.Supporting Engines:
objectPropertyName
- Optional:NO
The name of the property of the object.propertyValue
- Optional:NO
The value to set the property to.public void setPropertyValue(StepTestTable table, java.lang.String objectPropertyName, java.lang.String propertyValue)
Sets a value to the property of an object. Routine to set a value to the property of an object.. The routine expects that the given object already has Context or Focus. It also expects that Global StepDriverTestInfo contains all the information it needs to perform its function. The routine will set the StepDriverTestInfo.statuscode and log any pass/fail info using the StepDriverTestInfo.fac LogFacility. RJ implementation directly modifies the object in the software under test;therefore, it should be done with extreme care. Avoid using setPropertyValue whenever possible because it allows you to modify the software under test in ways that a typical user cannot.Supporting Engines:
table
- Optional:NO
The table to add the record to.objectPropertyName
- Optional:NO
The name of the property of the object.propertyValue
- Optional:NO
The value to set the property to.public ComponentFunction setPropertyValue(java.lang.String[] parameters)
Sets a value to the property of an object. Routine to set a value to the property of an object.. The routine expects that the given object already has Context or Focus. It also expects that Global StepDriverTestInfo contains all the information it needs to perform its function. The routine will set the StepDriverTestInfo.statuscode and log any pass/fail info using the StepDriverTestInfo.fac LogFacility. RJ implementation directly modifies the object in the software under test;therefore, it should be done with extreme care. Avoid using setPropertyValue whenever possible because it allows you to modify the software under test in ways that a typical user cannot.Supporting Engines:
parameters
- Optional:NO
An array containing the following parameters:
public void setPropertyValue(StepTestTable table, java.lang.String[] parameters)
Sets a value to the property of an object. Routine to set a value to the property of an object.. The routine expects that the given object already has Context or Focus. It also expects that Global StepDriverTestInfo contains all the information it needs to perform its function. The routine will set the StepDriverTestInfo.statuscode and log any pass/fail info using the StepDriverTestInfo.fac LogFacility. RJ implementation directly modifies the object in the software under test;therefore, it should be done with extreme care. Avoid using setPropertyValue whenever possible because it allows you to modify the software under test in ways that a typical user cannot.Supporting Engines:
table
- Optional:NO
The table to add the record to.parameters
- Optional:NO
An array containing the following parameters:
public ComponentFunction showOnPage(java.lang.String verify)
Make the component visible on the page. Make the component visible on the page.Supporting Engines:
verify
- Optional:YES DefaultVal:False"True" to verify that the component is shown on page.public void showOnPage(StepTestTable table, java.lang.String verify)
Make the component visible on the page. Make the component visible on the page.Supporting Engines:
table
- Optional:NO
The table to add the record to.verify
- Optional:YES DefaultVal:False"True" to verify that the component is shown on page.public ComponentFunction typeChars(java.lang.String textValue)
Sends literal text keystrokes to whatever has keyboard focus. Sends literal text keystrokes to whatever has keyboard focus. The TypeChars command does not convert or interpret any special characters like InputKeys or TypeKeys do. No attempt is made to locate any specific window or component. Keystrokes are simply sent to the system.Supporting Engines:
textValue
- Optional:NO
String of keystrokes to send.public void typeChars(StepTestTable table, java.lang.String textValue)
Sends literal text keystrokes to whatever has keyboard focus. Sends literal text keystrokes to whatever has keyboard focus. The TypeChars command does not convert or interpret any special characters like InputKeys or TypeKeys do. No attempt is made to locate any specific window or component. Keystrokes are simply sent to the system.Supporting Engines:
table
- Optional:NO
The table to add the record to.textValue
- Optional:NO
String of keystrokes to send.public ComponentFunction typeEncryption(java.lang.String encryptedDataFile, java.lang.String privateKeyFile)
Sends secret-text (such as password) to whatever has keyboard focus. User needs to provide the path to the "encrypted text" and the path to the "private key".Supporting Engines:
encryptedDataFile
- Optional:NO
The full path of the file where the "encrypted data" is stored.privateKeyFile
- Optional:NO
The full path of the file where the "private key" is stored.public void typeEncryption(StepTestTable table, java.lang.String encryptedDataFile, java.lang.String privateKeyFile)
Sends secret-text (such as password) to whatever has keyboard focus. User needs to provide the path to the "encrypted text" and the path to the "private key".Supporting Engines:
table
- Optional:NO
The table to add the record to.encryptedDataFile
- Optional:NO
The full path of the file where the "encrypted data" is stored.privateKeyFile
- Optional:NO
The full path of the file where the "private key" is stored.public ComponentFunction typeEncryption(java.lang.String[] parameters)
Sends secret-text (such as password) to whatever has keyboard focus. User needs to provide the path to the "encrypted text" and the path to the "private key".Supporting Engines:
parameters
- Optional:NO
An array containing the following parameters:
public void typeEncryption(StepTestTable table, java.lang.String[] parameters)
Sends secret-text (such as password) to whatever has keyboard focus. User needs to provide the path to the "encrypted text" and the path to the "private key".Supporting Engines:
table
- Optional:NO
The table to add the record to.parameters
- Optional:NO
An array containing the following parameters:
public ComponentFunction typeKeys(java.lang.String textValue)
Sends keystrokes to whatever has keyboard focus. Sends keystrokes to whatever has keyboard focus. No attempt is made to locate any specific window or component. Keystrokes are simply sent to the system.Supporting Engines:
textValue
- Optional:NO
String of keystrokes to send.public void typeKeys(StepTestTable table, java.lang.String textValue)
Sends keystrokes to whatever has keyboard focus. Sends keystrokes to whatever has keyboard focus. No attempt is made to locate any specific window or component. Keystrokes are simply sent to the system.Supporting Engines:
table
- Optional:NO
The table to add the record to.textValue
- Optional:NO
String of keystrokes to send.public ComponentFunction verifyArrayPropertyToFile(java.lang.String propertyName, java.lang.String benchmarkFile, java.lang.String filterMode, java.lang.String filterOptions)
Verify the value of an array property with a benchmark file Typically, benchmarks are stored in the Datapool\Bench directory. In that event, only the filename.ext is needed. There is currently a limit of 32K allowed for this type of comparison. The command will produce a TEST WARNING if the user has configured an alternate DIFF tool for which we have no means to compare the diff results. If this WARNING is expected, the user should use the "TW" test record type. Note: for RobotJ,Suggest to use RFT Inspector to confirm which property should be used. There are two examples: For Java swing List and ComboBox items can be fetchedusing the '.itemText' property (Note the dot) For Html List (type is html.select) items can be fetchedusing the '.text' property (Note the dot)Supporting Engines:
propertyName
- Optional:NO
The case-sensitive name of the object array property to verify.benchmarkFile
- Optional:NO
The name of the file used as the comparison benchmark.filterMode
- Optional:YES DefaultVal:
(Future) Specify a file filter to use to process the text before comparison.filterOptions
- Optional:YES DefaultVal:
(Future) Specify filter options to use with the file filter.public void verifyArrayPropertyToFile(StepTestTable table, java.lang.String propertyName, java.lang.String benchmarkFile, java.lang.String filterMode, java.lang.String filterOptions)
Verify the value of an array property with a benchmark file Typically, benchmarks are stored in the Datapool\Bench directory. In that event, only the filename.ext is needed. There is currently a limit of 32K allowed for this type of comparison. The command will produce a TEST WARNING if the user has configured an alternate DIFF tool for which we have no means to compare the diff results. If this WARNING is expected, the user should use the "TW" test record type. Note: for RobotJ,Suggest to use RFT Inspector to confirm which property should be used. There are two examples: For Java swing List and ComboBox items can be fetchedusing the '.itemText' property (Note the dot) For Html List (type is html.select) items can be fetchedusing the '.text' property (Note the dot)Supporting Engines:
table
- Optional:NO
The table to add the record to.propertyName
- Optional:NO
The case-sensitive name of the object array property to verify.benchmarkFile
- Optional:NO
The name of the file used as the comparison benchmark.filterMode
- Optional:YES DefaultVal:
(Future) Specify a file filter to use to process the text before comparison.filterOptions
- Optional:YES DefaultVal:
(Future) Specify filter options to use with the file filter.public ComponentFunction verifyArrayPropertyToFile(java.lang.String[] parameters)
Verify the value of an array property with a benchmark file Typically, benchmarks are stored in the Datapool\Bench directory. In that event, only the filename.ext is needed. There is currently a limit of 32K allowed for this type of comparison. The command will produce a TEST WARNING if the user has configured an alternate DIFF tool for which we have no means to compare the diff results. If this WARNING is expected, the user should use the "TW" test record type. Note: for RobotJ,Suggest to use RFT Inspector to confirm which property should be used. There are two examples: For Java swing List and ComboBox items can be fetchedusing the '.itemText' property (Note the dot) For Html List (type is html.select) items can be fetchedusing the '.text' property (Note the dot)Supporting Engines:
parameters
- Optional:NO
An array containing the following parameters:
public void verifyArrayPropertyToFile(StepTestTable table, java.lang.String[] parameters)
Verify the value of an array property with a benchmark file Typically, benchmarks are stored in the Datapool\Bench directory. In that event, only the filename.ext is needed. There is currently a limit of 32K allowed for this type of comparison. The command will produce a TEST WARNING if the user has configured an alternate DIFF tool for which we have no means to compare the diff results. If this WARNING is expected, the user should use the "TW" test record type. Note: for RobotJ,Suggest to use RFT Inspector to confirm which property should be used. There are two examples: For Java swing List and ComboBox items can be fetchedusing the '.itemText' property (Note the dot) For Html List (type is html.select) items can be fetchedusing the '.text' property (Note the dot)Supporting Engines:
table
- Optional:NO
The table to add the record to.parameters
- Optional:NO
An array containing the following parameters:
public ComponentFunction verifyBinaryFileToFile(java.lang.String benchmarkFile, java.lang.String actualFile, java.lang.String filterMode, java.lang.String filterOptions)
Verify the current contents of a binary file with a benchmark file. Verify the current contents of a binary file with a benchmark file. Typically, benchmarks are stored in the Datapool\Bench directory. Typically, files to test are stored in the Datapool\Test directory. In that event, the filename.ext is needed for both files. The Window and Component objects are not validated and have no role. The Window and Component strings can be any text, but they cannot be blank. The command may produce a WARNING if a diff tool for which we have no means to verify the results is configured for use. Consequently, if these warnings are expected, the user can use the "TW" test record type to avoid issuing these warnings.Supporting Engines:
benchmarkFile
- Optional:NO
File used as the comparison benchmark.actualFile
- Optional:NO
File used as the comparison file under test.filterMode
- Optional:YES DefaultVal:
Specify a filter to use to process the file content before comparison.filterOptions
- Optional:YES DefaultVal:
Specify filter options to use with the filter.public void verifyBinaryFileToFile(StepTestTable table, java.lang.String benchmarkFile, java.lang.String actualFile, java.lang.String filterMode, java.lang.String filterOptions)
Verify the current contents of a binary file with a benchmark file. Verify the current contents of a binary file with a benchmark file. Typically, benchmarks are stored in the Datapool\Bench directory. Typically, files to test are stored in the Datapool\Test directory. In that event, the filename.ext is needed for both files. The Window and Component objects are not validated and have no role. The Window and Component strings can be any text, but they cannot be blank. The command may produce a WARNING if a diff tool for which we have no means to verify the results is configured for use. Consequently, if these warnings are expected, the user can use the "TW" test record type to avoid issuing these warnings.Supporting Engines:
table
- Optional:NO
The table to add the record to.benchmarkFile
- Optional:NO
File used as the comparison benchmark.actualFile
- Optional:NO
File used as the comparison file under test.filterMode
- Optional:YES DefaultVal:
Specify a filter to use to process the file content before comparison.filterOptions
- Optional:YES DefaultVal:
Specify filter options to use with the filter.public ComponentFunction verifyBinaryFileToFile(java.lang.String[] parameters)
Verify the current contents of a binary file with a benchmark file. Verify the current contents of a binary file with a benchmark file. Typically, benchmarks are stored in the Datapool\Bench directory. Typically, files to test are stored in the Datapool\Test directory. In that event, the filename.ext is needed for both files. The Window and Component objects are not validated and have no role. The Window and Component strings can be any text, but they cannot be blank. The command may produce a WARNING if a diff tool for which we have no means to verify the results is configured for use. Consequently, if these warnings are expected, the user can use the "TW" test record type to avoid issuing these warnings.Supporting Engines:
parameters
- Optional:NO
An array containing the following parameters:
public void verifyBinaryFileToFile(StepTestTable table, java.lang.String[] parameters)
Verify the current contents of a binary file with a benchmark file. Verify the current contents of a binary file with a benchmark file. Typically, benchmarks are stored in the Datapool\Bench directory. Typically, files to test are stored in the Datapool\Test directory. In that event, the filename.ext is needed for both files. The Window and Component objects are not validated and have no role. The Window and Component strings can be any text, but they cannot be blank. The command may produce a WARNING if a diff tool for which we have no means to verify the results is configured for use. Consequently, if these warnings are expected, the user can use the "TW" test record type to avoid issuing these warnings.Supporting Engines:
table
- Optional:NO
The table to add the record to.parameters
- Optional:NO
An array containing the following parameters:
public ComponentFunction verifyClipboardToFile(java.lang.String benchmarkFile, java.lang.String filterMode, java.lang.String filterOptions)
Verify the current contents of the Windows clipboard with a benchmark file. Verify the current contents of the Windows clipboard with a benchmark file. Typically, benchmarks are stored in the Datapool\Bench directory. In that event, only the filename.ext is needed. There is currently a limit of 32K allowed for this type of comparison. The Window and Component objects are not validated and have no role. The Window and Component strings can be any text, but they cannot be blank. The command will produce a TEST WARNING if the user has configured an alternate DIFF tool for which we have no means to compare the diff results. If this WARNING is expected, the user should use the "TW" test record type.Supporting Engines:
benchmarkFile
- Optional:NO
The name of the file used as the comparison benchmark.filterMode
- Optional:YES DefaultVal:
(Future) Specify a file filter to use to process the text before comparison.filterOptions
- Optional:YES DefaultVal:
(Future) Specify filter options to use with the file filter.public void verifyClipboardToFile(StepTestTable table, java.lang.String benchmarkFile, java.lang.String filterMode, java.lang.String filterOptions)
Verify the current contents of the Windows clipboard with a benchmark file. Verify the current contents of the Windows clipboard with a benchmark file. Typically, benchmarks are stored in the Datapool\Bench directory. In that event, only the filename.ext is needed. There is currently a limit of 32K allowed for this type of comparison. The Window and Component objects are not validated and have no role. The Window and Component strings can be any text, but they cannot be blank. The command will produce a TEST WARNING if the user has configured an alternate DIFF tool for which we have no means to compare the diff results. If this WARNING is expected, the user should use the "TW" test record type.Supporting Engines:
table
- Optional:NO
The table to add the record to.benchmarkFile
- Optional:NO
The name of the file used as the comparison benchmark.filterMode
- Optional:YES DefaultVal:
(Future) Specify a file filter to use to process the text before comparison.filterOptions
- Optional:YES DefaultVal:
(Future) Specify filter options to use with the file filter.public ComponentFunction verifyClipboardToFile(java.lang.String[] parameters)
Verify the current contents of the Windows clipboard with a benchmark file. Verify the current contents of the Windows clipboard with a benchmark file. Typically, benchmarks are stored in the Datapool\Bench directory. In that event, only the filename.ext is needed. There is currently a limit of 32K allowed for this type of comparison. The Window and Component objects are not validated and have no role. The Window and Component strings can be any text, but they cannot be blank. The command will produce a TEST WARNING if the user has configured an alternate DIFF tool for which we have no means to compare the diff results. If this WARNING is expected, the user should use the "TW" test record type.Supporting Engines:
parameters
- Optional:NO
An array containing the following parameters:
public void verifyClipboardToFile(StepTestTable table, java.lang.String[] parameters)
Verify the current contents of the Windows clipboard with a benchmark file. Verify the current contents of the Windows clipboard with a benchmark file. Typically, benchmarks are stored in the Datapool\Bench directory. In that event, only the filename.ext is needed. There is currently a limit of 32K allowed for this type of comparison. The Window and Component objects are not validated and have no role. The Window and Component strings can be any text, but they cannot be blank. The command will produce a TEST WARNING if the user has configured an alternate DIFF tool for which we have no means to compare the diff results. If this WARNING is expected, the user should use the "TW" test record type.Supporting Engines:
table
- Optional:NO
The table to add the record to.parameters
- Optional:NO
An array containing the following parameters:
public ComponentFunction verifyClipboardVP(java.lang.String vPName)
Verify the current contents of the Windows clipboard using a Robot ClipboardVP. Verify the current contents of the Windows clipboard using a Robot ClipboardVP. The benchmark VP must already exist as an asset of the currently running script. If the provided VP is NOT a reference in the AppMap then a standard VP compare will occur with the typical VP parameter value like "VP=StoredVP". However, if you wish to modify the ClipboardVP parameter values, such as specifying that the expected result = FAIL, then you must make an entry in the AppMap under the Component name to provide these modified parameters. The Window and Component objects are not validated and normally have no role. The Window and Component strings can normally be any text, but they cannot be blank. However, the Component must be a valid section in the AppMap if we wish to store modified VP parameter settings.Supporting Engines:
vPName
- Optional:NO
The name of the ClipboardVP from the currently running script.public void verifyClipboardVP(StepTestTable table, java.lang.String vPName)
Verify the current contents of the Windows clipboard using a Robot ClipboardVP. Verify the current contents of the Windows clipboard using a Robot ClipboardVP. The benchmark VP must already exist as an asset of the currently running script. If the provided VP is NOT a reference in the AppMap then a standard VP compare will occur with the typical VP parameter value like "VP=StoredVP". However, if you wish to modify the ClipboardVP parameter values, such as specifying that the expected result = FAIL, then you must make an entry in the AppMap under the Component name to provide these modified parameters. The Window and Component objects are not validated and normally have no role. The Window and Component strings can normally be any text, but they cannot be blank. However, the Component must be a valid section in the AppMap if we wish to store modified VP parameter settings.Supporting Engines:
table
- Optional:NO
The table to add the record to.vPName
- Optional:NO
The name of the ClipboardVP from the currently running script.public ComponentFunction verifyComputedStyle(java.lang.String benchFile)
Verify a component's 'computed style' against a benchmark file. Verify a component's 'computed style' against a benchmark file. If the comparison fails, a copy of the captured 'computed style' should be stored in the project's Test directory. This file, once verified, should be suitable to become a new benchmark, if needed.Supporting Engines:
benchFile
- Optional:NO
The benchmake file to compare against.public void verifyComputedStyle(StepTestTable table, java.lang.String benchFile)
Verify a component's 'computed style' against a benchmark file. Verify a component's 'computed style' against a benchmark file. If the comparison fails, a copy of the captured 'computed style' should be stored in the project's Test directory. This file, once verified, should be suitable to become a new benchmark, if needed.Supporting Engines:
table
- Optional:NO
The table to add the record to.benchFile
- Optional:NO
The benchmake file to compare against.public ComponentFunction verifyFileToFile(java.lang.String benchmarkFile, java.lang.String actualFile, java.lang.String filterMode, java.lang.String filterOptions)
Verify the current contents of a text file with a benchmark file (same as VerifyTextFileToFile). Verify the current contents of a text file with a benchmark file (same as VerifyTextFileToFile). Typically, benchmarks are stored in the Datapool\Bench directory. Typically, files to test are stored in the Datapool\Test directory. In that event, the filename.ext is needed for both files. The Window and Component objects are not validated and have no role. The Window and Component strings can be any text, but they cannot be blank. The command may produce a WARNING if a diff tool for which we have no means to verify the results is configured for use. Consequently, if these warnings are expected, the user can use the "TW" test record type to avoid issuing these warnings.Supporting Engines:
benchmarkFile
- Optional:NO
File used as the comparison benchmark.actualFile
- Optional:NO
File used as the comparison file under test.filterMode
- Optional:YES DefaultVal:
(Future) Specify a file filter to use to process the text before comparison.filterOptions
- Optional:YES DefaultVal:
(Future) Specify filter options to use with the file filter.public void verifyFileToFile(StepTestTable table, java.lang.String benchmarkFile, java.lang.String actualFile, java.lang.String filterMode, java.lang.String filterOptions)
Verify the current contents of a text file with a benchmark file (same as VerifyTextFileToFile). Verify the current contents of a text file with a benchmark file (same as VerifyTextFileToFile). Typically, benchmarks are stored in the Datapool\Bench directory. Typically, files to test are stored in the Datapool\Test directory. In that event, the filename.ext is needed for both files. The Window and Component objects are not validated and have no role. The Window and Component strings can be any text, but they cannot be blank. The command may produce a WARNING if a diff tool for which we have no means to verify the results is configured for use. Consequently, if these warnings are expected, the user can use the "TW" test record type to avoid issuing these warnings.Supporting Engines:
table
- Optional:NO
The table to add the record to.benchmarkFile
- Optional:NO
File used as the comparison benchmark.actualFile
- Optional:NO
File used as the comparison file under test.filterMode
- Optional:YES DefaultVal:
(Future) Specify a file filter to use to process the text before comparison.filterOptions
- Optional:YES DefaultVal:
(Future) Specify filter options to use with the file filter.public ComponentFunction verifyFileToFile(java.lang.String[] parameters)
Verify the current contents of a text file with a benchmark file (same as VerifyTextFileToFile). Verify the current contents of a text file with a benchmark file (same as VerifyTextFileToFile). Typically, benchmarks are stored in the Datapool\Bench directory. Typically, files to test are stored in the Datapool\Test directory. In that event, the filename.ext is needed for both files. The Window and Component objects are not validated and have no role. The Window and Component strings can be any text, but they cannot be blank. The command may produce a WARNING if a diff tool for which we have no means to verify the results is configured for use. Consequently, if these warnings are expected, the user can use the "TW" test record type to avoid issuing these warnings.Supporting Engines:
parameters
- Optional:NO
An array containing the following parameters:
public void verifyFileToFile(StepTestTable table, java.lang.String[] parameters)
Verify the current contents of a text file with a benchmark file (same as VerifyTextFileToFile). Verify the current contents of a text file with a benchmark file (same as VerifyTextFileToFile). Typically, benchmarks are stored in the Datapool\Bench directory. Typically, files to test are stored in the Datapool\Test directory. In that event, the filename.ext is needed for both files. The Window and Component objects are not validated and have no role. The Window and Component strings can be any text, but they cannot be blank. The command may produce a WARNING if a diff tool for which we have no means to verify the results is configured for use. Consequently, if these warnings are expected, the user can use the "TW" test record type to avoid issuing these warnings.Supporting Engines:
table
- Optional:NO
The table to add the record to.parameters
- Optional:NO
An array containing the following parameters:
public ComponentFunction verifyGUIImageToFile(java.lang.String benchmarkFile, java.lang.String subArea, java.lang.String percentageTolerance, java.lang.String uUIDFlag, java.lang.String filteredAreas)
Verify the screen shot of a GUI component with a benchmark image file Verify the screen shot of a GUI component with a benchmark image file. The benchmark file must reside in theSupporting Engines:\Datapool\Bench folder. Only BMP and JPG files can be used as the benchmark. If the extension of the bench file is not BMP or JPG, it is considered a BMP file. For RJ and IBT engine, other formats like TIFF (*.tif), GIF (*.gif), PNG (*.png) and PNM (*.pnm) are also supported. Optionally the user can specify part of the component to verify. The specified GUI component/part must be in the viewing range of its containing window. If portion of the component is displayed in the window, only that portion will be captured; if the component falls completely out of the viewing range of the window, the command will fail. The command makes no attemp to bring the component into view. NOTE: the command may fail to execute if the user has turned off logging to TestManager via the Robot tools setting. You may have to enable TestManager logging for the command to successfully execute. The command may produce a WARNING if a diff tool for which we have no means to verify the results is configured for use. Consequently, if these warnings are expected, the user can use the "TW" test record type to avoid issuing these warnings. This command requires that TestManager Image Comparator tool is installed on the machine. Machines having only the Robot Test Agent installed will not be able to usee this command. RobotJ (RJ) and IBT Specific Notes: 1)It requires that Java Advanced Imaging (JAI) be installed on the test machine 2)It supports to save image in format TIFF (*.tif), GIF (*.gif), PNG (*.png) and PNM (*.pnm) Apple IOS specific Notes: UIAutomation captures all screenshots as PNG images, but SAFS copies and stores them into the image format desired (JPG, BMP, etc.). However, the rootname of the desired output image name must be unique to avoid UIAutomation generating indexed image names we will not be looking for. For example, specifying MyImage.JPG and later MyImage.BMP will cause UIAutomation to capture MyImage.PNG and MyImage1.PNG. When attempting to find MyImage.PNG captured for MyImage.BMP we will retrieve MyImage.PNG which is NOT the correct image capture for MyImage.BMP.
benchmarkFile
- Optional:NO
Name of the benchmark image file.subArea
- Optional:YES
Optional app map subkey indicating partial image of the component to verify.percentageTolerance
- Optional:YES
The percentage of bits need to be matched.uUIDFlag
- Optional:YES
"UUID=False" to make Test/Actuals Filenames the same as the Benchmark.filteredAreas
- Optional:YES
"Filter=one or multiple areas" to filter the GUI image (or sub image of GUI if the parameter "SubArea" is present)
and it will also be used to filter the bench image before comparing. If there are some differences, the diff image
will be made between these 2 filtered images (not the acutal and bench image).public void verifyGUIImageToFile(StepTestTable table, java.lang.String benchmarkFile, java.lang.String subArea, java.lang.String percentageTolerance, java.lang.String uUIDFlag, java.lang.String filteredAreas)
Verify the screen shot of a GUI component with a benchmark image file Verify the screen shot of a GUI component with a benchmark image file. The benchmark file must reside in theSupporting Engines:\Datapool\Bench folder. Only BMP and JPG files can be used as the benchmark. If the extension of the bench file is not BMP or JPG, it is considered a BMP file. For RJ and IBT engine, other formats like TIFF (*.tif), GIF (*.gif), PNG (*.png) and PNM (*.pnm) are also supported. Optionally the user can specify part of the component to verify. The specified GUI component/part must be in the viewing range of its containing window. If portion of the component is displayed in the window, only that portion will be captured; if the component falls completely out of the viewing range of the window, the command will fail. The command makes no attemp to bring the component into view. NOTE: the command may fail to execute if the user has turned off logging to TestManager via the Robot tools setting. You may have to enable TestManager logging for the command to successfully execute. The command may produce a WARNING if a diff tool for which we have no means to verify the results is configured for use. Consequently, if these warnings are expected, the user can use the "TW" test record type to avoid issuing these warnings. This command requires that TestManager Image Comparator tool is installed on the machine. Machines having only the Robot Test Agent installed will not be able to usee this command. RobotJ (RJ) and IBT Specific Notes: 1)It requires that Java Advanced Imaging (JAI) be installed on the test machine 2)It supports to save image in format TIFF (*.tif), GIF (*.gif), PNG (*.png) and PNM (*.pnm) Apple IOS specific Notes: UIAutomation captures all screenshots as PNG images, but SAFS copies and stores them into the image format desired (JPG, BMP, etc.). However, the rootname of the desired output image name must be unique to avoid UIAutomation generating indexed image names we will not be looking for. For example, specifying MyImage.JPG and later MyImage.BMP will cause UIAutomation to capture MyImage.PNG and MyImage1.PNG. When attempting to find MyImage.PNG captured for MyImage.BMP we will retrieve MyImage.PNG which is NOT the correct image capture for MyImage.BMP.
table
- Optional:NO
The table to add the record to.benchmarkFile
- Optional:NO
Name of the benchmark image file.subArea
- Optional:YES
Optional app map subkey indicating partial image of the component to verify.percentageTolerance
- Optional:YES
The percentage of bits need to be matched.uUIDFlag
- Optional:YES
"UUID=False" to make Test/Actuals Filenames the same as the Benchmark.filteredAreas
- Optional:YES
"Filter=one or multiple areas" to filter the GUI image (or sub image of GUI if the parameter "SubArea" is present)
and it will also be used to filter the bench image before comparing. If there are some differences, the diff image
will be made between these 2 filtered images (not the acutal and bench image).public ComponentFunction verifyGUIImageToFile(java.lang.String[] parameters)
Verify the screen shot of a GUI component with a benchmark image file Verify the screen shot of a GUI component with a benchmark image file. The benchmark file must reside in theSupporting Engines:\Datapool\Bench folder. Only BMP and JPG files can be used as the benchmark. If the extension of the bench file is not BMP or JPG, it is considered a BMP file. For RJ and IBT engine, other formats like TIFF (*.tif), GIF (*.gif), PNG (*.png) and PNM (*.pnm) are also supported. Optionally the user can specify part of the component to verify. The specified GUI component/part must be in the viewing range of its containing window. If portion of the component is displayed in the window, only that portion will be captured; if the component falls completely out of the viewing range of the window, the command will fail. The command makes no attemp to bring the component into view. NOTE: the command may fail to execute if the user has turned off logging to TestManager via the Robot tools setting. You may have to enable TestManager logging for the command to successfully execute. The command may produce a WARNING if a diff tool for which we have no means to verify the results is configured for use. Consequently, if these warnings are expected, the user can use the "TW" test record type to avoid issuing these warnings. This command requires that TestManager Image Comparator tool is installed on the machine. Machines having only the Robot Test Agent installed will not be able to usee this command. RobotJ (RJ) and IBT Specific Notes: 1)It requires that Java Advanced Imaging (JAI) be installed on the test machine 2)It supports to save image in format TIFF (*.tif), GIF (*.gif), PNG (*.png) and PNM (*.pnm) Apple IOS specific Notes: UIAutomation captures all screenshots as PNG images, but SAFS copies and stores them into the image format desired (JPG, BMP, etc.). However, the rootname of the desired output image name must be unique to avoid UIAutomation generating indexed image names we will not be looking for. For example, specifying MyImage.JPG and later MyImage.BMP will cause UIAutomation to capture MyImage.PNG and MyImage1.PNG. When attempting to find MyImage.PNG captured for MyImage.BMP we will retrieve MyImage.PNG which is NOT the correct image capture for MyImage.BMP.
parameters
- Optional:NO
An array containing the following parameters:
public void verifyGUIImageToFile(StepTestTable table, java.lang.String[] parameters)
Verify the screen shot of a GUI component with a benchmark image file Verify the screen shot of a GUI component with a benchmark image file. The benchmark file must reside in theSupporting Engines:\Datapool\Bench folder. Only BMP and JPG files can be used as the benchmark. If the extension of the bench file is not BMP or JPG, it is considered a BMP file. For RJ and IBT engine, other formats like TIFF (*.tif), GIF (*.gif), PNG (*.png) and PNM (*.pnm) are also supported. Optionally the user can specify part of the component to verify. The specified GUI component/part must be in the viewing range of its containing window. If portion of the component is displayed in the window, only that portion will be captured; if the component falls completely out of the viewing range of the window, the command will fail. The command makes no attemp to bring the component into view. NOTE: the command may fail to execute if the user has turned off logging to TestManager via the Robot tools setting. You may have to enable TestManager logging for the command to successfully execute. The command may produce a WARNING if a diff tool for which we have no means to verify the results is configured for use. Consequently, if these warnings are expected, the user can use the "TW" test record type to avoid issuing these warnings. This command requires that TestManager Image Comparator tool is installed on the machine. Machines having only the Robot Test Agent installed will not be able to usee this command. RobotJ (RJ) and IBT Specific Notes: 1)It requires that Java Advanced Imaging (JAI) be installed on the test machine 2)It supports to save image in format TIFF (*.tif), GIF (*.gif), PNG (*.png) and PNM (*.pnm) Apple IOS specific Notes: UIAutomation captures all screenshots as PNG images, but SAFS copies and stores them into the image format desired (JPG, BMP, etc.). However, the rootname of the desired output image name must be unique to avoid UIAutomation generating indexed image names we will not be looking for. For example, specifying MyImage.JPG and later MyImage.BMP will cause UIAutomation to capture MyImage.PNG and MyImage1.PNG. When attempting to find MyImage.PNG captured for MyImage.BMP we will retrieve MyImage.PNG which is NOT the correct image capture for MyImage.BMP.
table
- Optional:NO
The table to add the record to.parameters
- Optional:NO
An array containing the following parameters:
public ComponentFunction verifyObjectDataToFile(java.lang.String benchmarkFile, java.lang.String fileEncoding, java.lang.String filterMode, java.lang.String filterOptions)
Verify the current contents of an object's data with a benchmark file. Typically, benchmarks are stored in the Datapool\Bench directory. In that event, only the filename.ext is needed. Only an object that Robot can perform an ObjectData VP on can use this command. The command will produce a TEST WARNING if the user has configured an alternate DIFF tool for which we have no means to compare the diff results. If this WARNING is expected, the user should use the "TW" test record type.Supporting Engines:
benchmarkFile
- Optional:NO
The name of the file used as the comparison benchmark.fileEncoding
- Optional:YES DefaultVal:
Specify a character encoding to be used when opening a bench file.
If it is not specified, the system default file encoding will be used.
The encoding should be a valid string supported by Java; if it is not valid,
the system default file encoding will be used instead.filterMode
- Optional:YES DefaultVal:
(Future) Specify a file filter to use to process the text before comparison.filterOptions
- Optional:YES DefaultVal:
(Future) Specify filter options to use with the file filter.public void verifyObjectDataToFile(StepTestTable table, java.lang.String benchmarkFile, java.lang.String fileEncoding, java.lang.String filterMode, java.lang.String filterOptions)
Verify the current contents of an object's data with a benchmark file. Typically, benchmarks are stored in the Datapool\Bench directory. In that event, only the filename.ext is needed. Only an object that Robot can perform an ObjectData VP on can use this command. The command will produce a TEST WARNING if the user has configured an alternate DIFF tool for which we have no means to compare the diff results. If this WARNING is expected, the user should use the "TW" test record type.Supporting Engines:
table
- Optional:NO
The table to add the record to.benchmarkFile
- Optional:NO
The name of the file used as the comparison benchmark.fileEncoding
- Optional:YES DefaultVal:
Specify a character encoding to be used when opening a bench file.
If it is not specified, the system default file encoding will be used.
The encoding should be a valid string supported by Java; if it is not valid,
the system default file encoding will be used instead.filterMode
- Optional:YES DefaultVal:
(Future) Specify a file filter to use to process the text before comparison.filterOptions
- Optional:YES DefaultVal:
(Future) Specify filter options to use with the file filter.public ComponentFunction verifyObjectDataToFile(java.lang.String[] parameters)
Verify the current contents of an object's data with a benchmark file. Typically, benchmarks are stored in the Datapool\Bench directory. In that event, only the filename.ext is needed. Only an object that Robot can perform an ObjectData VP on can use this command. The command will produce a TEST WARNING if the user has configured an alternate DIFF tool for which we have no means to compare the diff results. If this WARNING is expected, the user should use the "TW" test record type.Supporting Engines:
parameters
- Optional:NO
An array containing the following parameters:
public void verifyObjectDataToFile(StepTestTable table, java.lang.String[] parameters)
Verify the current contents of an object's data with a benchmark file. Typically, benchmarks are stored in the Datapool\Bench directory. In that event, only the filename.ext is needed. Only an object that Robot can perform an ObjectData VP on can use this command. The command will produce a TEST WARNING if the user has configured an alternate DIFF tool for which we have no means to compare the diff results. If this WARNING is expected, the user should use the "TW" test record type.Supporting Engines:
table
- Optional:NO
The table to add the record to.parameters
- Optional:NO
An array containing the following parameters:
public ComponentFunction verifyPropertiesSubsetToFile(java.lang.String benchFile, java.lang.String fileEncoding)
Compare/Verify the subset of properties of a test object with the values stored in a benchmark file. Compare/Verify the subset of properties of a test object with the values stored in a benchmark file. Only the properties stored in the benchmark are compared against the properties of the test object. The benchmark file is expected to be stored in the active "Bench" directory. If you specify a relative path, the path will be relative to the project directory. The directory for a full or relative path must already exist.Supporting Engines:
benchFile
- Optional:NO
The name of the file used to store the benchmark property data.fileEncoding
- Optional:YES DefaultVal:
Specify a character encoding to be used when loading data from the file.public void verifyPropertiesSubsetToFile(StepTestTable table, java.lang.String benchFile, java.lang.String fileEncoding)
Compare/Verify the subset of properties of a test object with the values stored in a benchmark file. Compare/Verify the subset of properties of a test object with the values stored in a benchmark file. Only the properties stored in the benchmark are compared against the properties of the test object. The benchmark file is expected to be stored in the active "Bench" directory. If you specify a relative path, the path will be relative to the project directory. The directory for a full or relative path must already exist.Supporting Engines:
table
- Optional:NO
The table to add the record to.benchFile
- Optional:NO
The name of the file used to store the benchmark property data.fileEncoding
- Optional:YES DefaultVal:
Specify a character encoding to be used when loading data from the file.public ComponentFunction verifyPropertiesSubsetToFile(java.lang.String[] parameters)
Compare/Verify the subset of properties of a test object with the values stored in a benchmark file. Compare/Verify the subset of properties of a test object with the values stored in a benchmark file. Only the properties stored in the benchmark are compared against the properties of the test object. The benchmark file is expected to be stored in the active "Bench" directory. If you specify a relative path, the path will be relative to the project directory. The directory for a full or relative path must already exist.Supporting Engines:
parameters
- Optional:NO
An array containing the following parameters:
public void verifyPropertiesSubsetToFile(StepTestTable table, java.lang.String[] parameters)
Compare/Verify the subset of properties of a test object with the values stored in a benchmark file. Compare/Verify the subset of properties of a test object with the values stored in a benchmark file. Only the properties stored in the benchmark are compared against the properties of the test object. The benchmark file is expected to be stored in the active "Bench" directory. If you specify a relative path, the path will be relative to the project directory. The directory for a full or relative path must already exist.Supporting Engines:
table
- Optional:NO
The table to add the record to.parameters
- Optional:NO
An array containing the following parameters:
public ComponentFunction verifyPropertiesToFile(java.lang.String benchFile, java.lang.String fileEncoding)
Compare/Verify ALL of the value properties of a test object with a benchmark file. Compare/Verify all of the value properties of a test object with a benchmark file. The benchmark file is expected to be stored in the active "Bench" directory. If you specify a relative path, the path will be relative to the project directory. The directory for a full or relative path must already exist.Supporting Engines:
benchFile
- Optional:NO
The name of the file used to store the benchmark property data.fileEncoding
- Optional:YES DefaultVal:
Specify a character encoding to be used when loading data from the file.public void verifyPropertiesToFile(StepTestTable table, java.lang.String benchFile, java.lang.String fileEncoding)
Compare/Verify ALL of the value properties of a test object with a benchmark file. Compare/Verify all of the value properties of a test object with a benchmark file. The benchmark file is expected to be stored in the active "Bench" directory. If you specify a relative path, the path will be relative to the project directory. The directory for a full or relative path must already exist.Supporting Engines:
table
- Optional:NO
The table to add the record to.benchFile
- Optional:NO
The name of the file used to store the benchmark property data.fileEncoding
- Optional:YES DefaultVal:
Specify a character encoding to be used when loading data from the file.public ComponentFunction verifyPropertiesToFile(java.lang.String[] parameters)
Compare/Verify ALL of the value properties of a test object with a benchmark file. Compare/Verify all of the value properties of a test object with a benchmark file. The benchmark file is expected to be stored in the active "Bench" directory. If you specify a relative path, the path will be relative to the project directory. The directory for a full or relative path must already exist.Supporting Engines:
parameters
- Optional:NO
An array containing the following parameters:
public void verifyPropertiesToFile(StepTestTable table, java.lang.String[] parameters)
Compare/Verify ALL of the value properties of a test object with a benchmark file. Compare/Verify all of the value properties of a test object with a benchmark file. The benchmark file is expected to be stored in the active "Bench" directory. If you specify a relative path, the path will be relative to the project directory. The directory for a full or relative path must already exist.Supporting Engines:
table
- Optional:NO
The table to add the record to.parameters
- Optional:NO
An array containing the following parameters:
public ComponentFunction verifyProperty(java.lang.String propertyName, java.lang.String expectedValue, java.lang.String caseInsensitive)
Verify the value of a single object propertySupporting Engines:
propertyName
- Optional:NO
The case-sensitive name of the object property to verify.expectedValue
- Optional:NO
The case-sensitive value we expect to get from the object property.caseInsensitive
- Optional:YES
Values of "CASE-INSENSITIVE", "CASEINSENSITIVE", and "FALSE" will cause the
comparison of the property value and the expected value to ignore case.public void verifyProperty(StepTestTable table, java.lang.String propertyName, java.lang.String expectedValue, java.lang.String caseInsensitive)
Verify the value of a single object propertySupporting Engines:
table
- Optional:NO
The table to add the record to.propertyName
- Optional:NO
The case-sensitive name of the object property to verify.expectedValue
- Optional:NO
The case-sensitive value we expect to get from the object property.caseInsensitive
- Optional:YES
Values of "CASE-INSENSITIVE", "CASEINSENSITIVE", and "FALSE" will cause the
comparison of the property value and the expected value to ignore case.public ComponentFunction verifyProperty(java.lang.String[] parameters)
Verify the value of a single object propertySupporting Engines:
parameters
- Optional:NO
An array containing the following parameters:
public void verifyProperty(StepTestTable table, java.lang.String[] parameters)
Verify the value of a single object propertySupporting Engines:
table
- Optional:NO
The table to add the record to.parameters
- Optional:NO
An array containing the following parameters:
public ComponentFunction verifyPropertyContains(java.lang.String propertyName, java.lang.String searchString, java.lang.String caseInsensitive)
Verify that the value of an object property contains a stringSupporting Engines:
propertyName
- Optional:NO
The case-sensitive name of the object property to verify.searchString
- Optional:NO
The case-sensitive value we expect the object property to contain.caseInsensitive
- Optional:YES
Values of "CASE-INSENSITIVE", "CASEINSENSITIVE", and "FALSE" will cause the
comparison of the property value and the expected value to ignore case.public void verifyPropertyContains(StepTestTable table, java.lang.String propertyName, java.lang.String searchString, java.lang.String caseInsensitive)
Verify that the value of an object property contains a stringSupporting Engines:
table
- Optional:NO
The table to add the record to.propertyName
- Optional:NO
The case-sensitive name of the object property to verify.searchString
- Optional:NO
The case-sensitive value we expect the object property to contain.caseInsensitive
- Optional:YES
Values of "CASE-INSENSITIVE", "CASEINSENSITIVE", and "FALSE" will cause the
comparison of the property value and the expected value to ignore case.public ComponentFunction verifyPropertyContains(java.lang.String[] parameters)
Verify that the value of an object property contains a stringSupporting Engines:
parameters
- Optional:NO
An array containing the following parameters:
public void verifyPropertyContains(StepTestTable table, java.lang.String[] parameters)
Verify that the value of an object property contains a stringSupporting Engines:
table
- Optional:NO
The table to add the record to.parameters
- Optional:NO
An array containing the following parameters:
public ComponentFunction verifyPropertyToFile(java.lang.String propertyName, java.lang.String benchmarkFile, java.lang.String fileEncoding, java.lang.String filterMode, java.lang.String filterOptions)
Verify the value of a single object property with a benchmark file Verify the value of a single object property with a benchmark file. Typically, benchmarks are stored in the Datapool\Bench directory. In that event, only the filename.ext is needed. There is currently a limit of 32K allowed for this type of comparison. The command will produce a TEST WARNING if the user has configured an alternate DIFF tool for which we have no means to compare the diff results. If this WARNING is expected, the user should use the "TW" test record type.Supporting Engines:
propertyName
- Optional:NO
The case-sensitive name of the object property to verify.benchmarkFile
- Optional:NO
The name of the file used as the comparison benchmark.fileEncoding
- Optional:YES DefaultVal:
Specify a character encoding to be used when opening a bench file.
If it is not specified, the system default file encoding will be used.
The encoding should be a valid string supported by Java; if it is not valid,
the system default file encoding will be used instead.filterMode
- Optional:YES DefaultVal:
(Future) Specify a file filter to use to process the text before comparison.filterOptions
- Optional:YES DefaultVal:
(Future) Specify filter options to use with the file filter.public void verifyPropertyToFile(StepTestTable table, java.lang.String propertyName, java.lang.String benchmarkFile, java.lang.String fileEncoding, java.lang.String filterMode, java.lang.String filterOptions)
Verify the value of a single object property with a benchmark file Verify the value of a single object property with a benchmark file. Typically, benchmarks are stored in the Datapool\Bench directory. In that event, only the filename.ext is needed. There is currently a limit of 32K allowed for this type of comparison. The command will produce a TEST WARNING if the user has configured an alternate DIFF tool for which we have no means to compare the diff results. If this WARNING is expected, the user should use the "TW" test record type.Supporting Engines:
table
- Optional:NO
The table to add the record to.propertyName
- Optional:NO
The case-sensitive name of the object property to verify.benchmarkFile
- Optional:NO
The name of the file used as the comparison benchmark.fileEncoding
- Optional:YES DefaultVal:
Specify a character encoding to be used when opening a bench file.
If it is not specified, the system default file encoding will be used.
The encoding should be a valid string supported by Java; if it is not valid,
the system default file encoding will be used instead.filterMode
- Optional:YES DefaultVal:
(Future) Specify a file filter to use to process the text before comparison.filterOptions
- Optional:YES DefaultVal:
(Future) Specify filter options to use with the file filter.public ComponentFunction verifyPropertyToFile(java.lang.String[] parameters)
Verify the value of a single object property with a benchmark file Verify the value of a single object property with a benchmark file. Typically, benchmarks are stored in the Datapool\Bench directory. In that event, only the filename.ext is needed. There is currently a limit of 32K allowed for this type of comparison. The command will produce a TEST WARNING if the user has configured an alternate DIFF tool for which we have no means to compare the diff results. If this WARNING is expected, the user should use the "TW" test record type.Supporting Engines:
parameters
- Optional:NO
An array containing the following parameters:
public void verifyPropertyToFile(StepTestTable table, java.lang.String[] parameters)
Verify the value of a single object property with a benchmark file Verify the value of a single object property with a benchmark file. Typically, benchmarks are stored in the Datapool\Bench directory. In that event, only the filename.ext is needed. There is currently a limit of 32K allowed for this type of comparison. The command will produce a TEST WARNING if the user has configured an alternate DIFF tool for which we have no means to compare the diff results. If this WARNING is expected, the user should use the "TW" test record type.Supporting Engines:
table
- Optional:NO
The table to add the record to.parameters
- Optional:NO
An array containing the following parameters:
public ComponentFunction verifyTabOrder(java.lang.String fileName)
Attempts to verify the tab order of the specified object--usually a Window. Attempts to verify the tab order of the current object--usually a Window. A file is used to store the correct tab order of the interface. The file is simply a list of component names in the order we expect to find them as we tab through the interface. Each line in the file will contain a single component name. That can be either the real valid Name given to the component by development, or the name for the component from the AppMap. The AppMap name is highly recommended to reduce maintenance of the tab order file. Blank lines or commented lines are ignored. Comment lines begin with apostrophe(') or semi-colon(;) characters. Example file: ;Tab Order Benchmark File ;For ClassicC Login Window (blank) UserIDComboBox PasswordEditBox RememberCheckBox (blank) OKButton CancelButton This file would normally be placed in the Datapool\Bench directory. The function will verify that the object order in the interface is the same object order that is in the file. This is done by checking the FOCUS Property of the current object and using the TAB key for navigation. Thus, navigation by the TAB key must be supported by the application. The routine will only check the tab order for the number of items found in the tab order benchmark file. Thus, the user can perform partial tests on different portions of the interface at different times. Just make sure that the item that currently has the focus is the first item in the tab order benchmark file when invoking this command.Supporting Engines:
fileName
- Optional:NO
Filename of TabOrder benchmark file.public void verifyTabOrder(StepTestTable table, java.lang.String fileName)
Attempts to verify the tab order of the specified object--usually a Window. Attempts to verify the tab order of the current object--usually a Window. A file is used to store the correct tab order of the interface. The file is simply a list of component names in the order we expect to find them as we tab through the interface. Each line in the file will contain a single component name. That can be either the real valid Name given to the component by development, or the name for the component from the AppMap. The AppMap name is highly recommended to reduce maintenance of the tab order file. Blank lines or commented lines are ignored. Comment lines begin with apostrophe(') or semi-colon(;) characters. Example file: ;Tab Order Benchmark File ;For ClassicC Login Window (blank) UserIDComboBox PasswordEditBox RememberCheckBox (blank) OKButton CancelButton This file would normally be placed in the Datapool\Bench directory. The function will verify that the object order in the interface is the same object order that is in the file. This is done by checking the FOCUS Property of the current object and using the TAB key for navigation. Thus, navigation by the TAB key must be supported by the application. The routine will only check the tab order for the number of items found in the tab order benchmark file. Thus, the user can perform partial tests on different portions of the interface at different times. Just make sure that the item that currently has the focus is the first item in the tab order benchmark file when invoking this command.Supporting Engines:
table
- Optional:NO
The table to add the record to.fileName
- Optional:NO
Filename of TabOrder benchmark file.public ComponentFunction verifyTextFileToFile(java.lang.String benchmarkFile, java.lang.String actualFile, java.lang.String filterMode, java.lang.String filterOptions)
Verify the current contents of a text file with a benchmark file (same as VerifyFileToFile). Verify the current contents of a text file with a benchmark file (same as VerifyFileToFile). Typically, benchmarks are stored in the Datapool\Bench directory. Typically, files to test are stored in the Datapool\Test directory. In that event, the filename.ext is needed for both files. The Window and Component objects are not validated and have no role. The Window and Component strings can be any text, but they cannot be blank. The command may produce a WARNING if a diff tool for which we have no means to verify the results is configured for use. Consequently, if these warnings are expected, the user can use the "TW" test record type to avoid issuing these warnings.Supporting Engines:
benchmarkFile
- Optional:NO
File used as the comparison benchmark.actualFile
- Optional:NO
File used as the comparison file under test.filterMode
- Optional:YES DefaultVal:
(Future) Specify a file filter to use to process the text before comparison.filterOptions
- Optional:YES DefaultVal:
(Future) Specify filter options to use with the file filter.public void verifyTextFileToFile(StepTestTable table, java.lang.String benchmarkFile, java.lang.String actualFile, java.lang.String filterMode, java.lang.String filterOptions)
Verify the current contents of a text file with a benchmark file (same as VerifyFileToFile). Verify the current contents of a text file with a benchmark file (same as VerifyFileToFile). Typically, benchmarks are stored in the Datapool\Bench directory. Typically, files to test are stored in the Datapool\Test directory. In that event, the filename.ext is needed for both files. The Window and Component objects are not validated and have no role. The Window and Component strings can be any text, but they cannot be blank. The command may produce a WARNING if a diff tool for which we have no means to verify the results is configured for use. Consequently, if these warnings are expected, the user can use the "TW" test record type to avoid issuing these warnings.Supporting Engines:
table
- Optional:NO
The table to add the record to.benchmarkFile
- Optional:NO
File used as the comparison benchmark.actualFile
- Optional:NO
File used as the comparison file under test.filterMode
- Optional:YES DefaultVal:
(Future) Specify a file filter to use to process the text before comparison.filterOptions
- Optional:YES DefaultVal:
(Future) Specify filter options to use with the file filter.public ComponentFunction verifyTextFileToFile(java.lang.String[] parameters)
Verify the current contents of a text file with a benchmark file (same as VerifyFileToFile). Verify the current contents of a text file with a benchmark file (same as VerifyFileToFile). Typically, benchmarks are stored in the Datapool\Bench directory. Typically, files to test are stored in the Datapool\Test directory. In that event, the filename.ext is needed for both files. The Window and Component objects are not validated and have no role. The Window and Component strings can be any text, but they cannot be blank. The command may produce a WARNING if a diff tool for which we have no means to verify the results is configured for use. Consequently, if these warnings are expected, the user can use the "TW" test record type to avoid issuing these warnings.Supporting Engines:
parameters
- Optional:NO
An array containing the following parameters:
public void verifyTextFileToFile(StepTestTable table, java.lang.String[] parameters)
Verify the current contents of a text file with a benchmark file (same as VerifyFileToFile). Verify the current contents of a text file with a benchmark file (same as VerifyFileToFile). Typically, benchmarks are stored in the Datapool\Bench directory. Typically, files to test are stored in the Datapool\Test directory. In that event, the filename.ext is needed for both files. The Window and Component objects are not validated and have no role. The Window and Component strings can be any text, but they cannot be blank. The command may produce a WARNING if a diff tool for which we have no means to verify the results is configured for use. Consequently, if these warnings are expected, the user can use the "TW" test record type to avoid issuing these warnings.Supporting Engines:
table
- Optional:NO
The table to add the record to.parameters
- Optional:NO
An array containing the following parameters:
public ComponentFunction verifyValueContains(java.lang.String value, java.lang.String searchString, java.lang.String suppressValue)
Verify that a string value contains a substringSupporting Engines:
value
- Optional:NO
The case-sensitive string value to verify.searchString
- Optional:NO
The case-sensitive value we expect the preceeding string to contain.suppressValue
- Optional:YES
Set to "SUPPRESSVALUE" to prevent the logging of ugly multi-line values.public void verifyValueContains(StepTestTable table, java.lang.String value, java.lang.String searchString, java.lang.String suppressValue)
Verify that a string value contains a substringSupporting Engines:
table
- Optional:NO
The table to add the record to.value
- Optional:NO
The case-sensitive string value to verify.searchString
- Optional:NO
The case-sensitive value we expect the preceeding string to contain.suppressValue
- Optional:YES
Set to "SUPPRESSVALUE" to prevent the logging of ugly multi-line values.public ComponentFunction verifyValueContains(java.lang.String[] parameters)
Verify that a string value contains a substringSupporting Engines:
parameters
- Optional:NO
An array containing the following parameters:
public void verifyValueContains(StepTestTable table, java.lang.String[] parameters)
Verify that a string value contains a substringSupporting Engines:
table
- Optional:NO
The table to add the record to.parameters
- Optional:NO
An array containing the following parameters:
public ComponentFunction verifyValueContainsIgnoreCase(java.lang.String value, java.lang.String searchString, java.lang.String suppressValue)
Verify that a string value contains a substring, ignoring case.Supporting Engines:
value
- Optional:NO
The case-insensitive string value to verify.searchString
- Optional:NO
The case-insensitive value we expect the preceeding string to contain.suppressValue
- Optional:YES
Set to "SUPPRESSVALUE" to prevent the logging of ugly multi-line values.public void verifyValueContainsIgnoreCase(StepTestTable table, java.lang.String value, java.lang.String searchString, java.lang.String suppressValue)
Verify that a string value contains a substring, ignoring case.Supporting Engines:
table
- Optional:NO
The table to add the record to.value
- Optional:NO
The case-insensitive string value to verify.searchString
- Optional:NO
The case-insensitive value we expect the preceeding string to contain.suppressValue
- Optional:YES
Set to "SUPPRESSVALUE" to prevent the logging of ugly multi-line values.public ComponentFunction verifyValueContainsIgnoreCase(java.lang.String[] parameters)
Verify that a string value contains a substring, ignoring case.Supporting Engines:
parameters
- Optional:NO
An array containing the following parameters:
public void verifyValueContainsIgnoreCase(StepTestTable table, java.lang.String[] parameters)
Verify that a string value contains a substring, ignoring case.Supporting Engines:
table
- Optional:NO
The table to add the record to.parameters
- Optional:NO
An array containing the following parameters:
public ComponentFunction verifyValueDoesNotContain(java.lang.String value, java.lang.String searchString, java.lang.String suppressValue)
Verify that a string value does NOT contain a substringSupporting Engines:
value
- Optional:NO
The case-sensitive string value to verify.searchString
- Optional:NO
The case-sensitive value we do NOT want to find in the provided Value.suppressValue
- Optional:YES
Set to "SUPPRESSVALUE" to prevent the logging of ugly multi-line values.public void verifyValueDoesNotContain(StepTestTable table, java.lang.String value, java.lang.String searchString, java.lang.String suppressValue)
Verify that a string value does NOT contain a substringSupporting Engines:
table
- Optional:NO
The table to add the record to.value
- Optional:NO
The case-sensitive string value to verify.searchString
- Optional:NO
The case-sensitive value we do NOT want to find in the provided Value.suppressValue
- Optional:YES
Set to "SUPPRESSVALUE" to prevent the logging of ugly multi-line values.public ComponentFunction verifyValueDoesNotContain(java.lang.String[] parameters)
Verify that a string value does NOT contain a substringSupporting Engines:
parameters
- Optional:NO
An array containing the following parameters:
public void verifyValueDoesNotContain(StepTestTable table, java.lang.String[] parameters)
Verify that a string value does NOT contain a substringSupporting Engines:
table
- Optional:NO
The table to add the record to.parameters
- Optional:NO
An array containing the following parameters:
public ComponentFunction verifyValues(java.lang.String value1, java.lang.String value2, java.lang.String suppressValue)
Verify that two string values are identical. Note: RobotJ also uses identical keyword 'VerifyValueEquals'Supporting Engines:
value1
- Optional:NO
A case-sensitive string value to compare.value2
- Optional:NO
A case-sensitive value to compare.suppressValue
- Optional:YES
Set to "SUPPRESSVALUE" to prevent the logging of ugly multi-line values.public void verifyValues(StepTestTable table, java.lang.String value1, java.lang.String value2, java.lang.String suppressValue)
Verify that two string values are identical. Note: RobotJ also uses identical keyword 'VerifyValueEquals'Supporting Engines:
table
- Optional:NO
The table to add the record to.value1
- Optional:NO
A case-sensitive string value to compare.value2
- Optional:NO
A case-sensitive value to compare.suppressValue
- Optional:YES
Set to "SUPPRESSVALUE" to prevent the logging of ugly multi-line values.public ComponentFunction verifyValues(java.lang.String[] parameters)
Verify that two string values are identical. Note: RobotJ also uses identical keyword 'VerifyValueEquals'Supporting Engines:
parameters
- Optional:NO
An array containing the following parameters:
public void verifyValues(StepTestTable table, java.lang.String[] parameters)
Verify that two string values are identical. Note: RobotJ also uses identical keyword 'VerifyValueEquals'Supporting Engines:
table
- Optional:NO
The table to add the record to.parameters
- Optional:NO
An array containing the following parameters:
public ComponentFunction verifyValuesIgnoreCase(java.lang.String value1, java.lang.String value2, java.lang.String suppressValue)
Verify that two string values are identical, ignoring case.Supporting Engines:
value1
- Optional:NO
A case-insensitive string value to compare.value2
- Optional:NO
A case-insensitive value to compare.suppressValue
- Optional:YES
Set to "SUPPRESSVALUE" to prevent the logging of ugly multi-line values.public void verifyValuesIgnoreCase(StepTestTable table, java.lang.String value1, java.lang.String value2, java.lang.String suppressValue)
Verify that two string values are identical, ignoring case.Supporting Engines:
table
- Optional:NO
The table to add the record to.value1
- Optional:NO
A case-insensitive string value to compare.value2
- Optional:NO
A case-insensitive value to compare.suppressValue
- Optional:YES
Set to "SUPPRESSVALUE" to prevent the logging of ugly multi-line values.public ComponentFunction verifyValuesIgnoreCase(java.lang.String[] parameters)
Verify that two string values are identical, ignoring case.Supporting Engines:
parameters
- Optional:NO
An array containing the following parameters:
public void verifyValuesIgnoreCase(StepTestTable table, java.lang.String[] parameters)
Verify that two string values are identical, ignoring case.Supporting Engines:
table
- Optional:NO
The table to add the record to.parameters
- Optional:NO
An array containing the following parameters:
public ComponentFunction verifyValuesNotEqual(java.lang.String value1, java.lang.String value2, java.lang.String suppressValue)
Verify that two string values are NOT identical.Supporting Engines:
value1
- Optional:NO
A case-sensitive string value to compare.value2
- Optional:NO
A case-sensitive value to compare.suppressValue
- Optional:YES
Set to "SUPPRESSVALUE" to prevent the logging of ugly multi-line values.public void verifyValuesNotEqual(StepTestTable table, java.lang.String value1, java.lang.String value2, java.lang.String suppressValue)
Verify that two string values are NOT identical.Supporting Engines:
table
- Optional:NO
The table to add the record to.value1
- Optional:NO
A case-sensitive string value to compare.value2
- Optional:NO
A case-sensitive value to compare.suppressValue
- Optional:YES
Set to "SUPPRESSVALUE" to prevent the logging of ugly multi-line values.public ComponentFunction verifyValuesNotEqual(java.lang.String[] parameters)
Verify that two string values are NOT identical.Supporting Engines:
parameters
- Optional:NO
An array containing the following parameters:
public void verifyValuesNotEqual(StepTestTable table, java.lang.String[] parameters)
Verify that two string values are NOT identical.Supporting Engines:
table
- Optional:NO
The table to add the record to.parameters
- Optional:NO
An array containing the following parameters:
Copyright © SAS Institute. All Rights Reserved.