|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IParameterHandler
IParameterHandler is created to assist with fetching parameter values from TestParameter
Field Summary | |
---|---|
static int |
Contains
|
static int |
EndsWith
|
static int |
Equals
|
static int |
GreaterThan
|
static int |
GreaterThanEqualTo
|
static int |
LessThan
|
static int |
LessThanEqualTo
|
static int |
Matches
|
static int |
NotContains
|
static int |
NotEndsWith
|
static int |
NotEquals
|
static int |
NotMatches
|
static int |
NotStartsWith
|
static int |
StartsWith
|
Method Summary | |
---|---|
boolean |
assertTestParameterValue(java.lang.String operand1,
int compOperator,
java.lang.String operand2)
To compare the TestParameter value with other TestParameter value / constant |
java.lang.String |
getParameterValue(java.lang.String name,
java.lang.String value,
java.lang.String parameterName)
To get Test Parameter value for parameterized Header or Task Parameter |
java.lang.String |
getParameterValue(java.lang.String name,
java.lang.String value,
java.lang.String parameterName,
boolean forValidation)
To get Test Parameter value for parameterized Header or Task Parameter |
java.lang.String[] |
getParameterValueByParsing(com.gargoylesoftware.htmlunit.html.HtmlPage htmlPage,
java.lang.String leftBoundary,
java.lang.String rightBoundary)
To get Parameter value by parsing the response and fetching the value between left and right boundary |
java.lang.String[] |
getParameterValueByParsing(java.lang.String htmlPage,
java.lang.String leftBoundary,
java.lang.String rightBoundary)
To get Parameter value by parsing the response and fetching the value between left and right boundary |
java.lang.String[] |
getParameterValueForPattern(java.lang.String htmlPage,
java.lang.String regexPattern,
java.lang.String groupIndices)
To get the Parameter values by applying the specified pattern on the response |
Field Detail |
---|
static final int Contains
static final int EndsWith
static final int Equals
static final int GreaterThan
static final int GreaterThanEqualTo
static final int LessThan
static final int LessThanEqualTo
static final int Matches
static final int NotContains
static final int NotEndsWith
static final int NotEquals
static final int NotMatches
static final int NotStartsWith
static final int StartsWith
Method Detail |
---|
boolean assertTestParameterValue(java.lang.String operand1, int compOperator, java.lang.String operand2)
operand1
- String containing TestParameter Name or constant, if its TestParameter enclose it in "@..@"compOperator
- could take any of the following values :
engine.Equals
engine.NotEquals
engine.Contains
engine.NotContains
engine.StartsWith
engine.NotStartsWith
engine.EndsWith
engine.NotEndsWith
engine.GreaterThan
engine.LessThan
engine.GreaterThanEqualTo
engine.LessThanEqualTo
engine.Matches
engine.NotMatchesoperand2
- String containing TestParameter Name or constant, if its TestParameter enclose it in "@..@"
java.lang.String getParameterValue(java.lang.String name, java.lang.String value, java.lang.String parameterName)
name
- of the task parametervalue
- recorded value of the parameterparameterName
- name of the test parameter
java.lang.String getParameterValue(java.lang.String name, java.lang.String value, java.lang.String parameterName, boolean forValidation)
name
- of the task parametervalue
- recorded value of the parameterparameterName
- name of the test parameterforValidation
- to indicate whether the test parameter is used in validation
before the execution of the task
java.lang.String[] getParameterValueByParsing(com.gargoylesoftware.htmlunit.html.HtmlPage htmlPage, java.lang.String leftBoundary, java.lang.String rightBoundary)
htmlPage
- html page, instance of com.gargoylesoftware.htmlunit.html.HtmlPageleftBoundary
- left boundary to look for while searching the enclosed valuerightBoundary
- right boundary to look for while searching the enclosed value
java.lang.String[] getParameterValueByParsing(java.lang.String htmlPage, java.lang.String leftBoundary, java.lang.String rightBoundary)
htmlPage
- html source stringleftBoundary
- left boundary to look for while searching the enclosed valuerightBoundary
- right boundary to look for while searching the enclosed value
java.lang.String[] getParameterValueForPattern(java.lang.String htmlPage, java.lang.String regexPattern, java.lang.String groupIndices)
htmlPage
- html source stringregexPattern
- should be a valid regular expressiongroupIndices
- its a comma separated list of group indices in the pattern. In case value is to be
created using multiple groups in the pattern then comma separated indices for same should
be provided here. In case there is a single group in the pattern then value specified should be 1.
In case there are no groups in the pattern then specified value should be 0 in which case extracted value
will be the one returned on applying pattern.
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |