|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IWindow
A IWindow object which can be executed by
IScriptEngine.executeWindow(window)
method.
An object of this class is created using createWindow
method
of IScriptEngine. Once the object is created, all its properties should be
initialized to proper values and then executed using IScriptEngine.
IScriptEngine
,
IScriptEngine.createWindow(int
id, String sWindowTitle, boolean bDialog)
,
IScriptEngine.executeWindow(IWindow
window)
Method Summary | |
---|---|
void |
addAttribute(java.lang.String sAttributeName,
java.lang.String sAttributeValue,
boolean bIgnore,
boolean bValidate,
java.lang.String testParameterName)
Each Window has a set of attributes, which are used to find the desired window during execution This method is used to add a attribute to the window |
boolean |
assertComponentAttributeValue(int id,
java.lang.String windowClassName,
java.lang.String description,
java.lang.String attributeName,
java.lang.String attributeValue)
Once the window 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 window child components with the recorded one. |
void |
setImagePath(java.lang.String sImagePath)
This is used to set the window's image path. |
void |
setTitle(java.lang.String sTitle)
This method is used to set the window'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 |
---|
void addAttribute(java.lang.String sAttributeName, java.lang.String sAttributeValue, boolean bIgnore, boolean bValidate, java.lang.String testParameterName)
sAttributeName
- name of the attributesAttributeValue
- value of the attributebIgnore
- 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 parameterizedboolean assertComponentAttributeValue(int id, java.lang.String windowClassName, java.lang.String description, java.lang.String attributeName, java.lang.String attributeValue)
id
- id of the child component as specified in the component filewindowClassName
- native class name for the windowdescription
- 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 window's image saved on disk.void setTitle(java.lang.String sTitle)
sTitle
- title of the windowvoid 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 |