|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IUrl
A IUrl object which can be executed by
IScriptEngine.executeURL(url)
method.
An object of this class is created using createURL
method of
IScriptEngine. Once the object is created, all its properties should be
initialized to proper values and then executed using IScriptEngine.
IScriptEngine
,
IScriptEngine.createURL(int,
String, String, int, String, boolean)
,
IScriptEngine.executeURL(IUrl)
Method Summary | |
---|---|
void |
addParameter(java.lang.String name,
java.lang.String value)
A URL can have many request parameters. |
boolean |
assertElementsPositionInPage(java.lang.String description,
int tolerancePercent,
int failedCountLimit,
boolean limitInPercent)
Once the URL is executed, position of elements in the page can be validated using this method. |
boolean |
assertElementsSizeInPage(java.lang.String description,
int tolerancePercent,
int failedCountLimit,
boolean limitInPercent)
Once the URL is executed, size (Height/Width) of elements in the page can be validated using this method. |
void |
setBenchmarkFile(java.lang.String sFileName)
This is helpful for validation purpose to match the replayed response with the recorded one. |
void |
setBreakPoint(boolean bBreakPoint)
This method should be called to set a breakpoint before executing task. |
void |
setFireURL(boolean bFireURL)
This method should be called in case url is to be fired explicitly. |
void |
setIgnoreParam(boolean bIgnore)
This method should be called in case URL parameters comparison should be ignored during execution. |
void |
setImagePath(java.lang.String sImagePath)
This is used to set the url page image path. |
void |
setRenderFilePath(java.lang.String sRenderFilePath)
This is used to set the page rendering path, used for rendering validation. |
void |
setTitle(java.lang.String sTitle)
This method is used to set the url's title |
void |
waitForText(java.lang.String text)
If text to wait is set then application waits for the specified "text" in the response before executing the next task. |
Methods inherited from interface com.appperfect.devcommon.script.web.IHTTPScript |
---|
assertBrokenLinks, assertFormCount, assertImage, assertImageCount, assertInDatabase, assertInputElementCount, assertLinkCount, assertNodeAttributeValue, assertNodeText, assertPage, assertPageSize, assertPageText, assertText, assertText, assertText, assertText, assertText, assertTodaysDate, assertTodaysDate, getResponse, getResponseCode, getResponseSize, getResponseTime, getValidationResult, getWebResponse, isValidationSuccessful, setValidationSuccessful |
Methods inherited from interface com.appperfect.devcommon.script.IScript |
---|
getReasonForFailure, isIgnored, isTaskSuccessful, isTaskTimedOut, setIgnored, setReasonForFailure, setTaskSuccessful, setTaskTimedout, setThinkTime, setTimeout |
Method Detail |
---|
void addParameter(java.lang.String name, java.lang.String value)
GET
parameter
needs to be added using this method. A parameter added with this method
is appended to the URL when the URL is fired explicitly.
name
- name of the request parametervalue
- value of the request parameterboolean assertElementsPositionInPage(java.lang.String description, int tolerancePercent, int failedCountLimit, boolean limitInPercent)
description
- of validationtolerancePercent
- refers to the % margin of error which is allowed while calculating the difference in recorded and replayed positions.failedCountLimit
- least number of elements in page which should be displaced before reporting the error for pagelimitInPercent
- true if failedCountLimit represents %, false if it represents number.
true
if success, false
otherwiseboolean assertElementsSizeInPage(java.lang.String description, int tolerancePercent, int failedCountLimit, boolean limitInPercent)
description
- of validationtolerancePercent
- refers to the % margin of error which is allowed while calculating the difference in recorded and replayed size.failedCountLimit
- least number of elements in page whose size should change before reporting the error for pagelimitInPercent
- true if failedCountLimit represents %, false if it represents number.
true
if success, false
otherwisevoid setBenchmarkFile(java.lang.String sFileName)
sFileName
- file path of the response when this task was recorded.void setBreakPoint(boolean bBreakPoint)
bBreakPoint
- true
if breakpoint should be set;
false
otherwise.void setFireURL(boolean bFireURL)
bFireURL
- true
if url should be fired explicitly;
false
otherwise.void setIgnoreParam(boolean bIgnore)
bIgnore
- true
if the parameters comparison should be
ignored; false
otherwise.void setImagePath(java.lang.String sImagePath)
sImagePath
- file path of the url page image saved on disk.void setRenderFilePath(java.lang.String sRenderFilePath)
sRenderFilePath
- file path of the page render data saved on disk.void setTitle(java.lang.String sTitle)
sTitle
- title of the eventvoid waitForText(java.lang.String text)
text
- text in the response for which application should wait before fetching response.
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |