|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ILoadTest
A Load Test is created to represent Load Test project in AppPerfect Load Test.
A ILoadTest
object is created using
ILoadTest createLoadTest();
API of IScriptEngine
Field Summary | |
---|---|
static int |
EVERY_ITERATION
|
static int |
EVERY_TASK
|
static int |
FETCH_NEW_IP
possible value for fetch criteria for picking IP addresses by VUs |
static int |
FETCH_NEW_NB
possible value for fetch criteria for picking Network bandwidth by VUs |
static int |
FETCH_SAME_IP
|
static int |
FETCH_SAME_NB
|
static int |
HITS_PER_USER
specifies if the strategy is number of hits per User |
static int |
MONITOR_AIX
possible value for Operating system of remote machine for which system monitoring should be done |
static int |
MONITOR_LINUX
possible value for Operating system of remote machine for which system monitoring should be done |
static int |
MONITOR_MACOSX
possible value for Operating system of remote machine for which system monitoring should be done |
static int |
MONITOR_SOLARIS
possible value for Operating system of remote machine for which system monitoring should be done |
static int |
MONITOR_WINDOWS
possible value for Operating system of remote machine for which system monitoring should be done |
static int |
NETWORK_BANDWIDTH_1024Kbps
specifies to use 1024 kbps network bandwidth |
static int |
NETWORK_BANDWIDTH_2048Kbps
specifies to use 2048 kbps network bandwidth |
static int |
NETWORK_BANDWIDTH_256Kbps
specifies to use 256 kbps network bandwidth |
static int |
NETWORK_BANDWIDTH_512Kbps
specifies to use 512 kbps network bandwidth |
static int |
NETWORK_BANDWIDTH_56Kbps
specifies to use 56 kpbs network bandwidth |
static int |
NETWORK_BANDWIDTH_CUSTOM
specifies to use custom network bandwidth as configured by user |
static int |
NETWORK_BANDWIDTH_MAXIMUM
specifies to use maximum network bandwidth |
static int |
SEQUENTIAL_GROUP_SELECTION
possible value for running groups, in case of sequential group execution |
static int |
SIMULATE_BROWSER_CHROME
specifies to simulate Google-Chromw browser |
static int |
SIMULATE_BROWSER_CUSTOM
specifies to simulate Custom browser |
static int |
SIMULATE_BROWSER_FIREFOX
specifies to simulate Mozilla/Firefox browser |
static int |
SIMULATE_BROWSER_IE
specifies to simulate IE browser |
static int |
SIMULATE_BROWSER_IPHONE
specifies to simulate iPhone |
static int |
SIMULATE_BROWSER_OPERA
specifies to simulate Opera browser |
static int |
SIMULATE_BROWSER_SAFARI
specifies to simulate Safari browser |
static int |
SIMULTANEOUS_GROUP_SELECTION
possible value for running groups, in case of simultaneous group execution |
static int |
START_ACTION_END_REPEAT
possible value for run behavior of test, to run Start, Action and End group in that order and repeat this sequence |
static int |
START_ACTION_REPEAT_END
possible value for run behavior of test, to run Start, Action (Repeat) and End group in that order and repeat just the action groups, so start and ending groups will be executed only once by a single user |
static int |
TEST_EXECUTION
|
static byte |
THROUGHPUT_IN_BYTES
|
static byte |
THROUGHPUT_IN_KB
|
static byte |
THROUGHPUT_IN_MB
|
static int |
TOTAL_HITS
specifies if the strategy is number of total hits |
Method Summary | |
---|---|
IGroup |
addActionGroup(int protocol,
java.lang.String groupName)
To add the Action group for the test. |
IHttpGroup |
addEndingGroup()
To add Ending group for the test. |
void |
addIPAddress(java.lang.String ipAddress,
int vuCount,
boolean ignore)
To add IP address for N virtual users, to be used for Load Balancing |
void |
addLinkProjectGroup(java.lang.String projectName,
java.lang.String groupName,
boolean bIgnore,
int repeatCount,
float virtualUserPercent)
To add linked group settings |
void |
addRemoteMachine(java.lang.String protocol,
java.lang.String hostName,
int servicePort,
java.lang.String path,
int virtualUserCount,
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 |
IHttpGroup |
addStartingGroup()
To add starting group for the test. |
void |
collectTopTasks(int taskCount)
Whether to collect details for top N tasks based on response time |
void |
configureBrowserSimulation(int browserType,
boolean enabled,
float percentage,
int persistentConnections,
java.lang.String userAgent)
configure browser simulation settings for browser types |
void |
monitorAIXMachine(java.lang.String hostName,
java.lang.String username,
java.lang.String password,
int protocol,
int port,
boolean useService,
java.lang.String serviceURI)
To set target machine settings to monitor system resources |
void |
monitorLinuxMachine(java.lang.String hostName,
java.lang.String username,
java.lang.String password,
int protocol,
int port,
boolean useService,
java.lang.String serviceURI)
To set target machine settings to monitor system resources |
void |
monitorMACOSXMachine(java.lang.String hostName,
java.lang.String username,
java.lang.String password,
int protocol,
int port,
boolean useService,
java.lang.String serviceURI)
To set target machine settings to monitor system resources |
void |
monitorSolarisMachine(java.lang.String hostName,
java.lang.String username,
java.lang.String password,
int protocol,
int port,
boolean useService,
java.lang.String serviceURI)
To set target machine settings to monitor system resources |
void |
monitorWindowsMachine(java.lang.String hostName,
java.lang.String username,
java.lang.String password,
java.lang.String domain,
boolean useService,
java.lang.String serviceURI)
To set target machine settings to monitor system resources |
void |
setBurstStrategy(int users)
Select Burst strategy when the application is to be tested for sudden loads. |
void |
setClearCacheAfterEachIteration(boolean clear)
This method is used to decide whether the cache should be cleared after each iteration |
void |
setCloseConnectionAfterEachIteration(boolean closeConnection)
This method is used to decide whether the connections should be closed after each iteration |
void |
setCloseDBConnectionAfter(int action)
Set when DB connection should be closed, after every task, after every iteration or after project execution |
void |
setCompleteActionGroupAfterTestStop(boolean completeActionGroup)
This method is used to decide whether the currently running group should be completed before stopping test. |
void |
setConnectionPoolSettings(boolean useConnectionPool,
int connectionTimeout,
int maxConnectionUsage,
int initPoolSize,
int maxPoolSize)
To test Database group, connection pool settings can be set using this method |
void |
setConnectionPoolSettings(boolean useConnectionPool,
int connectionTimeout,
int maxConnectionUsage,
int initPoolSize,
int maxPoolSize,
java.lang.String customConnectionPoolClass,
java.lang.String customConnectionPoolClasspath)
To test Database group, connection pool settings can be set using this method |
void |
setDefaultThinkTime(int seconds)
This method is used to set the default think/wait time. |
void |
setExponentialStrategy(int users,
int maxUsers,
int incrementInterval)
Select Exponential strategy when you want to find the breaking point of your application. |
void |
setGroupRunStrategy(int strategy,
int selection)
To set execution strategy for group, whether to run sequentially or simultaneously |
void |
setIgnoreThinkTimeWhileReplaying(boolean ignore)
This method is used to decide whether to ignore think/wait time during replaying |
void |
setIncrementalStrategy(int users,
int increment,
int maxUsers,
int incrementInterval)
Select Incremental strategy when you want to find the breaking point of the application, by imposing increasing levels of load on it during the test. |
void |
setIPFetchCriteria(int criteria)
This method is provided to specify the fetch criteria to decide how application should assign IP Address for each VU. |
void |
setLoadBalancing(boolean balance)
Use this method to run each virtual user with different IP address. |
void |
setLoadTestDatabase(boolean test,
java.lang.String uniqueId)
This method sets the required settings for load testing Database, one need to configure the Database settings using IDatabaseHandler.setDatabaseConnection method. |
void |
setLoopStrategy(int users,
int loopCount)
Select Loop strategy when the application is to be tested for sequential load for a specified number of iterations. |
void |
setNetworkBandwith(int bandwidth,
int customBandwidth,
float vuPercent,
boolean ignore)
This method is used to set network bandwidth settings in case one has selected to throttle test based on network bandwidth |
void |
setNetworkBandwith(int bandwidth,
int customBandwidth,
float vuPercent,
boolean ignore,
int latency)
This method is used to set network bandwidth settings in case one has selected to throttle test based on network bandwidth |
void |
setNetworkBandwith(java.lang.String bandwidth,
int customBandwidth,
float vuPercent,
boolean ignore)
This method is used to set network bandwidth settings in case one has selected to throttle test based on network bandwidth |
void |
setNetworkBandwith(java.lang.String bandwidth,
int customBandwidth,
float vuPercent,
boolean ignore,
int latency)
This method is used to set network bandwidth settings in case one has selected to throttle test based on network bandwidth |
void |
setNetworkBandwithFetchCriteria(int criteria)
This method is provided to specify the fetch criteria to decide how application should assign network bandwidth for each VU. |
void |
setQuadracticStrategy(int users,
int increment,
int incrementInterval)
Select Quadratic strategy when you want to find or determine how the application recovers from a period of increasing load. |
void |
setRampUpTime(int seconds)
This method is used to set ramp up time. |
void |
setRecordThinkTime(boolean record)
This method is used to decide whether to record think/wait time or not. |
void |
setResolveSubTask(boolean resolve)
This method is used to decide whether to resolve subtasks(images/js/css) automatically during recording |
void |
setResponseTimeInMilliSeconds(boolean flag)
Whether to set Response Time in milliseconds |
void |
setRetryIfTaskFails(int retryCount,
int delay)
This method is used to set number of times the task should retry execution in case of failure |
void |
setRunDurationInHits(int hitStrategy,
int hitCount)
This method is used to set run duration of test in terms of number of total hits or hits per user |
void |
setRunDurationInTime(int minutes)
This method is used to set run duration of test in terms of amount of time period |
void |
setRunDurationInTime(int hours,
int minutes)
This method is used to set run duration of test in terms of amount of time period |
void |
setRunDurationInTime(int days,
int hours,
int minutes)
This method is used to set run duration of test in terms of amount of time period |
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 |
setSaveAllTaskDetails(boolean flag)
Whether to save each and every task execution detail to a CSV file |
void |
setSaveSuccessfulResponseDetails(boolean save)
This method is used to decide whether to save successful response details while replaying |
void |
setShowAverage90Percent(boolean showAvg90)
Whether to show average of middle 90% value. |
void |
setShowCombinedChart(boolean showCombinedChart)
Whether to show single chart having all parameters or individual chart for each parameter |
void |
setShowScatterPlot(boolean showScatterPlot)
Whether to show scatter plot of Virtual users Vs Response time. |
void |
setShowSubTasks(boolean showSubTasks)
Whether to show sub-task details in Status & Result view. |
void |
setShowTaskResponseChart(boolean showTaskResponseChart)
Whether to show Task wise response time chart of Virtual users. |
void |
setSimulateBrowser(boolean enable)
|
void |
setSimulateIEBrowser(boolean simulate,
float percentage)
To simulate IE Browser behaviour, where 2 simultaneous connections would be opened to fetch response. |
void |
setSimulateMozillaBrowser(boolean simulate,
float percentage,
int connections)
To simulate Mozilla Browser behaviour, where number of connections are configurable. |
void |
setStopOnFailedTaskCount(int strategy,
int failCount)
This method is used to decide when the Test execution should be stopped in between in case of failure |
void |
setSystemMonitor(boolean systemMonitor)
To set whether to monitor system resources on target machine |
void |
setTaskDetailsBufferSize(int bufferSize)
Buffer size to be used while saving task execution details to a CSV file |
void |
setThrottleNetworkBandwith(boolean throttle)
This method is provided to throttle test based on the network bandwidth. |
void |
setThroughputType(byte throughputType)
Set the throughput type |
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 |
setTreatTimeOutAsFailed(boolean status)
This method is used to decide if timeout URLs/Events should be treated as failed events. |
void |
setUseRecordedCookiesWhileReplaying(boolean flag)
This method is used to inform application to use recorded cookies during replaying instead of the ones generated during replaying of the task |
void |
setUseSameTimeOut(boolean flag)
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 |
Field Detail |
---|
static final int EVERY_ITERATION
static final int EVERY_TASK
static final int FETCH_NEW_IP
static final int FETCH_NEW_NB
static final int FETCH_SAME_IP
static final int FETCH_SAME_NB
static final int HITS_PER_USER
static final int MONITOR_AIX
static final int MONITOR_LINUX
static final int MONITOR_MACOSX
static final int MONITOR_SOLARIS
static final int MONITOR_WINDOWS
static final int NETWORK_BANDWIDTH_1024Kbps
static final int NETWORK_BANDWIDTH_2048Kbps
static final int NETWORK_BANDWIDTH_256Kbps
static final int NETWORK_BANDWIDTH_512Kbps
static final int NETWORK_BANDWIDTH_56Kbps
static final int NETWORK_BANDWIDTH_CUSTOM
static final int NETWORK_BANDWIDTH_MAXIMUM
static final int SEQUENTIAL_GROUP_SELECTION
static final int SIMULATE_BROWSER_CHROME
static final int SIMULATE_BROWSER_CUSTOM
static final int SIMULATE_BROWSER_FIREFOX
static final int SIMULATE_BROWSER_IE
static final int SIMULATE_BROWSER_IPHONE
static final int SIMULATE_BROWSER_OPERA
static final int SIMULATE_BROWSER_SAFARI
static final int SIMULTANEOUS_GROUP_SELECTION
static final int START_ACTION_END_REPEAT
static final int START_ACTION_REPEAT_END
static final int TEST_EXECUTION
static final byte THROUGHPUT_IN_BYTES
static final byte THROUGHPUT_IN_KB
static final byte THROUGHPUT_IN_MB
static final int TOTAL_HITS
Method Detail |
---|
IGroup addActionGroup(int protocol, java.lang.String groupName)
protocol
- could be one of IGroup.GROUP_HTTP or IGroup.GROUP_DATABASE or IGroup.GROUP_CLI
depending on whether it will have HTTP/S web tasks or Database
query tasksgroupName
- custom name for the action group
IHttpGroup addEndingGroup()
void addIPAddress(java.lang.String ipAddress, int vuCount, boolean ignore)
ipAddress
- IP address of the machine.vuCount
- number of virtual users to use this IPignore
- true or falsevoid addLinkProjectGroup(java.lang.String projectName, java.lang.String groupName, boolean bIgnore, int repeatCount, float virtualUserPercent)
projectName
- name of project from where the groups should be picked for linking with host testgroupName
- name of group to be linked from the specified projectbIgnore
- whether this group should be ignored during executionrepeatCount
- no of times this group should be repeatedvirtualUserPercent
- percentage of virtual users which should be running this groupvoid addRemoteMachine(java.lang.String protocol, java.lang.String hostName, int servicePort, java.lang.String path, int virtualUserCount, boolean ignore)
protocol
- protocol used to connect to remote machine.hostName
- Host/Machine name of remote machineservicePort
- port where the AppPerfect Service is running on remote machinepath
- context path for the AppPerfect Service.virtualUserCount
- number of virtual users to run from this machineignore
- whether this machine settings should be ignoredIHttpGroup addStartingGroup()
void collectTopTasks(int taskCount)
taskCount
- number of tasks for which details should be collectedvoid configureBrowserSimulation(int browserType, boolean enabled, float percentage, int persistentConnections, java.lang.String userAgent)
browserType
- enabled
- percentage
- persistentConnections
- userAgent
- void monitorAIXMachine(java.lang.String hostName, java.lang.String username, java.lang.String password, int protocol, int port, boolean useService, java.lang.String serviceURI)
hostName
- HostName or IP address of the machineusername
- login user name for the machinepassword
- login password for the machineprotocol
- which connection protocol (telnet/ssh) to useport
- connection port, default port for telnet is 23 and for ssh is 22useService
- whether to use local AppPerfect Service (Service name : AppService, default port 8714) running on machine to monitorserviceURI
- in case useService is true then serviceURI is of from http://HOSTNAME:8714/AppServicevoid monitorLinuxMachine(java.lang.String hostName, java.lang.String username, java.lang.String password, int protocol, int port, boolean useService, java.lang.String serviceURI)
hostName
- HostName or IP address of the machineusername
- login user name for the machinepassword
- login password for the machineprotocol
- which connection protocol (telnet/ssh) to useport
- connection port, default port for telnet is 23 and for ssh is 22useService
- whether to use local AppPerfect Service (Service name : AppService, default port 8714) running on machine to monitorserviceURI
- in case useService is true then serviceURI is of from http://HOSTNAME:8714/AppServicevoid monitorMACOSXMachine(java.lang.String hostName, java.lang.String username, java.lang.String password, int protocol, int port, boolean useService, java.lang.String serviceURI)
hostName
- HostName or IP address of the machineusername
- login user name for the machinepassword
- login password for the machineprotocol
- which connection protocol (telnet/ssh) to useport
- connection port, default port for telnet is 23 and for ssh is 22useService
- whether to use local AppPerfect Service (Service name : AppService, default port 8714) running on machine to monitorserviceURI
- in case useService is true then serviceURI is of from http://HOSTNAME:8714/AppServicevoid monitorSolarisMachine(java.lang.String hostName, java.lang.String username, java.lang.String password, int protocol, int port, boolean useService, java.lang.String serviceURI)
hostName
- HostName or IP address of the machineusername
- login user name for the machinepassword
- login password for the machineprotocol
- which connection protocol (telnet/ssh) to useport
- connection port, default port for telnet is 23 and for ssh is 22useService
- whether to use local AppPerfect Service (Service name : AppService, default port 8714) running on machine to monitorserviceURI
- in case useService is true then serviceURI is of from http://HOSTNAME:8714/AppServicevoid monitorWindowsMachine(java.lang.String hostName, java.lang.String username, java.lang.String password, java.lang.String domain, boolean useService, java.lang.String serviceURI)
hostName
- HostName or IP address of the machineusername
- login user name for the machinepassword
- login password for the machinedomain
- name of the domain to which machine belongsuseService
- whether to use local AppPerfect service (Service name : AppService, default port 8714) running on machine to monitorserviceURI
- in case useService is true then serviceURI is of from http://HOSTNAME:8714/AppServicevoid setBurstStrategy(int users)
users
- number of threads that will be created when the test is run.void setClearCacheAfterEachIteration(boolean clear)
clear
- true or falsevoid setCloseConnectionAfterEachIteration(boolean closeConnection)
closeConnection
- true or falsevoid setCloseDBConnectionAfter(int action)
action
- void setCompleteActionGroupAfterTestStop(boolean completeActionGroup)
completeActionGroup
- true or falsevoid setConnectionPoolSettings(boolean useConnectionPool, int connectionTimeout, int maxConnectionUsage, int initPoolSize, int maxPoolSize)
useConnectionPool
- whether to use connection pool or not, true or falseconnectionTimeout
- to specify time out period in secondsmaxConnectionUsage
- to specify Maximum usage of a connectioninitPoolSize
- to specify initial size of connection poolmaxPoolSize
- to specify maximum size of connection poolvoid setConnectionPoolSettings(boolean useConnectionPool, int connectionTimeout, int maxConnectionUsage, int initPoolSize, int maxPoolSize, java.lang.String customConnectionPoolClass, java.lang.String customConnectionPoolClasspath)
useConnectionPool
- whether to use connection pool or not, true or falseconnectionTimeout
- to specify time out period in secondsmaxConnectionUsage
- to specify Maximum usage of a connectioninitPoolSize
- to specify initial size of connection poolmaxPoolSize
- to specify maximum size of connection poolcustomConnectionPoolClass
- class name for custom connection pool manager classcustomConnectionPoolClasspath
- classpath for custom connection pool manager classvoid setDefaultThinkTime(int seconds)
seconds
- is the no. of seconds to wait.void setExponentialStrategy(int users, int maxUsers, int incrementInterval)
users
- number of threads that will be created when the test is runmaxUsers
- maximum number of users/threads that should be created.incrementInterval
- amount of time in seconds after which the threads should be
doubledvoid setGroupRunStrategy(int strategy, int selection)
strategy
- could be one of ILoadTest.SIMULTANEOUS_GROUP_SELECTION or
ILoadTest.SEQUENTIAL_GROUP_SELECTIONselection
- to specify the run behaviour, could be one of
ILoadTest.START_ACTION_END_REPEAT or
ILoadTest.START_ACTION_REPEAT_ENDvoid setIgnoreThinkTimeWhileReplaying(boolean ignore)
ignore
- true if think time should be ignored while replaying, false
otherwisevoid setIncrementalStrategy(int users, int increment, int maxUsers, int incrementInterval)
users
- number of threads that will be created when the test is runincrement
- number of threads that should be incremented after specified
intervalmaxUsers
- maximum number of users/threads that should be created.incrementInterval
- amount of time in seconds after which the threads should be
incrementedvoid setIPFetchCriteria(int criteria)
criteria
- Possible values are ILoadTest.FETCH_NEW_IP OR ILoadTest.FETCH_SAME_IPvoid setLoadBalancing(boolean balance)
balance
- whether or not to use different IP address for each virtual
usage, true or falsevoid setLoadTestDatabase(boolean test, java.lang.String uniqueId)
IDatabaseHandler.setDatabaseConnection
method. Each
database configuration is allocated a unique ID which is used to identify
the configuration.
test
- If Database group then true else falseuniqueId
- Each database configuration is allocated a unique ID which is
used to identify the database configuration.void setLoopStrategy(int users, int loopCount)
users
- number of threads that will be created when the test is runloopCount
- number of times the tasks will be executedvoid setNetworkBandwith(int bandwidth, int customBandwidth, float vuPercent, boolean ignore)
bandwidth
- can be set to any of ILoadTest.NETWORK_BANDWIDTH_MAXIMUM or
ILoadTest.NETWORK_BANDWIDTH_56Kbps or
ILoadTest.NETWORK_BANDWIDTH_256Kbps or
ILoadTest.NETWORK_BANDWIDTH_512Kbps or
ILoadTest.NETWORK_BANDWIDTH_1024Kbps or
ILoadTest.NETWORK_BANDWIDTH_2048Kbps or
ILoadTest.NETWORK_BANDWIDTH_CUSTOMcustomBandwidth
- in case bandwidth selected is
ILoadTest.NETWORK_BANDWIDTH_CUSTOM then provide the custom
bandwidth value in kbpsvuPercent
- % of users to simulate using this bandwidthignore
- if this bandwidth setting should be ignored, true or falsevoid setNetworkBandwith(int bandwidth, int customBandwidth, float vuPercent, boolean ignore, int latency)
bandwidth
- can be set to any of ILoadTest.NETWORK_BANDWIDTH_MAXIMUM or
ILoadTest.NETWORK_BANDWIDTH_56Kbps or
ILoadTest.NETWORK_BANDWIDTH_256Kbps or
ILoadTest.NETWORK_BANDWIDTH_512Kbps or
ILoadTest.NETWORK_BANDWIDTH_1024Kbps or
ILoadTest.NETWORK_BANDWIDTH_2048Kbps or
ILoadTest.NETWORK_BANDWIDTH_CUSTOMcustomBandwidth
- in case bandwidth selected is
ILoadTest.NETWORK_BANDWIDTH_CUSTOM then provide the custom
bandwidth value in kbpsvuPercent
- % of users to simulate using this bandwidthignore
- if this bandwidth setting should be ignored, true or falselatency
- network latency for virtual user.
Virtual user will basically sleep for this time period after
each request.void setNetworkBandwith(java.lang.String bandwidth, int customBandwidth, float vuPercent, boolean ignore)
bandwidth
- can be set to any of ILoadTest.NETWORK_BANDWIDTH_MAXIMUM or
ILoadTest.NETWORK_BANDWIDTH_56Kbps or
ILoadTest.NETWORK_BANDWIDTH_256Kbps or
ILoadTest.NETWORK_BANDWIDTH_512Kbps or
ILoadTest.NETWORK_BANDWIDTH_1024Kbps or
ILoadTest.NETWORK_BANDWIDTH_2048Kbps or
ILoadTest.NETWORK_BANDWIDTH_CUSTOMcustomBandwidth
- in case bandwidth selected is
ILoadTest.NETWORK_BANDWIDTH_CUSTOM then provide the custom
bandwidth value in kbpsvuPercent
- % of users to simulate using this bandwidthignore
- if this bandwidth setting should be ignored, true or falsevoid setNetworkBandwith(java.lang.String bandwidth, int customBandwidth, float vuPercent, boolean ignore, int latency)
bandwidth
- can be set to any of ILoadTest.NETWORK_BANDWIDTH_MAXIMUM or
ILoadTest.NETWORK_BANDWIDTH_56Kbps or
ILoadTest.NETWORK_BANDWIDTH_256Kbps or
ILoadTest.NETWORK_BANDWIDTH_512Kbps or
ILoadTest.NETWORK_BANDWIDTH_1024Kbps or
ILoadTest.NETWORK_BANDWIDTH_2048Kbps or
ILoadTest.NETWORK_BANDWIDTH_CUSTOMcustomBandwidth
- in case bandwidth selected is
ILoadTest.NETWORK_BANDWIDTH_CUSTOM then provide the custom
bandwidth value in kbpsvuPercent
- % of users to simulate using this bandwidthignore
- if this bandwidth setting should be ignored, true or falselatency
- network latency for virtual user.
Virtual user will basically sleep for this time period after
each request.void setNetworkBandwithFetchCriteria(int criteria)
criteria
- Possible values are ILoadTest.FETCH_NEW_NB OR ILoadTest.FETCH_SAME_NBvoid setQuadracticStrategy(int users, int increment, int incrementInterval)
users
- users number of threads that will be created when the test is
runincrement
- number of threads that should be incremented after specified
intervalincrementInterval
- amount of time in seconds after which the threads should be
incrementedvoid setRampUpTime(int seconds)
seconds
- time in secondsvoid setRecordThinkTime(boolean record)
record
- true if think time should be recorded, false otherwisevoid setResolveSubTask(boolean resolve)
resolve
- true if subtasks should be resolved automatically, false
otherwisevoid setResponseTimeInMilliSeconds(boolean flag)
flag
- true if Response time should be calculated in milliseconds, false otherwisevoid setRetryIfTaskFails(int retryCount, int delay)
retryCount
- number of times to retrydelay
- amount of time in seconds to wait before retrying.void setRunDurationInHits(int hitStrategy, int hitCount)
hitStrategy
- could be one of ILoadTest.TOTAL_HITS or
ILoadTest.HITS_PER_USERhitCount
- number of hitsvoid setRunDurationInTime(int minutes)
minutes
- number of minutes for which test should be executedvoid setRunDurationInTime(int hours, int minutes)
hours
- number of hours for which test should be executedminutes
- number of minutes for which test should be executedvoid setRunDurationInTime(int days, int hours, int minutes)
days
- number of days for which test should be executedhours
- number of hours for which test should be executedminutes
- number of minutes for which test should be executedvoid 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 setSaveAllTaskDetails(boolean flag)
flag
- true if each and every task execution is to be saved to a CSV filevoid setSaveSuccessfulResponseDetails(boolean save)
save
- true if successful response details should be saved while
replaying, false otherwisevoid setShowAverage90Percent(boolean showAvg90)
showAvg90
- true if average of middle 90% values is to be show in Status & Resultvoid setShowCombinedChart(boolean showCombinedChart)
showCombinedChart
- true if single chart containing all parameters, false otherwisevoid setShowScatterPlot(boolean showScatterPlot)
showScatterPlot
- true if show scatter plot, false otherwisevoid setShowSubTasks(boolean showSubTasks)
showSubTasks
- true if sub-task details is to be shown in Status & Resultvoid setShowTaskResponseChart(boolean showTaskResponseChart)
showTaskResponseChart
- true if show task response chart, false otherwisevoid setSimulateBrowser(boolean enable)
enable
- void setSimulateIEBrowser(boolean simulate, float percentage)
simulate
- true or falsepercentage
- %
of virtual users to simulatevoid setSimulateMozillaBrowser(boolean simulate, float percentage, int connections)
simulate
- true or falsepercentage
- %
of virtual users to simulateconnections
- number of connections which should be opened simultaneously to
fetch responsevoid setStopOnFailedTaskCount(int strategy, int failCount)
strategy
- could be one of ILoadTest.TOTAL_HITS or
ILoadTest.HITS_PER_USERfailCount
- number of failed hitsvoid setSystemMonitor(boolean systemMonitor)
systemMonitor
- true or falsevoid setTaskDetailsBufferSize(int bufferSize)
bufferSize
- size of the buffer, default value is 8192void setThrottleNetworkBandwith(boolean throttle)
throttle
- true or falsevoid setThroughputType(byte throughputType)
throughputType
- void setTimeout(int seconds)
seconds
- no of seconds for the task to complete its execution.void setTreatTimeOutAsFailed(boolean status)
status
- void setUseRecordedCookiesWhileReplaying(boolean flag)
flag
- whether to use recorded cookies during replaying.void setUseSameTimeOut(boolean flag)
flag
- 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 |