com.appperfect.devcommon.script.flexelement
Interface FlexDisplayObject

All Superinterfaces:
IScript
All Known Subinterfaces:
FlexAccordion, FlexButton, FlexChartLegend, FlexChartSeries, FlexColorPicker, FlexComboBase, FlexComboBox, FlexContainer, FlexDataGrid, FlexDateChooser, FlexDateField, FlexDividedBox, FlexLabel, FlexList, FlexListBase, FlexMenu, FlexMenuBar, FlexNavigationBar, FlexNumericStepper, FlexObject, FlexPopUpButton, FlexScrollBar, FlexScrollBase, FlexSlider, FlexTabNavigator, FlexTextArea, FlexTree, FlexViewStack

public interface FlexDisplayObject
extends IScript

FlexDisplayObject, FlexListLabel elements can be constructed using create API of IScriptEngine interface. The return value is an instance of FlexDisplayObject interface. Once FlexDisplayObject is created, you can play events on it.

See Also:
FlexObject, FlexDisplayObject

Method Summary
 void addAttribute(java.lang.String sAttributeName, java.lang.String sAttributeValue, boolean bIgnore, boolean bValidate, java.lang.String testParameterName)
 Each Web or Window Element has a set of attributes, which are used to find the desired element during execution This method is used to add a attribute to the event
 boolean click(int keyModifier)
 To simulate click event on flex element
 boolean mouseMove(int localX, int localY, int keyModifier)
 To simulate mouse move event on flex element
 void setBreakPoint(boolean bBreakPoint)
 This method should be called to set a breakpoint before executing task.
 void setIgnored(boolean bIgnore)
 This method should be called to ignore a task during execution.
 void setImagePath(java.lang.String sImagePath)
 This is used to set the event's image path.
 void setThinkTime(int iThinkTime)
 Delay in seconds before the task is actually executed.
 void setTitle(java.lang.String sTitle)
 This method is used to set the event's title
 
Methods inherited from interface com.appperfect.devcommon.script.IScript
getReasonForFailure, isIgnored, isTaskSuccessful, isTaskTimedOut, setReasonForFailure, setTaskSuccessful, setTaskTimedout, setTimeout
 

Method Detail

addAttribute

void addAttribute(java.lang.String sAttributeName,
                  java.lang.String sAttributeValue,
                  boolean bIgnore,
                  boolean bValidate,
                  java.lang.String testParameterName)
Each Web or Window Element has a set of attributes, which are used to find the desired element during execution This method is used to add a attribute to the event

Parameters:
sAttributeName - name of the attribute
sAttributeValue - value of the attribute
bIgnore - true if this attribute should be ignored; false otherwise.
bValidate - true if this attribute should be validated; false otherwise.
testParameterName - name of the TestParameter if the attribute value is parameterized

click

boolean click(int keyModifier)
To simulate click event on flex element

Parameters:
keyModifier -
Returns:
true if success, false otherwise

mouseMove

boolean mouseMove(int localX,
                  int localY,
                  int keyModifier)
To simulate mouse move event on flex element

Parameters:
localX -
localY -
keyModifier -
Returns:
true if success, false otherwise

setBreakPoint

void setBreakPoint(boolean bBreakPoint)
This method should be called to set a breakpoint before executing task. In case breakpoint is set, test will wait for user's interruption before moving forward.

Parameters:
bBreakPoint - true if breakpoint should be set; false otherwise.

setIgnored

void setIgnored(boolean bIgnore)
This method should be called to ignore a task during execution.

Specified by:
setIgnored in interface IScript
Parameters:
bIgnore - true if this task should be ignored; false otherwise.

setImagePath

void setImagePath(java.lang.String sImagePath)
This is used to set the event's image path.

Parameters:
sImagePath - file path of the event's image saved on disk.

setThinkTime

void setThinkTime(int iThinkTime)
Delay in seconds before the task is actually executed.

Specified by:
setThinkTime in interface IScript
Parameters:
iThinkTime - no of seconds the engine waits before the task is actually executed.

setTitle

void setTitle(java.lang.String sTitle)
This method is used to set the event's title

Parameters:
sTitle - title of the event


Copyright © 2003-2016 AppPerfect Corporation. All Rights Reserved.