|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CLIScript
A request object which can be executed by
IScriptEngine.execute(request)
method.
An object of this class is created using createCLIRequest
method of IScriptEngine. Once the object is
created, it should be populated as per the requirements
and then executed using IScriptEngine.
IScriptEngine
,
IScriptEngine.createCLIRequest(int, String)
Method Summary | |
---|---|
void |
addArgument(java.lang.String argumentName,
java.lang.String argumentValue,
java.lang.String testParameterName,
boolean ignore)
Each CLI request can have multiple arguments which it can pass to script file. |
void |
addThinkTime(int virtualUser,
int type,
int startValue,
int endValue,
int valueType)
Delay in seconds before the task is actually executed. |
long |
getResponseTime()
Get the response time of executed task |
void |
setCLIScriptFile(java.lang.String filePath)
Set script file path which you want to execute. |
boolean |
validateText(java.lang.String txt,
boolean bCaseSensitive,
boolean checkForExistance,
boolean regularExpression)
Once the task is executed, response can be validated for presence/absence of some text along with other attributes for fine-tuning the search |
boolean |
validateTextInFile(java.lang.String txt,
java.lang.String fileArgument,
boolean bCaseSensitive,
boolean checkForExistance,
boolean regularExpression)
Once the task is executed, response can be validated for presence/absence of some text along with other attributes for fine-tuning the search |
Methods inherited from interface com.appperfect.devcommon.script.IScript |
---|
getReasonForFailure, isIgnored, isTaskSuccessful, isTaskTimedOut, setIgnored, setReasonForFailure, setTaskSuccessful, setTaskTimedout, setThinkTime, setTimeout |
Method Detail |
---|
void addArgument(java.lang.String argumentName, java.lang.String argumentValue, java.lang.String testParameterName, boolean ignore)
argumentName
- name of the argumentargumentValue
- value of the argumenttestParameterName
- name of the TestParameter if the argument value is parameterizedvoid addThinkTime(int virtualUser, int type, int startValue, int endValue, int valueType)
virtualUser
- % Virtual User who should use this think time settingtype
- Type of value whether its Fixed (0) value or Random Value (1)startValue
- Think time valueendValue
- End value of think time in case of random valuevalueType
- Whether value specified is in seconds (0) or in milliseconds (1)long getResponseTime()
void setCLIScriptFile(java.lang.String filePath)
filePath
- boolean validateText(java.lang.String txt, boolean bCaseSensitive, boolean checkForExistance, boolean regularExpression)
txt
- text to look for in the responsebCaseSensitive
- true
if search should be case-sensitive;
false
otherwisecheckForExistance
- true
if search for existence of the text;
false
otherwiseregularExpression
- true
if text is a regular expression;
false
otherwise
true
if the response matches this validation;
false
otherwiseboolean validateTextInFile(java.lang.String txt, java.lang.String fileArgument, boolean bCaseSensitive, boolean checkForExistance, boolean regularExpression)
txt
- text to look for in the responsefileArgument
- file argument which is passed to script filebCaseSensitive
- true
if search should be case-sensitive;
false
otherwisecheckForExistance
- true
if search for existence of the text;
false
otherwiseregularExpression
- true
if text is a regular expression;
false
otherwise
true
if the response matches this validation;
false
otherwise
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |