|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IWebTest
A Web Test is created to represent Web project in AppPerfect Web Test.
A IWebTest
object is created using
IWebTest createWebTest();
API of IScriptEngine
Field Summary |
---|
Method Summary | |
---|---|
IWebGroup |
addActionGroup(java.lang.String groupName,
int protocol)
This method is used to add new task group. |
IWebGroup |
addActionGroup(java.lang.String groupName,
java.lang.String startingURL,
boolean ignore)
This method is used to add new task group. |
void |
addBlackberryDevice(java.lang.String simulatorHome,
java.lang.String mdsHome,
java.lang.String model,
int percentage)
In case application is configured to run execution with blackberry device then % of iterations for each blockaberry simulator device should be configured using this api. |
void |
addBrowserDevice(java.lang.String browserPath,
int percentage)
In case application is configured to run execution with differnt browsers then % of iterations for each browser should be configured using this api. |
void |
addIPhoneDevice(int orientation,
java.lang.String webkitPath,
int percentage)
In case application is configured to run execution with iphone device then % of iterations for each iPhone device should be configured using this api. |
void |
addRemoteMachine(java.lang.String protocol,
java.lang.String hostName,
int serverPort,
java.lang.String path,
boolean useMozillaControl,
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 machines simultaneously |
void |
setAutoDetectMouseHover(boolean bAutoDetectMouseHover)
Whether application should Auto-detect mouse-over events for elements having mouse-over event handlers during recording |
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 |
setExactAttributeMatch(boolean bExactAttributeMatch)
Whether application should perform strict attributes comparison to find element during replaying. |
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 |
setRecordSubFrames(boolean bRecordSubFrames)
Whether application should record all sub frames during recording. |
void |
setRecordThinkTime(boolean record)
This method is used to decide whether to record think/wait time or not. |
void |
setReplayLowLevelMouseEvents(boolean bReplayLowLevelMouseEvents)
Whether application should use low level events to replay mouse events. |
void |
setRunCrossBrowsers(boolean bRunCrossBrowsers)
Whether application should run execution with different browsers for each iteration. |
void |
setRunProjectOnMultipleMachines(boolean run)
This method is used to decide is the project is to be run on multiple machines simultaneously. |
void |
setSavePageImage(boolean save)
This method is used to decide whether to save page images while replaying. |
void |
setSaveSuccessfulResponseDetails(boolean save)
This method is used to decide whether to save successful response details while replaying |
void |
setTimeout(int seconds)
Few urls may take long time to respond, sometimes forever, due to various reason like server is not responding, network failure etc. |
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 |
Methods inherited from interface com.appperfect.devcommon.script.IScriptTest |
---|
addLinkProjectGroup, addTestParameter, addTestParameter, addTestParameter, addTestParameter, setCSVDatasource, setDatabaseDatasource, setDateCalculationDatasource, setLastIndex, setNumberCalculationDatasource, setNumberCalculationDatasource, setParameterValues, setPassthroughDatasource, setPassthroughDatasource, setPassthroughDatasource, setPassthroughDatasource, setReplayLinkedProjects |
Method Detail |
---|
IWebGroup addActionGroup(java.lang.String groupName, int protocol)
groupName
- name of the Web groupprotocol
- could be one of IWebGroup.GROUP_HTTP or IWebGroup.GROUP_SOAP
depending on whether it will have HTTP/S web tasks or SOAP tasks
IWebGroup
IWebGroup addActionGroup(java.lang.String groupName, java.lang.String startingURL, boolean ignore)
groupName
- name of the Web groupstartingURL
- represents starting url for the groupignore
- whether to ignore group during replaying
IWebGroup
void addBlackberryDevice(java.lang.String simulatorHome, java.lang.String mdsHome, java.lang.String model, int percentage)
simulatorHome
- specify the path of the directory having \"fledge.exe\" file.mdsHome
- Provide the path for Blackberry MDS service. It is the path of the directory having startup and shutdown scripts for MDS service.model
- specify the handheld model which should be simulated, Could be either "9000" or "9700"percentage
- percentage of iterations to run.void addBrowserDevice(java.lang.String browserPath, int percentage)
browserPath
- complete executable path of the browser, in case device is IScriptTest.TEST_DEVICE_IPHONE then for best results browser path should be the path of browser using webkit engine like Safaripercentage
- percentage of iterations to run.void addIPhoneDevice(int orientation, java.lang.String webkitPath, int percentage)
orientation
- in case of Phone device the orientation can have any of the following values
IScriptTest.DEVICE_ORIENTATION_HORIZONTAL or
IScriptTest.DEVICE_ORIENTATION_VERTICALwebkitPath
- complete executable path of the webkit browser, for best results webkit path should be the path of browser using webkit engine like Safari or Chromepercentage
- percentage of iterations to run.void addRemoteMachine(java.lang.String protocol, java.lang.String hostName, int serverPort, java.lang.String path, boolean useMozillaControl, 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 setAutoDetectMouseHover(boolean bAutoDetectMouseHover)
bAutoDetectMouseHover
- true if application should auto-detect mouse-over events for elements having mouse-over event handlers during recording, false otherwisevoid 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 setExactAttributeMatch(boolean bExactAttributeMatch)
bExactAttributeMatch
- true if application should perform strict attributes comparison to find element during replaying, false otherwisevoid 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 setRecordSubFrames(boolean bRecordSubFrames)
bRecordSubFrames
- true if application should record all sub frames during recording, false otherwisevoid setRecordThinkTime(boolean record)
record
- true if think time should be recorded, false otherwisevoid setReplayLowLevelMouseEvents(boolean bReplayLowLevelMouseEvents)
bReplayLowLevelMouseEvents
- true if application should use low level events to replay mouse events, false otherwisevoid setRunCrossBrowsers(boolean bRunCrossBrowsers)
bRunCrossBrowsers
- true if application should run execution with different browsers for each iteration, false otherwisevoid setRunProjectOnMultipleMachines(boolean run)
run
- whether to run project on multiple machines simultaneouslyvoid setSavePageImage(boolean save)
save
- true if page images should be saved while replaying, false
otherwisevoid setSaveSuccessfulResponseDetails(boolean save)
save
- true if successful response details should be saved while
replaying, false otherwisevoid setTimeout(int seconds)
seconds
- no of seconds for the task to complete its execution.void 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 |