|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IWindowsTest
A WindowsTest is created to represent window project in App Test.
A IWindowsTest
object is created using
IWindowsTest createWindowsTest();
API of
IScriptEngine
Field Summary |
---|
Method Summary | |
---|---|
IApplicationGroup |
addActionGroup(java.lang.String groupName,
byte applicationType,
boolean ignore)
This method is used to add new task group. |
void |
addRemoteMachine(java.lang.String protocol,
java.lang.String hostName,
int serverPort,
java.lang.String path,
boolean ignore)
This method is used to add remote machine settings where the AppPerfect service is running so that project can be run on remote machine simultaneously |
void |
setDefaultThinkTime(int seconds)
This method is used to set the default think/wait time. |
void |
setDragPixelCount(int dragPixelCount)
To set the number of pixels mouse should be dragged to record drag/drop events |
void |
setErrorOption(int iErrorOption)
To set error option during execution of test |
void |
setIgnoreThinkTimeWhileReplaying(boolean ignore)
This method is used to decide whether to ignore think/wait time during replaying |
void |
setIterateTestForAllParameterCombinations(boolean all)
This method is used to decide whether to iterate test for all the possible parameters combination during replaying |
void |
setNoOfIterations(int iterations)
This method is used to set number of iterations for test |
void |
setRecordDragDrop(boolean bRecordDragDrop)
Whether application should record darg/drop events. |
void |
setRecordMouseMove(boolean bRecordMouseMove)
Whether application should record mouse move events. |
void |
setRecordThinkTime(boolean record)
This method is used to decide whether to record think time or not. |
void |
setRunProjectOnMultipleMachines(boolean run)
This method is used to decide is the project is to be run on multiple machines simultaneously. |
void |
setRunProjectOnMultipleMachines(boolean run,
boolean runOnLocalMachine)
This method is used to decide is the project is to be run on multiple machines simultaneously. |
void |
setSaveSuccessfulWindowImages(boolean save)
This method is used to decide whether to save successful window images while replaying |
void |
setTimeout(int seconds)
Few windows may take long time to respond, sometimes forever, due to various reason like element could not be found. |
void |
setUseAbsoluteIndex(boolean bUseAbsoluteIndex)
Whether application should use absolute window index to search the window during execution. |
void |
setUseAccessibility(boolean bUseAccessibility)
Whether application should use Microsoft Active Accessibility framework to record/replay window events. |
void |
setUseSameTimeOut(boolean usesame)
This method is used to use same timeout value for all the tasks throughout the project overriding the individual time out value for each of the task |
Method Detail |
---|
IApplicationGroup addActionGroup(java.lang.String groupName, byte applicationType, boolean ignore)
groupName
- name of the Application groupapplicationType
- possible value are IApplicationGroup.APPLICATION_WINDOWS or
IApplicationGroup.APPLICATION_JAVAignore
- whether to ignore group during replaying
IApplicationGroup
void addRemoteMachine(java.lang.String protocol, java.lang.String hostName, int serverPort, java.lang.String path, boolean ignore)
protocol
- protocol used to connect to remote machine.hostName
- Host/Machine name of remote machineserverPort
- port where the AppPerfect Service is running on remote machinepath
- context path for the AppPerfect Service.ignore
- whether this machine settings should be ignoredvoid setDefaultThinkTime(int seconds)
seconds
- is the no. of seconds to wait.void setDragPixelCount(int dragPixelCount)
dragPixelCount
- number of pixels mouse should be dragged to record drag/drop eventsvoid setErrorOption(int iErrorOption)
iErrorOption
- can be set to one of following
IScriptTest.ERROR_HANDLING_STOP_REPLAY or
IScriptTest.ERROR_MARK_FAILURE_CONTINUE_NEXT_TASK or
IScriptTest.ERROR_MARK_SUCCESS_CONTINUE_NEXT_TASK or
IScriptTest.ERROR_MARK_SUCCESS_CONTINUE_NEXT_GROUP or
IScriptTest.ERROR_MARK_FAILURE_CONTINUE_NEXT_GROUP or
IScriptTest.ERROR_HANDLING_PROMPT_USERvoid setIgnoreThinkTimeWhileReplaying(boolean ignore)
ignore
- true if think time should be ignored while replaying, false
otherwisevoid setIterateTestForAllParameterCombinations(boolean all)
all
- true if test should be iterated for all the parameters
combination, false otherwisevoid setNoOfIterations(int iterations)
iterations
- no. of iteration to replayvoid setRecordDragDrop(boolean bRecordDragDrop)
bRecordDragDrop
- true if application should record drag/drop events, false otherwisevoid setRecordMouseMove(boolean bRecordMouseMove)
bRecordMouseMove
- true if application should record mouse move events, false otherwisevoid setRecordThinkTime(boolean record)
record
- true if think time should be recorded, false otherwisevoid setRunProjectOnMultipleMachines(boolean run)
run
- whether to run project on multiple machines simultaneouslyvoid setRunProjectOnMultipleMachines(boolean run, boolean runOnLocalMachine)
run
- whether to run project on multiple machines simultaneouslyrunOnLocalMachine
- whether to run project on local machinevoid setSaveSuccessfulWindowImages(boolean save)
save
- true if images should be saved while replaying, false
otherwisevoid setTimeout(int seconds)
seconds
- no of seconds for the task to complete its execution.void setUseAbsoluteIndex(boolean bUseAbsoluteIndex)
bUseAbsoluteIndex
- true if application should use absolute window index to search window during execution, false otherwisevoid setUseAccessibility(boolean bUseAccessibility)
bUseAccessibility
- true if application should use Microsoft Active Accessibility framework to record/replay window events, false otherwisevoid setUseSameTimeOut(boolean usesame)
usesame
- whether to use same time out value for all the tasks.
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |