|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IFlex
A IFlex object which can be executed by
IScriptEngine.executeFlex(flex)
method.
An object of this class is created using createFlex
method
of IScriptEngine. Once the object is created, all its properties should be
initialized to proper values and then executed using IScriptEngine.
Method Summary | |
---|---|
boolean |
assertComponentAttributeValue(int id,
java.lang.String flexClassName,
java.lang.String description,
java.lang.String attributeName,
java.lang.String attributeValue)
Once the flex task is executed, the child components can be validated using this method |
IValidationResult |
getValidationResult()
Once the IUrl task is executed, detailed validation result can be fetched using this method. |
boolean |
isValidationSuccessful()
Once the IUrl task is executed, this method returns the status of the validation carried out |
void |
setBreakPoint(boolean bBreakPoint)
This method should be called to set a breakpoint before executing task. |
void |
setComponentFilePath(java.lang.String path)
This is helpful for validation purpose to match the replayed flex child components with the recorded one. |
void |
setImagePath(java.lang.String sImagePath)
This is used to set the flex's image path. |
void |
setTitle(java.lang.String sTitle)
This method is used to set the flex's title |
void |
setValidationSuccessful(boolean success)
Once the IUrl task is executed, this method can be used to set the status of validation |
Methods inherited from interface com.appperfect.devcommon.script.IScript |
---|
getReasonForFailure, isIgnored, isTaskSuccessful, isTaskTimedOut, setIgnored, setReasonForFailure, setTaskSuccessful, setTaskTimedout, setThinkTime, setTimeout |
Method Detail |
---|
boolean assertComponentAttributeValue(int id, java.lang.String flexClassName, java.lang.String description, java.lang.String attributeName, java.lang.String attributeValue)
id
- id of the child component as specified in the component fileflexClassName
- native class name for the flexdescription
- description of the validationattributeName
- name of the attributeattributeValue
- value of the attribute to validate
true
if successful false
otherwiseIValidationResult getValidationResult()
boolean isValidationSuccessful()
true
if the validation was successful;
false
otherwisevoid setBreakPoint(boolean bBreakPoint)
bBreakPoint
- true
if breakpoint should be set;
false
otherwise.void setComponentFilePath(java.lang.String path)
path
- file path of the component when this task was recorded.void setImagePath(java.lang.String sImagePath)
sImagePath
- file path of the flex's image saved on disk.void setTitle(java.lang.String sTitle)
sTitle
- title of the flexvoid setValidationSuccessful(boolean success)
success
- true
if the validation is successful;
false
otherwise
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |