Package | Description |
---|---|
org.safs.net | |
org.safs.selenium.webdriver.lib |
Modifier and Type | Method and Description |
---|---|
static IHttpRequest.HttpCommand |
IHttpRequest.HttpCommand.get(java.lang.String command)
Return a matched
IHttpRequest.HttpCommand according to the command string. |
static IHttpRequest.HttpCommand |
IHttpRequest.HttpCommand.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static IHttpRequest.HttpCommand[] |
IHttpRequest.HttpCommand.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
XMLHttpRequest.execute(IHttpRequest.HttpCommand command,
java.lang.String url,
boolean async)
Send a HTTP Request and get the response from the server.
|
java.util.Map<java.lang.String,java.lang.Object> |
XMLHttpRequest.execute(IHttpRequest.HttpCommand command,
java.lang.String url,
boolean async,
java.util.Map<java.lang.String,java.lang.String> headers)
Send a HTTP Request and get the response from the server.
|
java.util.Map<java.lang.String,java.lang.Object> |
IHttpRequest.execute(IHttpRequest.HttpCommand command,
java.lang.String url,
boolean async,
java.util.Map<java.lang.String,java.lang.String> headers,
java.lang.String data)
Send a HTTP Request and get the response from the server.
Note: If this is performed by "AJAX XMLHttpRequest", it is probable not permitted to request an URL of domain other than the Application under test. |
java.util.Map<java.lang.String,java.lang.Object> |
HttpRequest.execute(IHttpRequest.HttpCommand command,
java.lang.String url,
boolean async,
java.util.Map<java.lang.String,java.lang.String> requestHeaders,
java.lang.String content)
Send a simple HTTP request.
If a PROXY server is needed to visit a site, we need to specify the PROXY server as JVM parameter, such as: -Dhttp.proxyHost=proxy.host.name -Dhttp.proxyPort=portNumber -Dhttps.proxyHost=proxy.host.name -Dhttps.proxyPort=portNumber Besides the keys mentioned IHttpRequest.execute(org.safs.net.IHttpRequest.HttpCommand, String, boolean, Map, String) , the returned Map may also contain Key#REQUEST_HEADERS . |
java.util.Map<java.lang.String,java.lang.Object> |
XMLHttpRequest.execute(IHttpRequest.HttpCommand command,
java.lang.String url,
boolean async,
java.lang.String data)
Send a HTTP Request and get the response from the server.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
WDLibrary.WD_XMLHttpRequest.execute(IHttpRequest.HttpCommand command,
java.lang.String url,
boolean async,
java.util.Map<java.lang.String,java.lang.String> headers,
java.lang.String data)
Implementation: through
WDLibrary , execute JavaScriptFunctions.sendHttpRequest(Map) .For synchronous execution, all results will be stored in the returned Map result with one value of IHttpRequest.Key ;For asynchronous execution, except IHttpRequest.Key.READY_STATE , the other values will not be in the returned Map result,
they will be stored in javascript global variables: |
Copyright © SAS Institute. All Rights Reserved.