Modifier and Type | Class and Description |
---|---|
class |
SAFSNullPointerException
A simple extension stub for Application Object problems
|
class |
SAFSObjectNotFoundException
A simple extension stub for Application Object problems
|
class |
SAFSObjectRecognitionException
A simple extension stub for Application Object problems
|
class |
SAFSParamException |
class |
SAFSPersistableNotEnableException |
class |
SAFSRegExException
A simple extension stub for Application Object problems
|
class |
SAFSSTAFRegistrationException
A simple extension stub for STAF Registration problems
|
class |
SAFSVerificationException
A simple extension stub for verification problems
|
Modifier and Type | Method and Description |
---|---|
protected void |
ComponentFunction._close()
This implementation is NOT guarantee to work, if it works, it will happen on current focused window.
Subclass should give its own implementation |
protected void |
ComponentFunction._maximize()
Subclass should give its own implementation, if it is difficult then call this instead, but
this implementation is not guarantee to work |
protected void |
ComponentFunction._minimize()
Subclass should give its own implementation, if it is difficult then call this instead, but
this implementation is not guarantee to work |
protected void |
ComponentFunction._restore()
Subclass should give its own implementation, if it is difficult then call this instead, but
this implementation is not guarantee to work |
protected void |
ComponentFunction._setPosition(java.awt.Point position)
Subclass should give its own implementation
|
protected void |
ComponentFunction._setSize(java.awt.Dimension size)
Subclass should give its own implementation
|
protected void |
ComponentFunction.action_ComputedStyle(boolean verification) |
protected void |
ComponentFunction.action_getGuiImage()
Processes a Component Function Test Record to capture a screen GUI image to a file.
|
protected void |
ComponentFunction.action_GetSaveTextFromGUI()
Use OCR to detect the text from captured screen, executing SaveTextFromGUI or SaveTextFromGUI.
|
protected void |
ComponentFunction.action_showOnPage()
Purpose: Show the component on the page as much as possible.
|
protected void |
ComponentFunction.action_verifyGuiImageToFile()
Processes a Component Function Test Record to verify a screen GUI image to a file.
|
protected void |
ComponentFunction.assignPropertyVariable() |
protected java.util.Collection<java.lang.String> |
ComponentFunction.captureObjectData() |
protected void |
ComponentFunction.captureObjectDataToFile() |
protected void |
ComponentFunction.capturePropertiesToFile() |
protected void |
ComponentFunction.capturePropertyToFile() |
protected boolean |
DriverCommand.checkGUIExistence(boolean expectedExist,
java.lang.String mapNam,
java.lang.String window,
java.lang.String component,
int timeoutInSeconds)
Check the existence of the window/component and return the satisfaction of the existence.
The satisfaction depends on component's existence and our expectation of its existence. Subclass only need to implement this method to get the following keywords work. |
boolean |
DCDriverStringCommands.checkParams(int expected)
Purpose: check if params are < expected, if so then unsuccessful, ok otherwise. |
protected void |
ComponentFunction.clearAppMapCache() |
protected void |
ComponentFunction.clearCache() |
protected void |
ComponentFunction.close()
Close the current window.
|
static void |
ComponentFunction.Window.close()
Close the current window
|
protected void |
ComponentFunction.closeWindow() |
void |
DCDriverTimerCommands.cmdResetTimer()
Purpose:Handles command ResetTimer. Resets a stopped timer of the
given unique name.
|
void |
DCDriverTimerCommands.cmdStartTimer()
Purpose:Handles command StartTimer. Starts a timer using the
given unique name.
|
void |
DCDriverTimerCommands.cmdStopTimer()
Purpose:Handles command StopTimer.
|
void |
DCDriverTimerCommands.cmdStoreTimer()
Purpose: Handles StoreTimerInfo command by storing the following
standard timer information: .elapsed .startTime .endTime .failures under
the given variable name.
|
void |
DCDriverTimerCommands.cmdStoreTimerFile()
Purpose:Handles the command StoreTimerInfoFile.
|
void |
DCDriverTimerCommands.cmdVerifyTimer(int actionType)
Purpose:Handles commands VerifyTimer, VerifyElapsedTimeIsLess,
VerifyElapsedTimeIsMore, VerifyElapsedTimeInRange.
|
static void |
Utils.compile(java.lang.String classnames)
Compile the java/groovy source code.
NOTE: 1. |
static void |
Utils.compile(java.lang.String classnames,
java.lang.String sourceDIR,
java.lang.String outDIR,
java.lang.String useClasspath)
Compile java and/or groovy source code.
|
protected void |
ComponentFunction.componentClick() |
static void |
DatabaseCommandsHelper.copyDBTableColumnToFile(Processor pr)
Purpose: copyDBTableColumnToFile |
static void |
DatabaseCommandsHelper.copyDBTableToFile(Processor pr)
Purpose: copyDBTableToFile |
protected java.io.File |
Processor.deduceBenchFile(java.lang.String filename)
Deduce the absolute full path bench-relative file.
|
protected java.io.File |
Processor.deduceDiffFile(java.lang.String filename)
Deduce the absolute full path Diff-relative file.
|
protected java.awt.Rectangle |
ComponentFunction.deduceImageRect(java.lang.String subareaMapKey) |
protected java.io.File |
Processor.deduceProjectFile(java.lang.String filename)
Deduce the absolute full path to a project-relative file.
|
protected java.io.File |
Processor.deduceTestFile(java.lang.String filename)
Deduce the absolute full path test-relative file.
|
static void |
DatabaseCommandsHelper.deleteDBTableRecords(Processor pr)
Purpose: deleteDBTableRecords Deletes records in a database table 0. |
protected void |
ComponentFunction.dragTo() |
protected void |
DCDriverTimerCommands.evaluateTimer(int diff,
java.lang.String uid,
java.lang.String verifyValue,
java.lang.String verifyValue2,
int actionType)
Issue pass or fail status and log messages for diff and verify values compared
agains VERIFY_LESS_THAN, VERIFY_GREATER_THAN,and VERIFY_RANGE.
|
static void |
DatabaseCommandsHelper.execSQLCommit(Processor pr)
Purpose: execSqlCommit Commits the pending queries on the database. |
static void |
DatabaseCommandsHelper.execSQLQuery(Processor pr)
Purpose: execSQLQuery Executes the query provided in a queryStr on the database table. |
protected void |
ComponentFunction.executeScript() |
protected boolean |
ComponentFunction.exist()
To test if the component exists or not.
The sub class may test the component's visibility also. |
abstract java.util.List |
DDGUIUtilities.extractListItems(java.lang.Object obj,
java.lang.String countProp,
java.lang.String itemProp)
Extract items from a List or Array type of object property.
|
java.util.List |
DCGUIUtilities.extractListItems(java.lang.Object obj,
java.lang.String countProp,
java.lang.String itemProp) |
abstract Tree |
DDGUIUtilities.extractMenuBarItems(java.lang.Object obj)
Extract a menu hierarchy from a MenuBar pseudo-object reference.
|
Tree |
DCGUIUtilities.extractMenuBarItems(java.lang.Object obj) |
abstract Tree |
DDGUIUtilities.extractMenuItems(java.lang.Object obj)
Extract a menu hierarchy from a object.
|
Tree |
DCGUIUtilities.extractMenuItems(java.lang.Object obj) |
java.util.Collection |
STAFHelper.getAppMapNames()
Purpose: get collection of appmap names Assumptions: output of this command: staf local safsmaps list looks like: safsmaps:LIST:2 c:\cycletest\datapool\dealapp.map:C:\CycleTest\Datapool\DealApp.MAP deal:C:\CycleTest\Datapool\DealApp.map |
static java.lang.Object[] |
Utils.getArray(java.lang.Object array) |
java.lang.String |
TestRecordData.getCompClass()
Purpose: accessor method(s) |
java.lang.String |
TestRecordHelper.getCompGuiId()
Note: Before calling this method, make sure the property windowName, compName , mapName and stafHelper are correctly set. |
java.lang.String |
TestRecordData.getCompGuiId()
Purpose: accessor method(s) |
java.lang.String |
TestRecordData.getCompModule()
Purpose: accessor method(s) |
java.lang.String |
TestRecordData.getCompType()
Purpose: accessor method(s) |
static void |
DatabaseCommandsHelper.getDBTableColumnCount(Processor pr)
Purpose: getDBTableColumnCount Executes 'select * from table' and returns the total column count. |
static void |
DatabaseCommandsHelper.getDBTableRowCount(Processor pr)
Purpose: getDBTableRowCount Executes 'select * from table' and returns the total row count. |
static void |
DatabaseCommandsHelper.getDBValue(Processor pr)
Purpose: getDBValue getAlternateParams: 0. |
java.lang.Object |
DefaultDDGUtils.getGuiObject(java.lang.Object script,
java.lang.String windowName,
java.lang.String compName,
java.lang.String appMapName) |
java.lang.Object |
DDGUtilsInterface.getGuiObject(java.lang.Object script,
java.lang.String windowName,
java.lang.String compName,
java.lang.String appMapName) |
java.lang.Object |
DefaultDDGUtils.getGuiObject(java.lang.Object script,
java.lang.String windowName,
java.lang.String compName,
java.lang.String appMapName,
java.lang.String appMapFilename) |
java.lang.Object |
DDGUtilsInterface.getGuiObject(java.lang.Object script,
java.lang.String windowName,
java.lang.String compName,
java.lang.String appMapName,
java.lang.String appMapFilename) |
java.lang.String |
DefaultDDGUtils.getGuiType(java.lang.Object script,
java.lang.String windowName,
java.lang.String compName,
java.lang.String appMapName) |
java.lang.String |
DDGUtilsInterface.getGuiType(java.lang.Object script,
java.lang.String windowName,
java.lang.String compName,
java.lang.String appMapName) |
java.lang.String |
DefaultDDGUtils.getGuiType(java.lang.Object script,
java.lang.String windowName,
java.lang.String compName,
java.lang.String appMapName,
java.lang.String appMapFilename) |
java.lang.String |
DDGUtilsInterface.getGuiType(java.lang.Object script,
java.lang.String windowName,
java.lang.String compName,
java.lang.String appMapName,
java.lang.String appMapFilename) |
protected void |
ComponentFunction.getHelpers()
Simply calls getHelpersWorker.
|
protected void |
ComponentFunction.getHelpersWorker()
set instance variables from the current testRecordData:
actionwindowNamecompNamemapnameutils
Subclasses can override this for any additional setup beyond getHelpersWorker.
|
int |
DCDriverStringCommands.getInt(java.util.Iterator iterator)
Purpose: get iterator.next() as a number, if unsuccessful, then sets statusCode to GENERAL_SCRIPT_FAILURE and logs warning |
abstract java.lang.String |
DDGUIUtilities.getListItem(java.lang.Object obj,
int i,
java.lang.String itemProp)
Get a single list item from a List or Array type of object property.
|
java.lang.String |
DCGUIUtilities.getListItem(java.lang.Object obj,
int i,
java.lang.String itemProp) |
java.lang.String |
STAFHelper.getLogName() |
java.lang.String |
STAFHelper.getNextHookTestEvent(java.lang.String process_name,
java.lang.String trd_name)
Perform the complete engine-side protocol for processing a test record
dispatched from a driver.
|
java.lang.String |
STAFHelper.getNextTestEvent()
Deprecated.
This is specific to IBM Rational Functional Tester
|
protected java.util.Map<java.lang.String,java.lang.Object> |
ComponentFunction.getProperties() |
protected java.lang.String |
ComponentFunction.getProperty(java.lang.String propertyName)
Get component's property string value
|
protected java.util.Collection<java.lang.String> |
ComponentFunction.getPropertyCollection(java.util.List<java.lang.String> propertyList)
Get the value of property, and return them as a Collection.
If the property-list contains only ONE property, the collection will contain only its value. If the property-list contains multiple properties, the collection will contain a set of string like "property:value". The assignment separator will actually be the current value of the testRecordData.separator. |
protected java.util.Collection<java.lang.String> |
ComponentFunction.getPropertyCollection(java.lang.String property)
Get the value of a property, and return it as a Collection.
|
protected java.lang.Object |
ComponentFunction.getPropertyObject(java.lang.String propertyName) |
java.lang.String |
STAFHelper.getQueueMessage(java.lang.String name,
java.lang.Integer waitTime)
Purpose: get a queue message using STAF |
protected java.awt.image.BufferedImage |
ComponentFunction.getRectangleImage(java.awt.Rectangle imageRect)
Get BufferedImage within a rectangle.
The rectangle may be absolute on screen, Or it may be relative to a browser or something. It depends on what is returned by ComponentFunction.getComponentRectangle() .This method assume the rectangle is absolute on screen, so get the image on screen within the rectangle. Sub class may override this method to get its own image. |
java.util.Collection |
STAFHelper.getRunningEngineNames()
Use the embedded
STAFHelper.stafCompatible to get all running engine names. |
void |
STAFHelper.getSAFSTestRecordData(java.lang.String trd_root,
TestRecordData trd)
Get the SAFSVARS Test Record Data into the given trd_root.
|
java.util.List<java.lang.String> |
STAFHelper.getServiceEvents(java.lang.String servicename)
Use the embedded
STAFHelper.stafCompatible to get all events related to service name. |
java.lang.String |
STAFHelper.getSTAFVariable(java.lang.String var)
Purpose: get the STAF SYSTEM variable value. |
protected java.lang.String |
ComponentFunction.getStringValue(java.lang.Object value)
Get the string value from the Object value.
If the value is a collection, it will be converted to a string separated by 'New Line'. |
java.lang.String |
STAFHelper.getVariable(java.lang.String var)
Purpose: getVariable: get a variable from safsvars service |
java.lang.String |
Processor.getVariable(java.lang.String var) |
protected boolean |
TestStepProcessor.getWinAndCompGUIObjects()
Called internally or overridden by subclasses to find the windowObject and compObjects.
|
java.lang.String |
TestRecordHelper.getWindowGuiId()
Note: Before calling this method, make sure the property windowName, compName , mapName and stafHelper are correctly set. |
java.lang.String |
TestRecordData.getWindowGuiId()
Purpose: accessor method(s) |
java.lang.String |
TestRecordData.getWindowName()
Purpose: accessor method(s) |
protected void |
ComponentFunction.guiDoesExist(boolean does) |
protected void |
ComponentFunction.hoverMouse()
Purpose: Response for HOVERMOUSE; called by componentProcess() to hover mouse.
|
protected void |
ComponentFunction.hoverScreenLocation() |
protected void |
DriverCommand.init()
Initialize test record, utilities.
|
protected void |
ComponentFunction.inputKeystrokes() |
protected boolean |
DriverCommandProcessor.instantiateAndProcessDriverCommand(java.util.Collection params)
Purpose: instantiateAndProcessDriverCommand Side Effects: State Read: Processor.testRecordData
Assumptions: If it cannot process a local (org.safs) driver command, then assumes that the driver command is DCDriverCommand with the path taken from testRecordData.getCompInstancePath() |
protected boolean |
TestStepProcessor.instantiateComponentFunction(java.util.Collection params)
Purpose: This is where we call the component functions declared at the top in the ComponentFunctions DECLARATION section. |
protected java.util.Collection |
TestStepProcessor.interpretFields()
Purpose: Interprets the fields of the test record and puts the appropriate values into the fields of testRecordData. |
protected java.util.Collection |
EngineCommandProcessor.interpretFields()
Interprets the fields of the test record and puts the appropriate
values into the fields of testRecordData.
|
protected java.util.Collection |
DriverCommandProcessor.interpretFields()
Purpose: Interprets the fields of the driver command record and puts the appropriate values into the fields of testRecordData. |
protected java.util.Collection |
DriverCommand.interpretFields()
Purpose: Interprets the fields of the driver command record and puts the appropriate values into the fields of testRecordData. |
boolean |
TestRecordHelper.isMixedRsUsed()
Purpose: To test if the RS is specify in mixed mode. |
boolean |
STAFHelper.isOnlyShutdownPosted(java.lang.String servicename)
This method will check only the
STAFHelper.SAFS_EVENT_SHUTDOWN is "posted"and other events in STAFHelper.eventsToReset are "reset". |
protected void |
ComponentFunction.isPropertyExist() |
void |
STAFHelper.logMessage(java.lang.String facname,
java.lang.String message)
Send a generic message to a running SAFSLOGS log.
If the optional facname is not provided, we will route the message to the first (or only) log reported as running in SAFSLOGS. |
static boolean |
StringUtils.matchRegex(java.lang.String expression,
java.lang.String value)
Purpose: match a regular expression to a value. |
protected void |
ComponentFunction.maximize()
Maximize the current window.
|
static void |
ComponentFunction.Window.maximize()
Maximize the current window
|
protected void |
ComponentFunction.minimize()
Minimize the current window.
|
static void |
ComponentFunction.Window.minimize()
Minimize the current window
|
protected void |
Processor.paramsFailedMsg()
Purpose: log a FAILED_MESSAGE about the wrong number of parameters; this version is used by DriverCommands |
protected void |
Processor.paramsFailedMsg(java.lang.String windowName,
java.lang.String compName)
Purpose: log a FAILED_MESSAGE about the wrong number of parameters |
static java.lang.Object |
Utils.parseValue(java.lang.Class<?> expectedType,
java.lang.Object value)
Convert the parameter 'value' to an appropriate Object according to the expectedType.
|
protected void |
ComponentFunction.performDrag() |
protected boolean |
ComponentFunction.performHoverMouse(java.awt.Point point,
int milliseconds)
Purpose: perform hovering mouse at 'point' for 'milliseconds' period on a Component.
Subclass may need to give a specific implementation by tools (RJ, Selenium etc.) API. |
protected void |
ComponentFunction.performScorll() |
void |
TestRecordHelper.populateDataFromVar()
Purpose: populate data from the VAR pool using STAF, basically grabs the following fields in a TestRecordData instance from the VAR of STAF: - inputRecord - filename - lineNumber - separator - testLevel - appMapName - fac - statusCode - statusInfo Side Effects: State Read: Assumptions: none |
void |
STAFHelper.postEvent(java.lang.String event)
Purpose: post a single staf event (sem service) |
int |
STAFHelper.postNextHookTestEvent(java.lang.String process_name,
java.lang.String trd_root,
TestRecordData trd)
Perform the complete driver-side protocol for dispatching an engine to process
a test record.
|
void |
STAFHelper.pulseEvent(java.lang.String event)
Purpose: pulse a single staf event (sem service) |
void |
STAFHelper.releaseSTAFMutex(java.lang.String mutex)
Function STAFreleaseMutex(String mutex)
|
void |
STAFHelper.resetEvent(java.lang.String event)
Purpose: reset a single staf event (sem service) |
protected void |
STAFHelper.resetEvents()
Deprecated.
This is specific to IBM Rational Functional Tester
|
void |
STAFHelper.resetHookEvents(java.lang.String process_name)
Reset staf hook events (ready, dispatch, running, results, done, shutdown) for the given process.
|
protected void |
ComponentFunction.restore()
Restore the current window.
|
static void |
ComponentFunction.Window.restore()
Restore the current window.
|
protected void |
ComponentFunction.selectMenuItem(boolean fuzzy) |
void |
TestRecordHelper.sendbackResponse()
Purpose: sendback response, the statusCode is sent back in the VAR: getInstanceName() + "statuscode" Assumptions: none |
protected void |
ComponentFunction.sendEvent() |
protected boolean |
TestStepProcessor.setActiveWindow()
Note: This method will make the top window to become the active window. |
void |
STAFHelper.setHookTestResults(java.lang.String process_name)
setHookTestResults:
makes call to 'setHookTestResultsWTimeout(process_name, 12);'
|
void |
STAFHelper.setHookTestResultsWTimeout(java.lang.String process_name,
long timeoutseconds)
setHookTestResultsWTimeout:
makes call to 'postEvent(process_name + Results);'
This routines will drive the RESULTS event true.
|
static void |
DatabaseCommandsHelper.setJdbcDriver(Processor pr)
Purpose: setJdbcDriver |
protected void |
ComponentFunction.setPosition()
perform SetPosition to move Main Window, resize it and set its status.
|
protected void |
ComponentFunction.setPropertyValue() |
void |
STAFHelper.setSAFSTestRecordData(java.lang.String trd_root,
TestRecordData trd)
Set the SAFSVARS Test Record Data for the given trd_root.
|
boolean |
STAFHelper.setSTAFVariable(java.lang.String var,
java.lang.String val)
Purpose: set the STAF SYSTEM variable value. |
void |
STAFHelper.setTestResults()
Deprecated.
IBM Rational Functional Tester specific
|
boolean |
DCDriverStringCommands.setVar(java.lang.String varName,
java.lang.String val)
Purpose: calls setVariable from a super class, if unsuccessful then sets statusCode to GENERAL_SCRIPT_FAILURE and logs warning |
boolean |
STAFHelper.setVariable(java.lang.String var,
java.lang.String val)
Purpose: setup a variable with it's value using STAF safsvars service. |
boolean |
Processor.setVariable(java.lang.String var,
java.lang.String val) |
protected boolean |
ComponentFunction.showComponentAsMuchPossible(boolean verify)
If the component is not fully shown on the screen, try to make it visible on screen as much
as possible.
|
com.ibm.staf.STAFResult |
STAFHelper.submit2WithVar(java.lang.String sysName,
java.lang.String srvName,
java.lang.String cmdName,
java.lang.String varName)
Purpose: submit to STAF and record varName.rc and varname.result into variable storage (SAFSVARS). |
boolean |
TestRecordHelper.targetIsComponent() |
boolean |
TestRecordHelper.targetIsWindow() |
void |
STAFHelper.unRegister()
unregister, passed along to 'handle'
|
protected void |
ComponentFunction.verifyClipboardToFile() |
static void |
DatabaseCommandsHelper.verifyDatabaseNullValue(Processor pr)
Purpose: verifyDatabaseNullValue Verifies that the value of a field in a database table is NULL. |
static void |
DatabaseCommandsHelper.verifyDatabaseValue(Processor pr)
Purpose: verifyDatabaseValue: Verifies the case-sensitive value of a field in a database table. |
static void |
DatabaseCommandsHelper.verifyDBNullValue(Processor pr)
Purpose: verifyDBNullValue: same as verifyDatabaseNullValue |
static void |
DatabaseCommandsHelper.verifyDBValue(Processor pr)
Purpose: verifyDBValue: same as verifyDatabaseValue |
protected void |
ComponentFunction.verifyFileToFile(boolean isTextFile) |
protected void |
ComponentFunction.verifyMenuItem(boolean fuzzy) |
protected void |
ComponentFunction.verifyObjectDataToFile() |
protected void |
ComponentFunction.verifyPropertiesToFile()
Purpose: verifyPropertiesToFile |
protected void |
ComponentFunction.verifyProperty()
Purpose: verifyProperty |
protected void |
ComponentFunction.verifyPropertyContains() |
protected void |
ComponentFunction.verifyPropertyToFile(boolean array)
Purpose: verifyArrayPropertyToFile/verifyPropertyToFile/verifyPropertiesToFile |
protected void |
ComponentFunction.verifyValueContains() |
protected void |
ComponentFunction.verifyValues() |
void |
STAFHelper.waitEvent(java.lang.String event,
long delaySeconds)
staf event wait indefinitely or for a set number of seconds.
|
boolean |
STAFHelper.waitEventMillis(java.lang.String event,
int delayMillis)
staf event wait for n milliseconds.
|
boolean |
STAFHelper.waitEventWaiter(java.lang.String event,
long delaySeconds)
staf event wait indefinitely or for a set number of seconds for an event waiter.
|
protected void |
ComponentFunction.waitForGUI()
Waits for the object to be present on the screen, waits up to the timeout defined in
the parameters or a default of 15 seconds.
|
protected int |
TestStepProcessor.waitForObject(boolean isWindow)
Wait for the window/component occur.
|
protected int |
ComponentFunction.waitForObject(java.lang.String mapname,
java.lang.String windowName,
java.lang.String compName,
int secii) |
abstract int |
DDGUIUtilities.waitForObject(java.lang.String appMapName,
java.lang.String windowName,
java.lang.String compName,
long secTimeout)
Wait up to a maximum timeout value for the specified component to "exist".
|
protected boolean |
TestStepProcessor.waitForObjectAndCheck(boolean isWindow)
Wait for the window/component to occur, and check if window/component can be found or not.
If the window/component can not be found: if there are more engines available then log warning and set status-code to "NotExecuted". if the return-code of waitForObject() is 'SCRIPT_NOT_EXECUTED' then set status-code to "NotExecuted" so that more engine will be tried. otherwise log error and set status-code to "Failure". |
void |
STAFHelper.waitSTAFMutex(java.lang.String mutex,
long delaySeconds)
Function STAFwaitMutex(String mutex, long delaySeconds)
|
Modifier and Type | Class and Description |
---|---|
class |
DroidLaunchFailureException
Thrown when we detect we have not successfully launched a Droid command execution.
|
class |
DroidStartCommandException
Thrown when we detect we have not successfully executed StartScript on Droid command.
|
class |
DroidTestRecordDataException
Exceptions relating to the transfer of TestRecordData between local SAFS Java and remote Droid Java.
|
Modifier and Type | Method and Description |
---|---|
java.util.List |
DGUIUtilities.extractListItems(java.lang.Object obj,
java.lang.String countProp,
java.lang.String itemProp) |
Tree |
DGUIUtilities.extractMenuBarItems(java.lang.Object obj) |
Tree |
DGUIUtilities.extractMenuItems(java.lang.Object obj) |
java.lang.String |
DGUIUtilities.getListItem(java.lang.Object obj,
int i,
java.lang.String itemProp) |
protected java.util.Collection |
DTestStepProcessor.interpretFields()
Calls the default processing of interpretFields and then prepares the
droiddata (testRecordData) with the initial KeywordProperties of:
|
protected java.util.Collection |
DEngineCommandProcessor.interpretFields()
Calls the default processing of interpretFields and then prepares the
droiddata (testRecordData) with the initial KeywordProperties of:
|
protected java.util.Collection |
DDriverCommand.interpretFields()
Calls the default processing of interpretFields and then prepares the
droiddata (testRecordData) with the initial KeywordProperties of:
|
Modifier and Type | Method and Description |
---|---|
boolean |
IAutoItRs.isWindow() |
Modifier and Type | Method and Description |
---|---|
static boolean |
AutoItLib.activate(AutoItXPlus it,
IAutoItRs rs) |
int |
AutoItXPlus.autoit2JavaButtonmask(java.lang.String autoitButton)
Transform AutoIt button RS into Java button mask.
|
int |
AutoItXPlus.autoit2JavaSpecialKey(java.lang.String autoitSpecialKey)
Transform AutoIt Special Key RS into Java key code.
|
void |
AutoItXPlus.mouseHover(java.awt.Point pos,
int milliSeconds)
Implement AutoItX's workhorse for keyword 'HoverMouse'.
|
Modifier and Type | Method and Description |
---|---|
void |
Control.callSAFSJHook()
callSAFSJHook
|
void |
Control.fireJRequest(java.lang.String request)
Purpose: fireJRequest, execute a test steps. |
void |
Control.getSAFSTestRecordData()
getSAFSTestRecordData
|
void |
Control.setSAFSTestRecordData()
setSAFSTestRecordData
|
void |
Control.testJHook(java.util.Collection c,
java.lang.String filename)
Purpose: testJHook, execute a collection of test steps |
Modifier and Type | Method and Description |
---|---|
static java.awt.Rectangle[] |
ImageUtils.convertAreas(java.awt.Rectangle basedRect,
java.lang.String areas,
java.util.List<java.lang.String> warnings)
Convert a set of area into an array of Rectangle
|
static java.awt.image.BufferedImage |
ImageUtils.filterImage(java.awt.image.BufferedImage image,
java.lang.String filteredAreas,
java.util.List<java.lang.String> warnings)
Cover an image by black color on a set of area.
|
(package private) static java.awt.Rectangle |
ImageUtils.findCompImageInRectangle(TestRecordHelper trd,
java.lang.String imagepath,
int imageindex,
java.lang.String[] modifiers,
java.awt.Rectangle rect)
Called by findComponentRectangle.
|
static java.awt.Rectangle |
ImageUtils.findComponentRectangle(TestRecordHelper trd)
Calls findComponentRectangle with a timeout of 0.
|
static java.awt.Rectangle |
ImageUtils.findComponentRectangle(TestRecordHelper trd,
long timeout)
Locate the final Window:Component Rectangle specified by the test record.
|
(package private) static java.awt.Rectangle |
ImageUtils.findImageTextInRectangle(java.lang.String imagetext,
int imageindex,
STAFHelper staf,
java.lang.String[] modifiers,
java.awt.Rectangle rect)
Called by findComponentRectangle.
|
static java.lang.String |
ImageUtils.normalizeFileNameSuffix(java.lang.String filename)
Check the suffix of filename, if it is not supported then append '.bmp' as suffix.
|
static void |
ImageUtils.saveImageToFile(java.awt.image.BufferedImage image,
java.io.File file,
float quality)
Store our BufferedImage into a File;
If the format is JPG, the third parameter indicate the compression quality.
|
Modifier and Type | Class and Description |
---|---|
class |
InstrumentsLaunchFailureException
Thrown when we detect we have not successfully launched IOS Instruments.
|
class |
InstrumentsScriptExecutionException
Thrown when we detect we have not successfully executed an IOS Instruments script.
|
class |
InstrumentsStartScriptException
Thrown when we detect we have not successfully executed StartScript on IOS Instruments.
|
class |
InstrumentsTestRecordDataException
Exceptions relating to the transfer of TestRecordData between SAFS Java and Apple Instruments JavaScript.
|
Modifier and Type | Method and Description |
---|---|
java.util.List |
IGUIUtilities.extractListItems(java.lang.Object obj,
java.lang.String countProp,
java.lang.String itemProp) |
Tree |
IGUIUtilities.extractMenuBarItems(java.lang.Object obj) |
Tree |
IGUIUtilities.extractMenuItems(java.lang.Object obj) |
java.lang.String |
IGUIUtilities.getListItem(java.lang.Object obj,
int i,
java.lang.String itemProp) |
protected java.util.Collection |
ITestStepProcessor.interpretFields()
calls super.interpretFields and then forces the retrieval of WIN and COMP recognition strings.
|
protected boolean |
ITestStepProcessor.setActiveWindow()
Does nothing but return true at this time.
|
protected int |
ITestStepProcessor.waitForObject(boolean isWindow)
Does nothing but return 0 at this time.
|
Modifier and Type | Method and Description |
---|---|
protected void |
JMenuBarAgent.doClick(javax.swing.JMenuBar bar,
java.lang.String path,
int pressTime)
does a click operation on the menu item relevant to the path
|
Modifier and Type | Class and Description |
---|---|
class |
LogException
This class is the base for all SAFS logging related exceptions.
|
Modifier and Type | Method and Description |
---|---|
void |
MenuUtilities.checkState(int state)
Users can call this method to check the state before they call the other
methods IsXXX()
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
XMLHttpRequest.execute(IHttpRequest.HttpCommand command,
java.lang.String url,
boolean async)
Send a HTTP Request and get the response from the server.
|
java.util.Map<java.lang.String,java.lang.Object> |
XMLHttpRequest.execute(IHttpRequest.HttpCommand command,
java.lang.String url,
boolean async,
java.util.Map<java.lang.String,java.lang.String> headers)
Send a HTTP Request and get the response from the server.
|
java.util.Map<java.lang.String,java.lang.Object> |
IHttpRequest.execute(IHttpRequest.HttpCommand command,
java.lang.String url,
boolean async,
java.util.Map<java.lang.String,java.lang.String> headers,
java.lang.String data)
Send a HTTP Request and get the response from the server.
Note: If this is performed by "AJAX XMLHttpRequest", it is probable not permitted to request an URL of domain other than the Application under test. |
java.util.Map<java.lang.String,java.lang.Object> |
HttpRequest.execute(IHttpRequest.HttpCommand command,
java.lang.String url,
boolean async,
java.util.Map<java.lang.String,java.lang.String> requestHeaders,
java.lang.String content)
Send a simple HTTP request.
If a PROXY server is needed to visit a site, we need to specify the PROXY server as JVM parameter, such as: -Dhttp.proxyHost=proxy.host.name -Dhttp.proxyPort=portNumber -Dhttps.proxyHost=proxy.host.name -Dhttps.proxyPort=portNumber Besides the keys mentioned IHttpRequest.execute(org.safs.net.IHttpRequest.HttpCommand, String, boolean, Map, String) , the returned Map may also contain Key#REQUEST_HEADERS . |
java.util.Map<java.lang.String,java.lang.Object> |
XMLHttpRequest.execute(IHttpRequest.HttpCommand command,
java.lang.String url,
boolean async,
java.lang.String data)
Send a HTTP Request and get the response from the server.
|
java.util.Map<java.lang.String,java.lang.Object> |
XMLHttpRequest.getURL(java.lang.String url)
Send a HTTP "GET" Request and get the response from the server synchronously.
|
java.util.Map<java.lang.String,java.lang.Object> |
XMLHttpRequest.getURL(java.lang.String url,
java.util.Map<java.lang.String,java.lang.String> headers)
Send a HTTP "GET" Request and get the response from the server synchronously.
|
java.util.Map<java.lang.String,java.lang.Object> |
XMLHttpRequest.postURL(java.lang.String url,
boolean async,
java.util.Map<java.lang.String,java.lang.String> headers,
java.lang.String data)
Send a HTTP "POST" Request and get the response from the server.
|
java.util.Map<java.lang.String,java.lang.Object> |
XMLHttpRequest.postURL(java.lang.String url,
boolean async,
java.lang.String data)
Send a HTTP "POST" Request and get the response from the server.
|
java.util.Map<java.lang.String,java.lang.Object> |
XMLHttpRequest.postURL(java.lang.String url,
java.lang.String data)
Send a HTTP "POST" Request and get the response from the server synchronously.
|
Modifier and Type | Method and Description |
---|---|
protected void |
VerifierToFile.afterCheck(Persistable persistable,
boolean... conditions)
Make the final check.
|
void |
VerifierToXMLFile.beforeCheck(Persistable persistable,
boolean... conditions) |
void |
VerifierToPropertiesFile.beforeCheck(Persistable persistable,
boolean... conditions) |
void |
VerifierToJSONFile.beforeCheck(Persistable persistable,
boolean... conditions) |
protected void |
VerifierToFile.beforeCheck(Persistable persistable,
boolean... conditions)
Get some variables prepared for verification.
Parse the optional parameters It is expected that subclass should override this method to provide values to VerifierToFile.expectedContents and VerifierToFile.actualContents , such as: |
protected void |
PersistorToXMLFile.beforeUnpickle() |
protected void |
PersistorToJSONFile.beforeUnpickle() |
protected void |
PersistorToFile.beforeUnpickle() |
protected void |
VerifierToFile.check(Persistable persistable,
boolean... conditions) |
static Verifier |
VerifierFactory.create(PersistenceType persistenceType,
FileUtilities.FileType fileType,
RuntimeDataInterface runtime,
java.lang.Object object) |
static Persistor |
PersistorFactory.create(PersistenceType persistenceType,
FileUtilities.FileType fileType,
RuntimeDataInterface runtime,
java.lang.Object object) |
protected Persistable |
PersistorToXMLFile.doUnpickle() |
protected Persistable |
PersistorToJSONFile.doUnpickle() |
protected Persistable |
PersistorToFile.doUnpickle() |
void |
PersistorToVariable.persist(Persistable persistable) |
void |
PersistorToFile.persist(Persistable persistable) |
void |
Persistor.persist(Persistable persistable)
Persist a Persistable object.
|
void |
AbstractRuntimeDataPersistor.persist(Persistable persistable) |
void |
PersistorToVariable.unpersist() |
void |
PersistorToFile.unpersist()
Try to delete a persistence file in the test/bench folder.
|
void |
Persistor.unpersist()
Delete the persistence (a file, the variables etc.)
|
Persistable |
PersistorToFile.unpickle(java.util.Map<java.lang.String,java.util.List<java.lang.String>> ignoredFields) |
Persistable |
Persistor.unpickle(java.util.Map<java.lang.String,java.util.List<java.lang.String>> ignoredFields)
Convert the contents stored in a persistence substance into a Persistable object.
|
Persistable |
AbstractRuntimeDataPersistor.unpickle(java.util.Map<java.lang.String,java.util.List<java.lang.String>> ignoredFields)
Provided default implementation, simply throw out a SAFSException.
|
static Persistable |
PersistorToJSONFile.unpickleParse(org.json.JSONObject body)
Try to convert JSON File to a
Persistable object.In JSON file, the special JSON key Constants.JSONConstants.PROPERTY_CLASSNAME holds the name of the class which the
JSONObject represents; the other keys are the name of the fields of that class. |
protected void |
AbstractRuntimeDataVerifier.validate(Persistable persistable)
Check if this Persistable object is valid (not null, not disabled etc.).
|
protected void |
AbstractRuntimeDataPersistor.validate(Persistable persistable)
Check if this Persistable object is valid (not null, not disabled etc.).
|
void |
VerifierToFile.verify(Persistable persistable,
boolean... conditions) |
void |
Verifier.verify(Persistable persistable,
boolean... conditions)
Verify a Persistable object against the contents stored in a persistence substance.
|
void |
AbstractRuntimeDataVerifier.verify(Persistable persistable,
boolean... conditions) |
void |
PersistorToPropertiesFile.write(Persistable persistable) |
protected void |
PersistorToHierarchialFile.write(Persistable persistable)
Write the Persistable object to a persistence of hierarchical structure, such as JSON, XML file.
This is a template method, it is calling the method below: PersistorToHierarchialFile.containerBegin(String)
PersistorToHierarchialFile.childBegin(String, String)
PersistorToHierarchialFile.childEnd(boolean)
PersistorToHierarchialFile.containerEnd(String)
|
protected abstract void |
PersistorToFile.write(Persistable persistable)
Write the Persistable object into a persistent material.
PersistorToFile.writeHeader(Persistable) is called beforePersistorToFile.writeTailer(Persistable) is called after |
protected void |
PersistorToJSONFile.writeHeader(Persistable persistable) |
protected void |
PersistorToFile.writeHeader(Persistable persistable)
This is called before
PersistorToFile.write(Persistable) . |
protected void |
PersistorToJSONFile.writeTailer(Persistable persistable) |
protected void |
PersistorToFile.writeTailer(Persistable persistable)
This is called after
PersistorToFile.write(Persistable) . |
Modifier and Type | Method and Description |
---|---|
static void |
PersistTest.main(java.lang.String[] args)
java -ea org.safs.persist.test.PersistorTest
java -ea org.safs.persist.test.PersistorTest -d src\install\doc\configure
|
Modifier and Type | Method and Description |
---|---|
protected void |
CFComponent._maximize()
Purpose: maximize |
protected void |
CFComponent._minimize()
Purpose: minimize |
protected void |
CFComponent._restore()
Purpose: restore |
protected void |
CFComponent._setPosition(java.awt.Point position) |
protected void |
CFComponent._setSize(java.awt.Dimension size) |
protected void |
CFTable.actionAssign(com.rational.test.ft.object.interfaces.GuiTestObject guiObj,
int row,
int col,
java.lang.String rowval,
java.lang.String column,
java.lang.String var)
Purpose: actually do the assign action |
protected void |
CFTable.actionCaptureRangeToFile(com.rational.test.ft.object.interfaces.GuiTestObject guiObj,
java.lang.Integer rrow,
java.lang.Integer rrows,
java.lang.String rowval,
java.lang.Integer ccol,
java.lang.Integer ccols,
java.lang.String column,
java.lang.String filename,
boolean fuzzy,
java.lang.String encoding)
Purpose: actually do the capture action |
protected void |
CFTable.actionClick(com.rational.test.ft.object.interfaces.GuiTestObject guiObj,
int row,
int col,
java.lang.Integer rrow2,
java.lang.Integer ccol2,
java.lang.String rowval,
java.lang.String column)
Perform a click action (this version takes 4 params),
not implemented for CFTable, just reverts to the other version...
|
protected void |
CFJCTable.actionClick(com.rational.test.ft.object.interfaces.GuiTestObject guiObj,
int row,
int col,
java.lang.Integer rrow2,
java.lang.Integer ccol2,
java.lang.String rowval,
java.lang.String column)
Purpose: actually do the click action, this version takes 4 coords |
protected void |
CFTable.actionClick(com.rational.test.ft.object.interfaces.GuiTestObject guiObj,
int row,
int col,
java.lang.String rowval,
java.lang.String column)
Perform a click-variant action on a cell in a table.
|
protected void |
CFJCTable.actionClick(com.rational.test.ft.object.interfaces.GuiTestObject guiObj,
int row,
int col,
java.lang.String rowval,
java.lang.String column)
Purpose: actually do the click action |
protected void |
CFTable.actionClickColumnLabel(com.rational.test.ft.object.interfaces.GuiTestObject guiObj,
int col,
int yoffset)
Purpose: ClickColumnLabel,DoubleClickColumnLabel, ActivateColumnLabel |
protected void |
CFJCTable.actionClickColumnLabel(com.rational.test.ft.object.interfaces.GuiTestObject guiObj,
int col,
int yoffset)
Purpose: ClickColumnLabel, this overrides the version in our parent |
protected void |
CFDotnetTable.actionClickColumnLabel(com.rational.test.ft.object.interfaces.GuiTestObject guiObj,
int col,
int yoffset)
overrides CFTable.actionClickColumnLabel for .NET support
|
protected void |
CFTable.actionClickRowLabel(com.rational.test.ft.object.interfaces.GuiTestObject guiObj,
int row,
int xoffset)
Purpose: ClickRowLabel, *NOTE* currently not implemented, but will be implemented by classes that extend this class |
protected void |
CFJCTable.actionClickRowLabel(com.rational.test.ft.object.interfaces.GuiTestObject guiObj,
int row,
int xoffset)
Purpose: ClickRowLabel, this overrides the version in our parent |
protected void |
CFTable.actionGetCellCoordinates(com.rational.test.ft.object.interfaces.GuiTestObject guiObj,
int row,
int col,
java.lang.String xCoordVariable,
java.lang.String yCoordVariable)
Purpose: GetCellCoordinates, *NOTE* currently not implemented, but will be implemented by classes that extend this class |
protected void |
CFJCTable.actionGetCellCoordinates(com.rational.test.ft.object.interfaces.GuiTestObject guiObj,
int row,
int col,
java.lang.String xCoordVariable,
java.lang.String yCoordVariable)
Purpose: GetCellCoordinates, this overrides the version in our parent |
protected void |
CFTable.actionGetTableRowColumnCount(com.rational.test.ft.object.interfaces.GuiTestObject guiObj,
java.lang.String rowCountVariable,
java.lang.String colCountVariable)
Purpose: GetTableRowColumnCount *NOTE* currently not implemented, but will be implemented by classes that extend this class |
protected void |
CFJCTable.actionGetTableRowColumnCount(com.rational.test.ft.object.interfaces.GuiTestObject guiObj,
java.lang.String rowCountVariable,
java.lang.String colCountVariable)
Purpose: GetTableRowColumnCount, this overrides the version in our parent |
protected void |
CFTable.actionLocalSelectCellTextSpecial(com.rational.test.ft.object.interfaces.GuiTestObject guiObj,
int row,
int col,
java.lang.String rowval,
java.lang.String column,
boolean control,
boolean shift,
boolean leftRight) |
protected void |
CFTable.actionSelectCellTextSpecial(com.rational.test.ft.object.interfaces.GuiTestObject guiObj,
int row,
int col,
java.lang.String rowval,
java.lang.String column,
boolean control,
boolean shift,
boolean leftRight)
Purpose: actually do the right or left click action with Contorl or Shift key pressed. |
protected void |
CFJCTable.actionSelectCellTextSpecial(com.rational.test.ft.object.interfaces.GuiTestObject guiObj,
int row,
int col,
java.lang.String rowval,
java.lang.String column,
boolean control,
boolean shift,
boolean leftRight)
Purpose: actually do the right or left click action with Contorl or Shift key pressed. |
protected void |
CFTable.actionVerify(com.rational.test.ft.object.interfaces.GuiTestObject guiObj,
int row,
int col,
java.lang.String rowval,
java.lang.String column,
boolean fuzzy,
java.lang.String val)
Purpose: actually do the verify action |
protected void |
CFJCTable.actionVerify(com.rational.test.ft.object.interfaces.GuiTestObject guiObj,
int row,
int col,
java.lang.String rowval,
java.lang.String column,
boolean fuzzy,
java.lang.String val) |
protected void |
CFTable.actionVerifyCellEditable(com.rational.test.ft.object.interfaces.GuiTestObject guiObj,
int row,
int col,
boolean verifyFlag)
Purpose: VerifyCellEditable |
protected void |
CFJCTable.actionVerifyCellEditable(com.rational.test.ft.object.interfaces.GuiTestObject guiObj,
int row,
int col,
boolean verifyFlag)
Purpose: VerifyCellEditable, this overrides the version in our parent |
protected void |
CFDotnetTable.actionVerifyCellEditable(com.rational.test.ft.object.interfaces.GuiTestObject guiObj,
int row,
int col,
boolean verifyFlag)
Purpose: overides CFTable.VerifyCellEditable for supporting VerifyCellEditable on .NET |
protected void |
CFTable.actionVerifyColumnLabel(com.rational.test.ft.object.interfaces.GuiTestObject guiObj,
java.lang.String val,
int col)
Purpose: VerifyColLabel, *NOTE* currently not implemented, but will be implemented by classes that extend this class |
protected void |
CFJCTable.actionVerifyColumnLabel(com.rational.test.ft.object.interfaces.GuiTestObject guiObj,
java.lang.String val,
int col)
Purpose: VerifyColumnLabel, this overrides the version in our parent |
protected void |
CFHtmlTable.actionVerifyColumnLabel(com.rational.test.ft.object.interfaces.GuiTestObject guiObj,
java.lang.String val,
int col)
Purpose: overrides CFTable.actionVerifyColumnLabel, only for HTML Table. |
protected void |
CFTable.actionVerifyRowLabel(com.rational.test.ft.object.interfaces.GuiTestObject guiObj,
java.lang.String val,
int row)
Purpose: VerifyRowLabel, *NOTE* currently not implemented, but will be implemented by classes that extend this class |
protected void |
CFJCTable.actionVerifyRowLabel(com.rational.test.ft.object.interfaces.GuiTestObject guiObj,
java.lang.String val,
int row)
Purpose: VerifyRowLabel, this overrides the version in our parent |
protected void |
CFList.activatePartialMatch(com.rational.test.ft.object.interfaces.GuiSubitemTestObject guiObj,
java.lang.String param,
boolean exact)
Purpose: activatePartialMatch |
protected void |
CFList.captureItemsToFile()
Purpose: captureItemsToFile |
protected void |
CFComboBox.captureItemsToFile()
Purpose: captureItemsToFile |
protected java.util.List<java.util.List<java.lang.String>> |
CFTable.captureObjectData(com.rational.test.ft.object.interfaces.TestObject table)
Captures the object data into a List of rows.
|
protected java.util.List |
CFPageTabList.captureObjectData(com.rational.test.ft.object.interfaces.TestObject guiObj)
Overrides its super for DotNet TabControl.
|
protected java.util.List |
CFMenuBar.captureObjectData(com.rational.test.ft.object.interfaces.TestObject guiObj)
Turn the menu to a tree, and return each level of the tree node.
|
protected java.util.List |
CFList.captureObjectData(com.rational.test.ft.object.interfaces.TestObject guiObj)
Note: Need to modify this method if we want to support new application type, such as Flex application
|
protected java.util.List |
CFLabel.captureObjectData(com.rational.test.ft.object.interfaces.TestObject table)
Overrides its super for supporting CFLabel specifically.
|
protected java.util.List<java.util.List<java.lang.String>> |
CFHtmlTable.captureObjectData(com.rational.test.ft.object.interfaces.TestObject table)
overrides CFTable.captureObjectData to capture the object data into a
List of rows.
|
protected java.util.List |
CFDotnetTable.captureObjectData(com.rational.test.ft.object.interfaces.TestObject table)
overrides CFTable.captureObjectData to capture the object data into a List of rows.
|
protected java.util.List |
CFComponent.captureObjectData(com.rational.test.ft.object.interfaces.TestObject table)
Captures the object data into a List.
|
protected java.util.List |
CFComboBox.captureObjectData(com.rational.test.ft.object.interfaces.TestObject table)
Captures the object data into a List.
|
protected void |
CFComponent.captureObjectDataToFile()
A generic implementation for CaptureObjectDataToFile.
|
protected void |
CFComponent.capturePropertiesToFile()
Purpose: capturePropertiesToFile |
protected void |
CFComponent.capturePropertyToFile()
Purpose: capturePropertyToFile Note: for now, the value of the parameter is meaningless because the value of the property inferrs if it is an array or not. |
protected void |
CFTree.captureTreeDataToFile()
Purpose: capture the 'Tree' hierarchy data (from a TestObject) to a file. |
protected boolean |
DCDriverCommand.checkGUIExistence(boolean expectedExist,
java.lang.String mapNam,
java.lang.String window,
java.lang.String component,
int timeoutInSeconds) |
protected java.lang.String |
CFToolBar.clickButtonIndex(java.lang.String indexString) |
protected java.lang.String |
CFToolBar.clickButtonText(java.lang.String textOrPath,
boolean toVerify)
If textOrPath is a single, click on the item whose text match to the parameter in this toolbar.
|
protected java.lang.String |
CFToolBar.clickButtonTooltip(java.lang.String tooltip) |
protected void |
CFList.clickColumn(com.rational.test.ft.object.interfaces.GuiSubitemTestObject guiObj,
java.lang.String param)
Purpose: clickColumn |
protected void |
CFList.clickTextItem2(com.rational.test.ft.object.interfaces.GuiSubitemTestObject guiObj,
java.lang.String itemToClick,
boolean exact,
boolean rightClick,
boolean verified)
Note: This method can replace clickTextItem(). |
protected void |
CFTable.commandAssignCellTextRow(boolean fuzzy)
Purpose: commandAssignCellTextRow: Assign the "found row number" to a staf variable. |
protected void |
CFTable.commandAssignVariableCellText(boolean fuzzy)
Purpose: commandAssignVariableCellText: process commands like: assignvariablecelltext |
protected void |
CFTable.commandCaptureRangeToFile(boolean fuzzy)
process commands like CaptureRangeToFile, CaptureFuzzyRangeToFile
NOTE: if fuzzy is true then: (case is ignored; if matching columns, or
if matching cell values, use substrings)
|
protected void |
CFJCTable.commandCaptureRangeToFile(boolean fuzzy)
Purpose: commandCaptureRangeToFile: process commands like: CaptureRangeToFile, CaptureFuzzyRangeToFile |
protected void |
CFTable.commandClick(boolean fuzzy)
Process commands like: clickcell, doubleclickcell, activatecell
Example:custTableTable().click(atCell(atRow(rowIndex), atColumn(colIndex)));
first param is the row and second param is column (both from 1), the col could be the name of the column, if non-numeric |
protected void |
CFTable.commandClickCellOfColWithRowValues()
Purpose: commandClickCellOfColWithRowValues: process commands like: clickCellOfColWithRowValues, doubleclickCellOfColWithRowValues Example:custTableTable().click(atCell(atColumn("PHONE"), atRow("NAME", "Jill Sanford", "CUSTID", "19", "STREET", "80 West End"))); // with no coords Example:custTableTable().click(atCell(atColumn("PHONE"), atRow("NAME", "Jill Sanford", "CUSTID", "19", "STREET", "80 West End")), atPoint(4,5)); // with coords example step commands: T,Frame,custTableTable,clickCellOfColWithRowValues,,PHONE,CUSTID,5,NAME,Susan Flontly,STREET,750 Central Expy T,Frame,orderTableTable,clickCellOfColWithRowValues,,QUANTITY,ORDERDATE,3/11/98,EXPDATE,1298,QUANTITY,3 T,Frame,orderTableTable,clickCellOfColWithRowValues,44;15,QUANTITY,ORDERDATE,3/11/98,EXPDATE,1298,QUANTITY,3 T,Frame,orderTableTable,clickCellOfColWithRowValues,"Coords=44;15",QUANTITY,ORDERDATE,3/11/98,EXPDATE,1298,QUANTITY,3 first param is cell pixel xoffset and yoffset second param is the column name, remaining params are the name/value pairs for the row specification for the cell |
protected void |
CFTable.commandClickColumnLabel()
Purpose: commandClickColumnLabel: process commands like: click, doubleclick, activate T,windowName,TableName,clickColumnLabel,2 T,windowName,TableName,doubleclickColumnLabel,2 T,windowName,TableName,activateColumnLabel,2 |
protected void |
CFTable.commandClickFind(boolean fuzzy)
Purpose: commandClickFind: process commands like: click, doubleclick, activatecell example step commands: T,Frame,custTableTable,selectCellTextFind,rowIndexVar,3, FindCol1, FindVal1, FindCol2, FindVal2 T,Frame,orderTableTable,selectCellTextFind,rowIndexVar,PHONE NUM, FindCol1, FindVal1, FindCol2, FindVal2,FindCol3,FindVal3 second param is the column name/num to select, the rest of the params go in pairs, first a findColumn, then a findValue. |
protected void |
CFTable.commandClickRowLabel()
Purpose: commandClickRowLabel: process commands like: click, doubleclick, activate T,windowName,TableName,clickRowLabel,2 T,windowName,TableName,doubleclickRowLabel,2 T,windowName,TableName,activateRowLabel,2 |
protected void |
CFTable.commandGetCellCoordinates() |
protected void |
CFTable.commandGetTableRowColumnCount()
Purpose: commandGetTableRowColumnCount T,windowName,TableName,GetTableRowColumnCount,retRowCountVar, retColCountVar |
protected void |
CFTable.commandSelectCellTextSpecial(boolean fuzzy)
Purpose: commandSelectCellTextSpecial: process command click, with Contorl or shirt key and left or right mouse button. |
protected void |
CFTable.commandSelectRowWithRowValues()
Purpose: commandSelectRowWithRowValues: process commands like: selectRowWithRowValues Example:custTableTable().setState(Action.select(), atRow("NAME", "Jill Sanford", "CUSTID", "19", "STREET", "80 West End")); example step commands: T,Frame,custTableTable,select,CUSTID,5,NAME,Susan Flontly,STREET,750 Central Expy T,Frame,orderTableTable,select,ORDERDATE,3/11/98,EXPDATE,1298,QUANTITY,3 all of the params are the name/value pairs for the row specification for the row to select |
protected void |
CFTable.commandVerifyCellEditable()
Purpose: commandVerifyCellEditable: T,windowName,TableName,VerifyCellEditable,2,4,true or false T,windowName,TableName,VerifyCellEditable,2,Field4, true or false |
protected void |
CFTable.commandVerifyCellText(boolean fuzzy)
Purpose: commandVerifyCellText: process commands like: verifyCellText and verifyCellTextContains |
protected void |
CFTable.commandVerifyCellTextFind(boolean fuzzy)
Purpose: commandVerifyCellTextFind: process commands like: verifyCellTextFind |
protected void |
CFHtmlTable.commandVerifyCellValue()
preform VerifyCellValue.
|
protected void |
CFTable.commandVerifyColumnLabel() |
protected void |
CFTable.commandVerifyRowLabel() |
protected void |
CFTree.commandWithOneParam()
Purpose: commandWithOneParam: process commands like: click, doubleclick, expand and collapse; ones which take one parameter, (the path in the tree). |
protected void |
CFPageTabList.commandWithOneParam()
Purpose: commandWithOneParam: process commands like: click, doubleclick, expand and collapse; ones which take one parameter, (the path or which tab). |
protected java.lang.String |
CFComponent.convertObjectValueToString(java.lang.Object value)
Given an object of any type attempt to convert or extract its intended or
visible text value.
|
protected void |
CFTable.doActionClick(com.rational.test.ft.object.interfaces.GuiSubitemTestObject guiObj,
int row,
int col,
java.lang.String rowval,
java.lang.String colval)
Attempt to perform a click-type action on a cell and issue a success message
if successful.
|
protected void |
CFHtmlDocument.doCaptureBodyTextToFile()
Purpose: perform action CaptureBodyTextToFile, capture the body text in target HtmlDocument and
write the content to a new file with UTF8 format.
|
protected void |
CFTree.doDoubleClick(com.rational.test.ft.object.interfaces.TestObject testObjct,
com.rational.test.ft.script.List path) |
protected void |
CFTree.doExpand(com.rational.test.ft.object.interfaces.TestObject testObjct,
com.rational.test.ft.script.List path,
boolean expand) |
protected void |
CFComboBox.doSelect(java.lang.String action) |
static void |
FlexUtil.doSelectMenubar(com.rational.test.ft.object.interfaces.TestObject menuObj,
java.lang.String menuItemPath)
Purpose: Perform a select operation on Flex menu items.
|
protected void |
CFHtmlDocument.doVerifyBodyText()
Purpose: perform action VerifyBodyText, capture body text in target HtmlDocument, then compare the content captured
with the content of a bench file (UTF8 formated).
|
protected boolean |
CFComponent.exist() |
java.util.List |
RDDGUIUtilities.extractListItems(java.lang.Object obj,
java.lang.String countProp,
java.lang.String itemProp)
Purpose: extract a list of items from a TestObject. |
Tree |
RDDGUIUtilities.extractMenuBarItems(java.lang.Object obj)
required implementation for superclass
|
Tree |
RDDGUIUtilities.extractMenuItems(java.lang.Object obj)
required implementation for superclass
|
protected Tree |
CFMenuBar.extractMenuItems(java.lang.Object obj,
int level)
Purpose: Extract a menu hierarchy from a TestObject; The item is for JMenuBars, JPopupMenus, JMenus, and JMenuItems (JMenu is subclass of JMenuItem). |
protected Tree |
CFTree.extractTreeItems(java.lang.Object obj)
Extract a 'Tree' hierarchy from a TestObject.
|
protected Tree |
CFComponent.extractTreeItemsSub(java.lang.Object nitem)
Extract a 'Tree' hierarchy from a TestObject.
|
protected java.lang.String |
CFMenuBar.getAbsoluteFileName(java.lang.String filename,
java.lang.String parentDir) |
protected com.rational.test.ft.script.Cell |
CFTable.getCell(int row,
int col)
Purpose: get a Cell based on row and col |
protected com.rational.test.ft.script.Cell |
CFDotnetTable.getCell(int row,
int col)
Purpose: overrides CFTable.getCell, gets a Cell based on row and col |
protected java.lang.Object |
CFTable.getCell(com.rational.test.ft.object.interfaces.TestObject jctable,
int row,
int col)
Purpose: get a cell based on row and col |
protected java.lang.Object |
CFJCTable.getCell(com.rational.test.ft.object.interfaces.TestObject jctable,
int row,
int col)
Purpose: get a cell based on row and col, uses 'getCells' method |
protected java.lang.Object |
CFDotnetTable.getCell(com.rational.test.ft.object.interfaces.TestObject jctable,
int row,
int col)
Purpose: overrides CFTable.getCell supporting .NET tables to get a cell based on row and col Note:it is low-effective to call this method repeatly. |
protected java.util.Collection |
CFJCTable.getCells(com.rational.test.ft.object.interfaces.TestObject jctable)
Purpose: get all cells of the testobject (JCTable) |
protected java.lang.String |
CFTable.getCellText(com.rational.test.ft.object.interfaces.TestObject guiObj,
int row,
int col)
Note:
Get the text value of the cell at (row,col) in Java table Its subclass may override this method. |
static com.rational.test.ft.object.interfaces.TestObject |
DotNetUtil.getClazz(com.rational.test.ft.object.interfaces.TestObject testObject) |
static java.lang.String |
DotNetUtil.getClazzFullName(com.rational.test.ft.object.interfaces.TestObject clazz) |
protected int |
CFTable.getColi(boolean fuzzy,
java.lang.String column,
com.rational.test.ft.object.interfaces.GuiTestObject guiObj)
Purpose: get the column number based on fuzzy match |
protected int |
CFJCTable.getColi(boolean fuzzy,
java.lang.String column,
com.rational.test.ft.object.interfaces.GuiTestObject guiObj)
Purpose: get the column number based on fuzzy match |
protected int |
CFHtmlTable.getColi(boolean fuzzy,
java.lang.String column,
com.rational.test.ft.object.interfaces.GuiTestObject guiObj)
Purpose: overrides CFTable.getColi. |
protected int |
CFDotnetTable.getColi(boolean fuzzy,
java.lang.String column,
com.rational.test.ft.object.interfaces.GuiTestObject guiObj)
Purpose: overrides CFTable.getColi. |
protected com.rational.test.ft.object.interfaces.TestObject[] |
CFHtmlTable.getColumns(com.rational.test.ft.object.interfaces.TestObject jctable)
Note:
The first line of html.table will be found, that is the first "<tr>...</tr>" contained in "<table></table>". |
protected void |
CFTIDComponent.getHelpers() |
protected void |
CFHtmlLink.getHelpers()
Purpose: overrides parent: in our local version we do not get 'obj1', that is done directly in the localProcess method because it may need to search for more than one object because it doesn't know the object name just yet... |
protected void |
CFDatabase.getHelpers()
Purpose: overrides parent: in our local version we do not get 'obj1', |
protected void |
CFComponent.getHelpers() |
protected com.rational.test.ft.object.interfaces.TestObject |
CFTable.getJCTable(com.rational.test.ft.object.interfaces.TestObject jctable)
drill down through wrapper objects to get the table
Assumptions: to be used by sub-classes. |
protected java.lang.String |
CFList.getListItem(com.rational.test.ft.object.interfaces.GuiTestObject guiObj,
int index) |
java.lang.String |
RDDGUIUtilities.getListItem(java.lang.Object obj,
int i,
java.lang.String itemProp)
Purpose: get a list item from a TestObject. |
protected java.util.List |
CFList.getListItems(com.rational.test.ft.object.interfaces.TestObject guiObj,
java.lang.String vpProperty) |
protected int |
CFTable.getNumColumns(com.rational.test.ft.object.interfaces.TestObject jctable)
Purpose: get number of columns in table |
protected int |
CFHtmlTable.getNumColumns(com.rational.test.ft.object.interfaces.TestObject jctable)
Purpose: get number of columns in HTML table; override CFTable.GetNumColumns(TestObject jctable), |
protected int |
CFDotnetTable.getNumColumns(com.rational.test.ft.object.interfaces.TestObject dotNetable)
Purpose: overrides CFTable.getNumColumns, gets number of columns in .Net table |
protected int |
CFTable.getNumRows(com.rational.test.ft.object.interfaces.TestObject jctable)
Purpose: get number of rows in table |
protected int |
CFJCTable.getNumRows(com.rational.test.ft.object.interfaces.TestObject jctable) |
protected int |
CFHtmlTable.getNumRows(com.rational.test.ft.object.interfaces.TestObject jctable)
Purpose: get number of rows in HTML table; override CFTable.getNumRows(TestObject). |
protected int |
CFDotnetTable.getNumRows(com.rational.test.ft.object.interfaces.TestObject dotNetable)
Purpose: overrides CFTable.getNumRows, gets number of rows in .Net tables. |
protected java.util.List |
CFTable.getObjectData(com.rational.test.ft.object.interfaces.GuiTestObject table,
java.lang.Integer rrow,
java.lang.Integer rrows,
java.lang.String rowval,
java.lang.Integer ccol,
java.lang.Integer ccols,
java.lang.String column,
boolean fuzzy)
Captures the object data into a Tab delimited List of values.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
CFComponent.getProperties() |
protected java.lang.Object |
CFComponent.getPropertyObject(java.lang.String propertyName) |
protected int |
CFTable.getRowi(boolean fuzzy,
java.util.Collection rowvalsParam,
com.rational.test.ft.object.interfaces.GuiTestObject guiObj)
Purpose: get the row number based on fuzzy match |
protected com.rational.test.ft.object.interfaces.GuiSubitemTestObject |
CFMenuBar.getSubMenuItemFullPath(com.rational.test.ft.object.interfaces.TestObject theObj,
java.lang.StringBuffer path)
theObj is expected to be a JMenu TestObject proxy (Usually a ToggleGUITestObject).
|
static com.rational.test.ft.object.interfaces.TestObject |
DotNetUtil.getSuperClazz(com.rational.test.ft.object.interfaces.TestObject clazz) |
protected void |
DCDriverCommand.init()
Convert the general GUIUtilities to a specific one.
|
protected void |
CFComponent.inputKeystrokes()
Purpose: inputkeys and inputcharacters |
protected boolean |
CFMenuBar.isMenuBar(com.rational.test.ft.object.interfaces.TestObject menuObject)
Note: Needed to be override in subclass.
|
protected boolean |
CFDotNetMenuBar.isMenuBar(com.rational.test.ft.object.interfaces.TestObject menuObject) |
protected boolean |
CFMenuBar.isMenuItem(com.rational.test.ft.object.interfaces.TestObject menuObject)
Note: Needed to be override in subclass.
|
protected boolean |
CFDotNetMenuBar.isMenuItem(com.rational.test.ft.object.interfaces.TestObject menuObject) |
protected boolean |
CFTree.isNodeSelected(com.rational.test.ft.object.interfaces.GuiSubitemTestObject guiObj,
com.rational.test.ft.script.List testPathList)
Note: This method can only treate the java-swing component,
For other appliction, it needed to be overrided.
|
protected boolean |
CFDotNetTree.isNodeSelected(com.rational.test.ft.object.interfaces.GuiSubitemTestObject guiObj,
com.rational.test.ft.script.List testPathList) |
protected boolean |
CFMenuBar.isPopupMenu(com.rational.test.ft.object.interfaces.TestObject menuObject) |
protected boolean |
CFDotNetMenuBar.isPopupMenu(com.rational.test.ft.object.interfaces.TestObject menuObject) |
static boolean |
DotNetUtil.isSubclassOf(com.rational.test.ft.object.interfaces.TestObject clazz,
java.lang.String className) |
protected java.lang.String |
CFComponent.matchedPathOfMenuItem(com.rational.test.ft.object.interfaces.GuiTestObject guiObj,
java.lang.String path,
boolean fuzzy,
java.lang.String status)
Note: guiObj is a GuiSubitemTestObject in Java or DotNet domains; a FlexMenuBarTestObject in Flex domain.
|
protected void |
CFList.modifiedClickTextItem(com.rational.test.ft.script.MouseModifiers mbuttons,
com.rational.test.ft.object.interfaces.GuiSubitemTestObject guiObj,
java.lang.String param)
Purpose: click with various mouse buttons active |
protected void |
CFList.modifiedDoubleClickTextItem(com.rational.test.ft.script.MouseModifiers mbuttons,
com.rational.test.ft.object.interfaces.GuiSubitemTestObject guiObj,
java.lang.String param)
Purpose: activateUnverifiedTextItem |
protected void |
CFToolBar.performActionWithOneParameter()
Purpose: Perform ClickAtIndex ClickAtTooltip
|
protected boolean |
CFToolBar.performClick(com.rational.test.ft.object.interfaces.GuiTestObject testObject,
java.awt.Point point)
Try to perform a click on the given GuiTestObject, if RFT API click() can not work then
try to invoke some native call to perform click.
|
protected java.lang.String |
CFList.performDoubleClick(com.rational.test.ft.object.interfaces.GuiSubitemTestObject guiObj,
java.lang.String param,
boolean exact,
com.rational.test.ft.script.MouseModifiers mbuttons)
Purpose: Perform a double click on the item in a list
Note: Should be called by function without verification, as this method will check the existence of item
|
protected void |
CFComponent.performDrag()
perform LeftDrag or RightDrag on component moving from (x1,y1) to (x2,y2).
|
protected boolean |
CFComponent.performHoverMouse(java.awt.Point point,
int miliseconds) |
protected void |
CFComponent.performScorll()
Purpose: Drag a compenent horizontally or vertically Note: If TestObject 'obj1' represent a GuiSubitemTestObject, then use the RFT API setState method; This method will consider the position as a relative value. |
protected java.lang.String[] |
CFList.searchForListItem(com.rational.test.ft.object.interfaces.GuiSubitemTestObject guiObj,
java.lang.String param,
boolean exact)
Purpose: Search item in list
|
protected void |
CFTable.selectCellText(boolean fuzzy)
Example:custTableTable().click(atCell(atRow(rowIndex), atColumn(colIndex)));
first param is the row and second param is column (both from 1),
the col could be the name of the column, if non-numeric
the row could be the value of a cell in col #1.
|
void |
CFPopupMenu.selectIndex() |
protected void |
CFDotNetPopupMenu.selectIndex()
Note: Analyse the parameters, prepare them for executing.
|
protected void |
CFDotNetPopupMenu.selectIndex(com.rational.test.ft.object.interfaces.GuiSubitemTestObject menuObj,
int index) |
protected void |
CFList.selectIndex(com.rational.test.ft.object.interfaces.GuiSubitemTestObject guiObj,
java.lang.String param)
Purpose: selectIndex 17 JUL 2008 (LeiWang) Modify index setting. |
protected void |
CFMenuBar.selectMenuBar(com.rational.test.ft.object.interfaces.TestObject menuObj,
java.lang.String menuItemPath,
boolean fuzzy,
boolean verify)
Purpose: Select a menuItem We use an equivalent of this to accomplish the select: jmbMenuBar().click(atPath("Admin->Customers...")); |
protected void |
CFMenuBar.selectMenuItem()
Purpose: Verify the existance of the path exactly, if it exists then select the path
|
protected void |
CFComponent.selectMenuItem(boolean fuzzy)
perform SelectMenuItem and SelectMenuItemContains
|
protected void |
CFMenuBar.selectMenuItemContains()
Purpose: Verify the existance of the path non-exactly, if it exists then select the path
|
protected void |
CFMenuBar.selectUnverifiedMenuItem()
Purpose: Select the path (exactly matched) without verification of it's existance
|
protected void |
CFMenuBar.selectUnverifiedPopupMenuItem()
Purpose: Select the path provided without the verification of existance of this path
|
protected void |
CFComponent.sendEvent()
send an event to the object--assuming it supports receiving events.
|
protected void |
CFList.SetListContains(com.rational.test.ft.object.interfaces.GuiSubitemTestObject guiObj,
java.lang.String param,
java.util.Iterator piter)
Purpose: repeatly access each list-item of guiObj to see if its substring matches target string param. |
protected boolean |
CFJCTable.setLocalSelection(com.rational.test.ft.object.interfaces.GuiTestObject jctable,
int row,
int col,
int row2,
int col2,
boolean left,
boolean right) |
protected void |
CFJCTable.setLocalSelectionSpecial(com.rational.test.ft.object.interfaces.GuiTestObject jctable,
int row,
int col,
boolean control,
boolean shift,
boolean leftRight) |
protected boolean |
CFJCTable.setSelection(com.rational.test.ft.object.interfaces.GuiTestObject jctable,
int row,
int col,
int row2,
int col2)
Purpose: set selection (NOTE: currently doesn't allow edit of cell when selected, looks like this is just a highlight, rather than a selection). |
protected boolean |
CFJCTable.setSelection(com.rational.test.ft.object.interfaces.GuiTestObject jctable,
int row,
int col,
int row2,
int col2,
boolean left,
boolean right)
Purpose: set selection Does a click in the cell based on the result of invoking getCellPosition on the jctable. |
protected void |
CFJCTable.setSelectionSpecial(com.rational.test.ft.object.interfaces.GuiTestObject guiObj,
int row,
int col,
boolean control,
boolean shift,
boolean leftRight)
Purpose: setSelectionSpecial Does a click in the cell based on the result of invoking getCellPosition on the jctable. |
protected void |
CFComboBox.setTextValue(boolean performVerification)
Purpose: setTextValue |
protected void |
CFJCTable.setTextValue(com.rational.test.ft.object.interfaces.TestObject jctable,
int row,
int col,
java.lang.String text)
Purpose: set text value of cell |
static Tree |
CFMenuBar.staticExtractMenuItems(java.lang.Object obj,
int level)
Note: This method is used by the RDDGUIUtilities.java
|
static Tree |
CFDotNetMenuBar.staticExtractMenuItems(java.lang.Object obj,
int level)
Note: This method is used by the RDDGUIUtilities.java
|
protected void |
CFComponent.verifyClipboardToFile()
Purpose: verifyClipboardToFile |
protected void |
CFComponent.verifyFileToFile(boolean text)
Purpose: verifyFileToFile |
protected void |
CFMenuBar.verifyMenuBar(java.lang.Object anObj,
java.lang.String menuItemPath,
java.lang.String status,
boolean fuzzy)
Purpose: Verify the existance of a path and verify it's status |
protected void |
CFMenuBar.verifyMenuItem()
Purpose: Verify of existance of the provided path exactly
Verify whether the status of the menuitem matches the provided status (optional parameter) |
protected void |
CFComponent.verifyMenuItem(boolean fuzzy)
perform actions for keywords verifyMenuItem and verifyMenuItemContains
|
protected void |
CFMenuBar.verifyMenuItemContains()
Purpose: Verify of existance of the provided path non-exactly
Verify whether the status of the menuitem matches the provided status (optional parameter) |
protected void |
CFComponent.verifyObjectDataToFile()
Purpose: verifyObjectDataToFile |
protected void |
CFMenuBar.verifyPopupMenu()
Purpose: Verify the complete status of the current popup menu with a benchmark file.
|
protected void |
CFComponent.verifyPropertyContains()
Purpose: verifyPropertyContains |
protected void |
CFComponent.verifyPropertyToFile(boolean array)
Purpose: verifyArrayPropertyToFile/verifyPropertyToFile |
protected void |
CFComboBox.verifySelected()
Purpose: |
protected void |
CFTree.verifyTreeContains()
Purpose: Verify the existence of a node in a tree. |
protected void |
CFComponent.verifyValueContains()
Purpose: verifyValueContains |
protected void |
CFComponent.verifyValues()
Purpose: verifyValues, verifyValuesIgnoreCase, verifyValueEquals |
Modifier and Type | Method and Description |
---|---|
protected java.util.List |
CFList.captureObjectData(com.rational.test.ft.object.interfaces.TestObject guiObj)
Override default CFList.captureObjectData for certain SAS-specific cases.
|
protected java.lang.String |
CFList.convertObjectValueToString(java.lang.Object value)
Overrides CFComponent.converObjectValueToString to handle SAS-specific .NET classes.
|
protected java.lang.Object |
CFJCTreeTable.getCell(com.rational.test.ft.object.interfaces.TestObject jctable,
int row,
int col)
Purpose: get a cell based on row and col, uses 'getCells' method |
Modifier and Type | Method and Description |
---|---|
protected void |
CFFlexTable.actionClickColumnLabel(com.rational.test.ft.object.interfaces.GuiTestObject guiObj,
int col,
int yoffset)
overrides CFTable.actionClickColumnLabel for Flex support
Note: the parameter yoffset can not be supported here |
protected void |
CFFlexTable.actionLocalSelectCellTextSpecial(com.rational.test.ft.object.interfaces.GuiTestObject guiObj,
int row,
int col,
java.lang.String rowval,
java.lang.String column,
boolean control,
boolean shift,
boolean leftRight)
Override that of its superclass CFTable
Note: Flex table does not extend from GuiSubitemTestObject, but from FlexDataGridTestObject |
protected void |
CFFlexTable.actionVerifyCellEditable(com.rational.test.ft.object.interfaces.GuiTestObject guiObj,
int row,
int col,
boolean verifyFlag)
Override that of its superclass CFTable
Note: For Flex Table, property editable is applied to all table, so parameter row and col will have no effect here. |
protected java.util.List |
CFFlexTable.captureObjectData(com.rational.test.ft.object.interfaces.TestObject table) |
protected java.util.List |
CFFlexPageTabList.captureObjectData(com.rational.test.ft.object.interfaces.TestObject guiObj)
Overrides its super for Flex TabControl.
|
protected java.util.List |
CFFlexList.captureObjectData(com.rational.test.ft.object.interfaces.TestObject guiObj)
Note: Override the method of its superclass CFList, support Flex List
|
protected void |
CFFlexPageTabList.commandWithOneParam()
Overrides the superclass to execute ClickTab,MakeSelection,SelectTab,SelectTab and SelectTabIndex
on a FLEX PageTabList component (FlexToggleButtonBar).
|
protected void |
CFFlexTable.doActionClick(com.rational.test.ft.object.interfaces.GuiSubitemTestObject guiObj,
int row,
int col,
java.lang.String rowval,
java.lang.String colval)
This method override that of superclass CFTable.
|
protected void |
CFFlexTree.doDoubleClick(com.rational.test.ft.object.interfaces.TestObject testObjct,
com.rational.test.ft.script.List path)
Note: It seems that double click has no effect on a flex tree node.
|
protected void |
CFFlexTree.doExpand(com.rational.test.ft.object.interfaces.TestObject testObjct,
com.rational.test.ft.script.List path,
boolean expand) |
protected Tree |
CFFlexMenuBar.extractMenuItems(java.lang.Object obj,
int level)
Note: Overrides the superclass to extract a menu hierarchy from a FlexMenuBarTestObject. |
protected java.lang.String |
CFFlexPageTabList.getAutomationNameOfMatchedTab(com.rational.test.ft.object.interfaces.flex.FlexObjectTestObject guiObj,
java.lang.String tabText,
boolean exact)
get the item which property 'label' matches tabText, and return its automationName with which RFT can perform right actions.
|
protected java.lang.Object |
CFFlexTable.getCell(com.rational.test.ft.object.interfaces.TestObject tableObject,
int row,
int col)
Purpose: overrides the mehod in its superclass CFTable |
protected int |
CFFlexTable.getColi(boolean fuzzy,
java.lang.String column,
com.rational.test.ft.object.interfaces.GuiTestObject guiObj)
Purpose: overrides CFTable.getColi. |
protected java.util.List |
CFFlexComboBox.getItems(com.rational.test.ft.object.interfaces.TestObject guiObj)
Purpose: extract items from a ComboBox object. |
protected java.lang.String |
CFFlexList.getListItem(com.rational.test.ft.object.interfaces.GuiTestObject guiObj,
int index)
Note: Override the method of its superclass CFList |
protected int |
CFFlexTable.getNumColumns(com.rational.test.ft.object.interfaces.TestObject flexTable)
Purpose: overrides CFTable.getNumColumns, gets number of columns in FLEX table |
protected int |
CFFlexTable.getNumRows(com.rational.test.ft.object.interfaces.TestObject flexTable)
Purpose: overrides CFTable.getNumRows, gets number of rows in FLEX tables. |
protected boolean |
CFFlexTree.isNodeSelected(com.rational.test.ft.object.interfaces.GuiSubitemTestObject guiObj,
com.rational.test.ft.script.List testPathList) |
protected void |
CFFlexList.modifiedDoubleClickTextItem(com.rational.test.ft.script.MouseModifiers mbuttons,
com.rational.test.ft.object.interfaces.GuiSubitemTestObject guiObj,
java.lang.String param)
Note: Override the method of its superclass CFList, as FlexListTestObject API does not provide method to double click on text of list, we have to search the item and get the position of this text, then perform a double click on that point. |
protected java.lang.String |
CFFlexList.performDoubleClick(com.rational.test.ft.object.interfaces.GuiSubitemTestObject guiObj,
java.lang.String param,
boolean exact,
com.rational.test.ft.script.MouseModifiers mbuttons)
Note: Override the method of its superclass CFList, as Flex list test object does not support doubleClick(atText()), so we have to find the relative position of the item we want to click at, then call doubleClick(atPoint()) |
protected void |
CFFlexMenuBar.selectMenuBar(com.rational.test.ft.object.interfaces.TestObject menuObj,
java.lang.String menuItemPath,
boolean fuzzy,
boolean verify)
Note: Overrides the superclass
|
protected void |
CFFlexComboBox.setTextValue(boolean performVerification)
Purpose: setTextValue This method override that of it's superclass CFComboBox, implemented special for FLEX ComboBox. |
static Tree |
CFFlexMenuBar.staticExtractMenuItems(java.lang.Object obj,
int level)
Note: This method is used by the RDDGUIUtilities.java
|
protected void |
CFFlexMenuBar.verifyMenuBar(java.lang.Object anObj,
java.lang.String menuItemPath,
java.lang.String status,
boolean fuzzy)
Note: Overrides the superclass to handle a FlexMenuBarTestObject. |
protected void |
CFFlexComboBox.verifySelected()
Purpose:
|
Modifier and Type | Method and Description |
---|---|
protected void |
CFFlexTree.commandWithOneParam() |
protected java.lang.String |
CFFlexList.performDoubleClick(com.rational.test.ft.object.interfaces.GuiSubitemTestObject guiObj,
java.lang.String param,
boolean exact,
com.rational.test.ft.script.MouseModifiers mbuttons)
Note: Override the method of its superclass CFFlexList call the delegate's action of SAS Flex List to perform 'double click' |
protected void |
CFFlexMenuBar.selectMenuBar(com.rational.test.ft.object.interfaces.TestObject menuObj,
java.lang.String menuItemPath,
boolean fuzzy,
boolean verify) |
Modifier and Type | Method and Description |
---|---|
protected java.util.List |
CFWinPageTabList.captureObjectData(com.rational.test.ft.object.interfaces.TestObject guiObj)
Overrides its super for DotNet TabControl.
|
protected void |
CFWinPageTabList.commandWithOneParam()
Purpose: process commands like: CLICKTAB, UNVERIFIEDCLICKTAB, SELECTTAB and MAKESELECTION |
protected Tree |
CFWinMenuBar.extractMenuItems(java.lang.Object obj,
int level)
Purpose: Extract a menu hierarchy from a TestObject; The item is for .Menubar, .Menuitem, .Menupopup. |
protected boolean |
CFWinMenuBar.isMenuBar(com.rational.test.ft.object.interfaces.TestObject menuObject) |
protected boolean |
CFWinMenuBar.isMenuItem(com.rational.test.ft.object.interfaces.TestObject menuObject) |
protected boolean |
CFWinMenuBar.isPopupMenu(com.rational.test.ft.object.interfaces.TestObject menuObject) |
protected void |
CFWinPopupMenu.selectIndex()
Note: Analyse the parameters, prepare them for executing.
|
protected void |
CFWinPopupMenu.selectIndex(com.rational.test.ft.object.interfaces.GuiSubitemTestObject menuObj,
int index) |
static Tree |
CFWinMenuBar.staticExtractMenuItems(java.lang.Object obj,
int level)
Note: This method is used by the RDDGUIUtilities.java
|
Modifier and Type | Method and Description |
---|---|
protected java.util.List |
CFWPFList.captureObjectData(com.rational.test.ft.object.interfaces.TestObject guiObj)
Note: Override the method in its super class CFList
|
protected java.util.List |
CFWPFComboBox.captureObjectData(com.rational.test.ft.object.interfaces.TestObject table)
overrides its parent to support DOTNET_WPF controls
|
protected void |
CFWPFPageTabList.commandWithOneParam()
Purpose: process commands like: CLICKTAB, UNVERIFIEDCLICKTAB, SELECTTAB and MAKESELECTION |
protected void |
CFWPFComboBox.doSelect(java.lang.String action) |
protected java.lang.String |
CFWPFList.getListItem(com.rational.test.ft.object.interfaces.GuiTestObject guiObj,
int index)
Note: Override the method in its super class CFList
|
protected boolean |
CFWPFMenuBar.isMenuBar(com.rational.test.ft.object.interfaces.TestObject menuObject) |
protected boolean |
CFWPFMenuBar.isMenuItem(com.rational.test.ft.object.interfaces.TestObject menuObject) |
protected boolean |
CFWPFTree.isNodeSelected(com.rational.test.ft.object.interfaces.GuiSubitemTestObject guiObj,
com.rational.test.ft.script.List testPathList) |
protected boolean |
CFWPFMenuBar.isPopupMenu(com.rational.test.ft.object.interfaces.TestObject menuObject) |
protected void |
CFWPFSlider.performScorll() |
protected void |
CFWPFPopupMenu.selectIndex()
Note: Analyse the parameters, prepare them for executing.
|
protected void |
CFWPFPopupMenu.selectIndex(com.rational.test.ft.object.interfaces.GuiSubitemTestObject menuObj,
int index) |
protected void |
CFWPFComboBox.setTextValue(boolean performVerification)
Overrides its parent to support DOTNET_WPF
|
static Tree |
CFWPFMenuBar.staticExtractMenuItems(java.lang.Object obj,
int level)
Note: This method is used by the RDDGUIUtilities.java
|
protected void |
CFWPFComboBox.verifySelected()
Overrides its parent to perform action 'VerifySelected' on DOTNET_WPF controls |
Modifier and Type | Method and Description |
---|---|
static void |
Headers.loadHeaders(RuntimeDataInterface runtime,
java.lang.String headersFile,
java.lang.String method,
java.lang.String type) |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
Robot.getClipboard(java.awt.datatransfer.DataFlavor flavor)
Get content from system clip-board.
|
static java.awt.Point |
Robot.getMouseLocation()
get mouse screen location.
|
static void |
Robot.mouseHover(java.awt.Point point,
int millisStay)
Move the mouse cursor to the specified Point, stay for a period and move out
|
Modifier and Type | Method and Description |
---|---|
protected void |
CFComponent._maximize()
Maximize the current window
|
protected void |
CFComponent._minimize()
Minimize the current window
|
protected void |
CFComponent._restore()
Perform the "restore" action on the current window.
|
protected void |
CFComponent._setPosition(java.awt.Point position)
Subclass should give its own implementation
|
protected void |
CFComponent._setSize(java.awt.Dimension size)
Subclass should give its own implementation
|
protected void |
CFComponent.action_getGuiImage() |
protected void |
CFComponent.action_verifyGuiImageToFile() |
protected void |
CFHTMLTable.actionCaptureRangeToFile(java.lang.String row,
java.lang.String column,
int rows,
int columns,
boolean fuzzy,
java.lang.String filename,
java.lang.String encoding) |
protected void |
CFHTMLTable.actionVerify(int row,
int col,
java.lang.String column,
boolean fuzzy,
java.lang.String val) |
protected java.util.Collection<java.lang.String> |
CFComponent.captureObjectData() |
protected boolean |
DCDriverCommand.checkGUIExistence(boolean expectedExist,
java.lang.String mapNam,
java.lang.String window,
java.lang.String component,
int timeoutInSeconds) |
protected void |
CFComponent.closeWindow()
Close the current window
|
protected void |
CFHTMLTable.commandAssignCellTextRow(boolean fuzzy) |
protected void |
CFHTMLTable.commandCaptureRangeToFile(boolean fuzzy) |
protected void |
CFHTMLTable.commandClickFind(boolean fuzzy) |
protected void |
CFHTMLTable.commandVerifyCellTextFind(boolean fuzzy) |
protected void |
CFHTMLTable.commandVerifyCellValue() |
protected void |
CFHTMLTable.commandVerifyColumnLabel() |
protected void |
CFHTMLTable.commandVerifyFuzzyCellText(boolean benchFuzzy) |
protected void |
CFComponent.componentClick()
Purpose: componentClick |
protected void |
CFHTMLDocument.doBodyCommands()
Purpose: Handle keywords related to body, as following
CaptureBodySourceToFile CaptureBodyTextToFile VerifyBodySource VerifyBodyText |
protected void |
CFHTMLDocument.doLinkCommands()
Purpose: Handle keywords related to link, as following
ClickLink ClickLinkMatching ClickLinkBeginning ClickLinkContaining |
protected boolean |
CFComponent.exist() |
java.util.List<?> |
SeleniumGUIUtilities.extractListItems(java.lang.Object obj,
java.lang.String countProp,
java.lang.String itemProp) |
Tree |
SeleniumGUIUtilities.extractMenuBarItems(java.lang.Object obj) |
Tree |
SeleniumGUIUtilities.extractMenuItems(java.lang.Object obj) |
java.lang.String |
DocumentParser.getBrowserClientScreenPosition(com.thoughtworks.selenium.Selenium selenium) |
java.lang.String |
DocumentParser.getClientScrollInfo(com.thoughtworks.selenium.Selenium selenium) |
java.lang.String |
SeleniumGUIUtilities.getListItem(java.lang.Object obj,
int i,
java.lang.String itemProp) |
protected java.util.List<java.lang.String> |
CFHTMLTable.getObjectData(java.lang.String row,
java.lang.String column,
int rows,
int columns,
boolean fuzzy) |
protected java.util.Map<java.lang.String,java.lang.Object> |
CFComponent.getProperties() |
protected java.lang.Object |
CFComponent.getPropertyObject(java.lang.String propertyName) |
protected java.awt.Rectangle |
CFHTMLTable.getTableCellLocation(int row,
int column) |
protected void |
DCDriverCommand.init()
Convert the general GUIUtilities to a specific one.
|
protected void |
CFComponent.inputKeystrokes()
Purpose: inputKeys and inputCharacters |
protected void |
CFComponent.maximize() |
protected void |
CFComponent.minimize() |
protected java.lang.String |
CFHTMLTable.paramRowIndexVariable(java.util.Iterator iter)
Note: Consume one object from parameter 'iter'.
This object is a variable name, it will be initialized to "". |
protected boolean |
CFComponent.performHoverMouse(java.awt.Point point,
int milliseconds) |
protected void |
CFComponent.restore() |
protected void |
CFComponent.setPosition() |
protected boolean |
CFHTMLTable.setVariableLogWhenFail(java.lang.String variable,
java.lang.String value)
Note: This method is used to store a value to a SAFS Variable.
If it fails to do that, it will set status code to failure and log failed message and return false. |
protected void |
CFComponent.verifyProperty()
Purpose: verifyProperty |
Modifier and Type | Method and Description |
---|---|
void |
WDSPC.initializeSelenium(java.lang.String browser,
java.lang.String url) |
Modifier and Type | Class and Description |
---|---|
class |
JSException
History:
NOV 27, 2014 (Lei Wang) Initial release. |
Modifier and Type | Method and Description |
---|---|
void |
CFComponent._setFocus() |
protected void |
CFComponent._setPosition(java.awt.Point position)
Subclass should give its own implementation
|
protected void |
CFComponent._setSize(java.awt.Dimension size)
Subclass should give its own implementation
|
protected void |
CFComponent.action_ComputedStyle(boolean verification)
Purpose: verifyComputedStyle() |
protected java.util.Collection<java.lang.String> |
CFComponent.captureObjectData()
Sub class may override this method to get its own data.
|
protected java.util.Collection<java.lang.String> |
CFComboBox.captureObjectData() |
protected boolean |
DCDriverCommand.checkGUIExistence(boolean expectedExist,
java.lang.String mapNam,
java.lang.String window,
java.lang.String component,
int timeoutInSeconds) |
protected void |
CFComponent.componentClick()
Purpose: componentClick |
protected void |
CFComponent.dragTo()
perform dragTo from component1 to component2 with offset.
|
protected void |
CFComponent.executeScript()
Purpose: executeScript |
protected boolean |
CFComponent.exist() |
java.util.List |
WebDriverGUIUtilities.extractListItems(java.lang.Object obj,
java.lang.String countProp,
java.lang.String itemProp) |
Tree |
WebDriverGUIUtilities.extractMenuBarItems(java.lang.Object obj) |
Tree |
WebDriverGUIUtilities.extractMenuItems(java.lang.Object obj) |
java.lang.String |
WebDriverGUIUtilities.getListItem(java.lang.Object obj,
int i,
java.lang.String itemProp) |
protected java.util.Map<java.lang.String,java.lang.Object> |
CFComponent.getProperties() |
protected java.lang.Object |
CFComponent.getPropertyObject(java.lang.String propertyName) |
protected java.awt.image.BufferedImage |
CFComponent.getRectangleImage(java.awt.Rectangle imageRect) |
protected boolean |
WDTestStepProcessor.getWinAndCompGUIObjects()
Called from superclass to find the windowObject and compObjects WebElements for GUI commands.
|
protected void |
DCDriverCommand.init()
Convert the general GUIUtilities to a specific one.
|
protected void |
CFComponent.inputKeystrokes()
handles InputKeys and InputCharacters.
|
protected void |
CFComponent.performDrag()
perform LeftDrag or RightDrag on component moving from (x1,y1) to (x2,y2).
|
protected boolean |
CFComponent.performHoverMouse(java.awt.Point point,
int milliseconds) |
int |
WebDriverGUIUtilities.waitForObject(java.lang.String appMapName,
java.lang.String windowName,
java.lang.String compName,
long secTimeout)
Uses the Application Map caching mechanism provided by the superclass.
|
int |
WebDriverGUIUtilities.waitForPropertyStatus(java.lang.String windowName,
java.lang.String compName,
java.lang.String propertyName,
java.lang.String expectedValue,
long secTimeout,
boolean b_caseInsensitive,
boolean propertyStatus)
Wait for the property matching/gone with the expected value.
|
Modifier and Type | Class and Description |
---|---|
class |
ComboBoxException
History:
DEC 18, 2013 (Lei Wang) Initial release. |
class |
SeleniumPlusException
History:
DEC 18, 2013 (Lei Wang) Initial release. |
Modifier and Type | Method and Description |
---|---|
static java.util.List<GenericProcessMonitor.ProcessInfo> |
WDLibrary.killChromeDriver(java.lang.String host)
Kill the process 'chromedriver.exe'.
|
static java.util.List<GenericProcessMonitor.ProcessInfo> |
WDLibrary.killIEDriverServer(java.lang.String host)
Kill the process 'IEDriverServer.exe'.
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection |
STAFHelperCompatibleInterface.getRunningEngineNames(java.lang.String machine)
Get collection of running Engine names.
|
java.util.Collection |
STAFHelperCompatible3.getRunningEngineNames(java.lang.String machine)
Get collection of running Engine names.
|
java.util.Collection |
STAFHelperCompatible2.getRunningEngineNames(java.lang.String machine)
Get collection of running Engine names.
|
java.util.List<java.lang.String> |
STAFHelperCompatibleInterface.getServiceEvents(java.lang.String machine,
java.lang.String servicename)
According to the service name, we try to get all events related to it.
|
java.util.List<java.lang.String> |
STAFHelperCompatible3.getServiceEvents(java.lang.String machine,
java.lang.String servicename) |
java.util.List<java.lang.String> |
STAFHelperCompatible2.getServiceEvents(java.lang.String machine,
java.lang.String servicename) |
static void |
STAFProcessHelpers.shutdownDebugLog()
Attempt to shutdown the SAFS Debug Log, if any.
|
static void |
STAFProcessHelpers.shutdownSTAFProc()
Attempt to shutdown STAF.
|
Modifier and Type | Method and Description |
---|---|
static void |
EmbeddedHandles.registerHandle(java.lang.String handleId,
EmbeddedHandle ihandle) |
static void |
EmbeddedHandles.registerService(java.lang.String handleId,
java.lang.String serviceId,
EmbeddedServiceHandle ihandle) |
Modifier and Type | Class and Description |
---|---|
class |
STAFLogException
This exception is thrown when a STAF-related logging error happens.
|
Modifier and Type | Method and Description |
---|---|
void |
Fifo.in(T object)
Put an object into the FIFO if the FIFO is not full.
|
T |
Fifo.out(int timeout)
Get an object from the FIFO if it is not empty.
If the FIFO is empty, this method may throw an Exception or wait for a certain-time or wait for ever, which depends on the timeout value. |
Modifier and Type | Method and Description |
---|---|
static java.io.File |
FileUtilities.deduceBenchFile(java.lang.String filename,
RuntimeDataInterface data)
Deduce the absolute full path bench-relative file.
|
static java.io.File |
FileUtilities.deduceDatapoolFile(java.lang.String filename,
RuntimeDataInterface data)
Deduce the absolute full path datapool-relative file.
|
static java.io.File |
FileUtilities.deduceDiffFile(java.lang.String filename,
RuntimeDataInterface data)
Deduce the absolute full path Diff-relative file.
|
static java.io.File |
FileUtilities.deduceFile(java.lang.String filename,
int type,
RuntimeDataInterface data)
Deduce the absolute full path to a project-relative, test-relative, bench-relative, diff-relative filename.
|
static java.io.File |
FileUtilities.deduceProjectFile(java.lang.String filename,
RuntimeDataInterface data)
Deduce the absolute full path to a project-relative file.
|
static java.io.File |
FileUtilities.deduceTestFile(java.lang.String filename,
RuntimeDataInterface data)
Deduce the absolute full path test-relative file.
|
static FileUtilities.FileAttribute |
FileUtilities.getFileAttribute(java.io.File file) |
static boolean |
FileUtilities.isArchive(java.io.File file)
Return true, if the file has a suffix as one of
FileUtilities.ARCHIVEFILESUFFIX . |
static boolean |
FileUtilities.isArchive(java.lang.String filename)
Return true, if the file has a suffix as one of
FileUtilities.ARCHIVEFILESUFFIX . |
static boolean |
FileUtilities.isReadOnly(java.io.File file)
If file can be read and can NOT be wrote, then return true.
|
static boolean |
FileUtilities.setFileAttribute(FileUtilities.FileAttribute attribute,
java.io.File file) |
Constructor and Description |
---|
FileAttributeFilter(FileUtilities.FileAttribute attribute) |
FileAttributeFilter(int attributes) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
RuntimeDataInterface.getAppMapItem(java.lang.String appMapId,
java.lang.String sectionName,
java.lang.String itemName)
Retrieve the resolved value of an item stored in the App Map chain (SAFSMAPS).
|
java.util.Collection |
CoreInterface.getAppMapNames() |
java.lang.String |
CoreInterface.getLogName() |
void |
CoreInterface.getSAFSTestRecordData(java.lang.String hookid,
TestRecordData data) |
java.lang.String |
RuntimeDataInterface.getVariable(java.lang.String varName)
Retrieve the current runtime value of the global variable (SAFSVARS).
|
void |
CoreInterface.setSAFSTestRecordData(java.lang.String hookid,
TestRecordData data) |
boolean |
RuntimeDataInterface.setVariable(java.lang.String varName,
java.lang.String varValue)
Set a new runtime value of a global variable (SAFSVARS).
|
static java.util.List<GenericProcessMonitor.ProcessInfo> |
GenericProcessMonitor.shutdownProcess(java.lang.String host,
GenericProcessMonitor.WQLSearchCondition condition)
Attempt to forcefully kill processes on a certain host according to a WQL search condition.
On Windows we are using wmic.exe. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
JSAFSDriver.checkSAFSMonitorStatus()
Programmatically conform to user-initiated PAUSE, RUN, STEP, STEP RETRY input from SAFS Monitor.
|
java.lang.String |
EmbeddedHookSTAFHelper.getNextHookTestEvent(java.lang.String process_name,
java.lang.String trd_name)
The "engine" waits until the _engineRun flag is true and then begins execution.
|
int |
EmbeddedHookSTAFHelper.postNextHookTestEvent(java.lang.String process_name,
java.lang.String trd_root,
TestRecordData trd)
Sets _engineRun = true to kickoff the "engine" execution.
|
void |
EmbeddedHookSTAFHelper.setHookTestResultsWTimeout(java.lang.String process_name,
long timeoutseconds)
Prevents the posting of STAF EVENTS (RESULTS and DONE) events since everything
is local in the same JVM process.
|
void |
EmbeddedHookSTAFHelper.setSAFSTestRecordData(java.lang.String trd_root,
TestRecordData trd)
Sets the local driver/engine shared _data object and sets the TRD_HOOK data per the superclass.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AutoItComponent.CFComponent._close()
Override the execution method '_close()' of
keyword 'WindowFunctions.CLOSEWINDOW_KEYWORD'
|
protected void |
AutoItComponent.CFComponent._maximize()
Purpose: maximize |
protected void |
AutoItComponent.CFComponent._minimize()
Purpose: minimize |
protected void |
AutoItComponent.CFComponent._restore()
Purpose: restore |
protected void |
AutoItComponent.CFComponent._setPosition(java.awt.Point position) |
protected void |
AutoItComponent.CFComponent._setSize(java.awt.Dimension size) |
protected void |
AutoItComponent.CFComponent.componentClick()
Override componentClick() to deal with groups of CLICK keywords.
|
protected java.io.File |
GenericEngine.deduceBenchFile(java.lang.String filename)
Deduce the absolute full path bench file name.
|
protected java.io.File |
GenericEngine.deduceProjectFile(java.lang.String filename)
Deduce the absolute full path to a project-relative file.
|
protected java.io.File |
GenericEngine.deduceTestFile(java.lang.String filename)
Deduce the absolute full path test file name.
|
java.lang.String |
GenericEngine.getAppMapItem(java.lang.String appMapId,
java.lang.String sectionName,
java.lang.String itemName) |
protected void |
TIDComponent.CFComponent.getSaveTextFromGUI()
Run two keywords: GetTextFromGUI and SaveTextFromGUI
|
java.lang.String |
GenericEngine.getVariable(java.lang.String var) |
protected boolean |
TIDComponent.RESTComponent.handleAuth(Service service,
java.lang.String authFile)
Handle the authentication/authorization information, and set it to
Service .Currently it converts an XML file to Auth object and set it to Service. |
protected void |
TIDComponent.RESTComponent.handleResponse(java.lang.String sessionID,
Response response,
java.lang.String responseIdVar)
Write the details of response and request into the debug log.
Store the Response object into a Map with a generated ID, which will be saved to the variable responseIdVar. |
protected void |
TIDDriverRestCommands.RESTDriverCommand.init() |
protected boolean |
AutoItComponent.CFComponent.performHoverMouse(java.awt.Point offset,
int milliSeconds)
Override the execution method 'performHoverMouse()' of
keyword 'ComponentFunction.HOVERMOUSE'
|
boolean |
GenericEngine.setVariable(java.lang.String var,
java.lang.String val) |
protected long |
TIDDriverCommands.takeScreenShot() |
protected void |
TIDComponent.CFComponent.verifyFileToFile(boolean text)
Purpose: verifyFileToFile |
protected void |
TIDComponent.CFComponent.verifyValues()
VerifyValues, VerifyValueEquals, VerifyValuesNotEqual, VerifyValuesIgnoreCase,
VerifyValueContains, VerifyValueContainsIgnoreCase,
VerifyValueDoesNotContain
|
protected boolean |
AutoItComponent.waitForGUI(AutoItRs rs)
Prerequisite:
AutoItComponent.it and GenericEngine.testRecordData should be initialized. |
Modifier and Type | Method and Description |
---|---|
void |
Mailer.send(java.util.List<java.lang.String> recipients,
java.lang.String subject,
java.util.Map<java.lang.Integer,Mailer.MimeContent> contents,
java.util.Map<java.lang.String,java.lang.String> attchments_alias)
Mail a set of objects, the content's type is defined by MimeType.
It will also send attachments provided by the last parameter 'attchments_alias'. |
void |
Mailer.send(java.util.List<java.lang.String> recipients,
java.lang.String subject,
java.lang.Object body,
Mailer.MimeType type)
Mail object content, the content's type is defined by parameter format.
|
void |
Mailer.send(java.util.List<java.lang.String> recipients,
java.lang.String subject,
java.lang.Object body,
Mailer.MimeType type,
java.util.List<java.lang.String> attachments)
Mail object, the content's type is defined by parameter format.
It will also send attachments provided by the last parameter 'attachments'. |
void |
Mailer.send(java.util.List<java.lang.String> recipients,
java.lang.String subject,
java.lang.Object body,
Mailer.MimeType type,
java.util.Map<java.lang.String,java.lang.String> attchments_alias)
Mail an object, the content's type is defined by MimeType.
It will also send attachments provided by the last parameter 'attchments_alias'. |
void |
Mailer.send(java.util.List<java.lang.String> recipients,
java.lang.String subject,
java.lang.Object body,
Mailer.MimeType type,
java.lang.String attachment)
Mail object, the content's type is defined by parameter format.
It will also send attachments provided by the last parameter 'attachment'. |
void |
Mailer.send(java.util.List<java.lang.String> recipients,
java.lang.String subject,
java.lang.String body)
Mail text message.
|
void |
Mailer.send(java.util.Map<javax.mail.Message.RecipientType,java.util.List<java.lang.String>> type_recipients,
java.lang.String subject,
java.util.Map<java.lang.Integer,Mailer.MimeContent> contents,
java.util.Map<java.lang.String,java.lang.String> attchments_alias)
Mail a set of objects, the content's type is defined by MimeType.
It will also send attachments provided by the last parameter 'attchments_alias'. |
protected void |
Mailer.send(javax.mail.internet.MimeMessage message)
Before calling this method, the property "mail.transport.protocol" should be ready,
refer to
Mailer.prepareProperties(String, int, Protocol) . |
Modifier and Type | Method and Description |
---|---|
java.awt.Rectangle |
OCREngine.findTextRectFromImage(java.lang.String searchtext,
int index,
java.awt.image.BufferedImage image,
java.lang.String stdlangId,
java.awt.Rectangle subarea,
float zoom) |
static OCREngine |
OCREngine.getOCREngine(java.lang.String ocrNameKey,
STAFHelper staf)
Note:
This method first try to get OCR engine corresponding to ocrNameKey; If not found, try to get the OCR engine defined by STAF variable STAF_OCR_ENGINE_VAR_NAME; If there is no OCR engine defined in STAF variable, then use the default engine defined by OCR_DEFAULT_ENGINE_KEY. |
java.lang.String |
OCREngine.imageToText(java.awt.image.BufferedImage image,
java.lang.String langId,
java.awt.Rectangle subarea) |
java.lang.String |
OCREngine.imageToText(java.awt.image.BufferedImage image,
java.lang.String langId,
java.awt.Rectangle subarea,
float zoom)
Convert buffered image to text using OCR technology.
|
protected java.lang.String |
OCREngine.runCommandLine(java.lang.String cmdline) |
java.lang.String |
OCREngine.storedImageToText(java.lang.String imagefile,
java.lang.String langId,
java.awt.Rectangle subarea) |
java.lang.String |
OCREngine.storedImageToText(java.lang.String imagefile,
java.lang.String langId,
java.awt.Rectangle subarea,
float zoom)
Convert an image file to text using OCR technology.
|
java.awt.image.BufferedImage |
OCREngine.zoomImageWithType(java.awt.image.BufferedImage image,
int imageType,
java.awt.Rectangle subarea,
float zoomValue) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
GOCREngine.imageToText(java.awt.image.BufferedImage image,
java.lang.String langId,
java.awt.Rectangle subarea,
float zoom) |
Modifier and Type | Method and Description |
---|---|
java.awt.Rectangle |
TesseractOCREngine.findTextRectFromImage(java.lang.String searchtext,
int index,
java.awt.image.BufferedImage image,
java.lang.String stdlangId,
java.awt.Rectangle subarea,
float zoom)
Find text from BufferedImage, and return its area in the BufferedImage.
|
java.lang.String |
TesseractOCREngine.imageToText(java.awt.image.BufferedImage image,
java.lang.String langId,
java.awt.Rectangle subarea,
float zoom) |
Modifier and Type | Method and Description |
---|---|
static java.lang.Integer |
StringUtilities.convertToInteger(java.lang.String value) |
static boolean |
StringUtilities.getBoolean(java.util.Map<?,?> map,
java.lang.String key)
Get a boolean value from the map according to the key.
If it doesn't exist in map, the SAFSException will be thrown out. |
static double |
StringUtilities.getDouble(java.util.Map<?,?> map,
java.lang.String key)
Get a double value from the map according to the key.
If it doesn't exist in map, the SAFSException will be thrown out. |
static float |
StringUtilities.getFloat(java.util.Map<?,?> map,
java.lang.String key)
Get a float value from the map according to the key.
If it doesn't exist in map, the SAFSException will be thrown out. |
static int |
StringUtilities.getIndex(java.lang.String index)
Parse a string to get an integer index.
|
static int |
StringUtilities.getIndex(java.lang.String index,
int baseIndex)
Parse a string to get an integer index.
|
static int |
StringUtilities.getInteger(java.util.Map<?,?> map,
java.lang.String key)
Get an int value from the map according to the key.
If it doesn't exist in map, the SAFSException will be thrown out. |
static long |
StringUtilities.getLong(java.util.Map<?,?> map,
java.lang.String key)
Get a long value from the map according to the key.
If it doesn't exist in map, the SAFSException will be thrown out. |
static java.lang.Number |
StringUtilities.getNumber(java.util.Map<?,?> map,
java.lang.String key,
java.lang.Class<?> numberClass)
Warn: If the key can't be found in the map object, a SAFSException will be thrown out
|
static java.lang.String |
StringUtilities.getString(java.util.Map<?,?> map,
java.lang.String key)
Get a String value from the map according to the key.
If it doesn't exist in map, the SAFSException will be thrown out. |
static java.lang.Object |
StringUtilities.getValue(java.util.Map<?,?> map,
java.lang.String key)
Get a Object value from the map according to the key.
If it doesn't exist in map, the SAFSException will be thrown out. |
Copyright © SAS Institute. All Rights Reserved.