Method Summary |
|
public void | addCookie(String name, String value, String domain) Add a cookie to the test context. |
public void | addCookie(Cookie cookie) Add a cookie to the test context. |
public void | addRequestHeader(String name, String value) Add a custom request header. |
public void | clearAuthorizations() Clear all authorizations (basic, digest, ntlm, proxy). |
public void | clearRequestHeaders() Clear custom request headers. |
public URL | getBaseUrl() Return the base URL for the test context. |
public List | getCookies() Return the cookies which have been added to the test context. |
public String | getDomain() Return the user domain. |
public Locale | getLocale() Return the locale established for the test context. |
public String | getPassword() Return the user password. |
public String | getProxyHost() |
public String | getProxyPasswd() |
public int | getProxyPort() |
public String | getProxyUser() |
public Map | getRequestHeaders() Get custom request headers. |
public String | getResourceBundleName() Return the test context resource bundle for expected value lookups. |
public String | getUser() Return the authorized user for the test context. |
public String | getUserAgent() |
public boolean | hasAuthorization() Return true if a basic authentication has been set on the context via
TestContext.setAuthorization . |
public boolean | hasCookies() Return true if one or more cookies have been added to the test context. |
public boolean | hasNTLMAuthorization() Return true if a NTLM authentication has been set on the context via
TestContext.setNTLMAuthorization . |
public boolean | hasProxyAuthorization() Return true if a proxy authentication has been set on the context via
TestContext.setProxyAuthorization . |
public boolean | hasUserAgent() |
public void | removeRequestHeader(String name) Remove a custom request header. |
public void | setAuthorization(String user, String passwd) Set basic authentication information for the test context. |
public void | setBaseUrl(String url) Set the base url for the test context. |
public void | setBaseUrl(URL url) Set the base url for the test context.
Parameters: url - Base url value. |
public void | setLocale(Locale locale) Set the locale for the test context. |
public void | setNTLMAuthorization(String user, String passwd, String domain) Set NTLM authentication information for the test context. |
public void | setProxyAuthorization(String user, String passwd, String host, int port) Set proxy authentication information for the test context. |
public void | setResourceBundleName(String name) Set a resource bundle to use for the test context (will be used to lookup expected values by key in WebTester). |
public void | setUserAgent(String userAgent) |