|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--junit.framework.Assert | +--com.netriser.xmltestsuite.TestResource | +--com.netriser.xmltestsuite.BrowserResource
This object represents a web browser. The settings are initialised from the xml file The default settings are from the xml dtd file
Method Summary | |
void |
setAcceptCookies(java.lang.String acceptCookies)
Specifies whether HttpUnit should accept and send cookies. |
void |
setAcceptGzip(java.lang.String acceptGzip)
Specifies whether a WebClient will be initialized to accept GZIP encoded responses. |
void |
setApplicationCodeName(java.lang.String applicationCodeName)
Method setApplicationCodeName. |
void |
setApplicationName(java.lang.String applicationName)
Method setApplicationName. |
void |
setApplicationVersion(java.lang.String applicationVersion)
Method setApplicationVersion. |
void |
setAutoRedirect(java.lang.String autoRedirect)
Determines whether HttpUnit should automatically follow page redirect requests (status 3xx). |
void |
setAutoRefresh(java.lang.String autoRefresh)
Specifies whether HttpUnit should automatically follow page refresh requests. |
void |
setCheckContentLength(java.lang.String checkContentLength)
Specifies whether HttpUnit should throw an exception when the content length of a message does not match its actual received length. |
void |
setDefaultCharacterSet(java.lang.String characterSet)
Sets the default character set for pages which do not specify one and for requests created without HTML sources. |
void |
setDefaultContentType(java.lang.String contentType)
Sets the default content type for pages which do not specify one. |
void |
setExceptionsThrownOnScriptError(java.lang.String throwExceptions)
Determines whether script errors result in exceptions or warning messages. |
void |
setImagesTreatedAsAltText(java.lang.String asText)
If true, tells HttpUnit to treat images with alt attributes as though they were the text value of that attribute in all searches and displays. |
void |
setLoggingHttpHeaders(java.lang.String enabled)
If true, tells HttpUnit to log HTTP headers to system output. |
void |
setMatchesIgnoreCase(java.lang.String ignoreCase)
If true, text matches in internal methods are case insensitive. |
void |
setParameterValuesValidated(java.lang.String validated)
If true, tells HttpUnit to throw an exception on any attempt to set a form parameter to a value which could not be set via the browser. |
void |
setParser(java.lang.String name)
Method setParser. |
void |
setParserWarningsEnabled(java.lang.String enabled)
If true, tells the parser to display warning messages. |
void |
setPlatform(java.lang.String platform)
Method setPlatform. |
static void |
setPostIncludesCharset(boolean postIncludesCharset)
Determines whether a normal POST request will include the character set in the content-type header. |
void |
setRedirectDelay(java.lang.String delayInMilliseconds)
Sets the delay, in milliseconds, before a redirect request is issued. |
void |
setScreenHeight(java.lang.String availHeight)
Method setScreenHeight. |
void |
setScreenWidth(java.lang.String availWidth)
Method setScreenWidth. |
void |
setScriptingEnabled(java.lang.String scriptingEnabled)
Method setScriptingEnabled. |
void |
setTestErrorIfHttpErrorStatus(java.lang.String enabled)
If true, WebClient.getResponse throws an exception when it receives an error status. |
void |
setUp()
Setup the resource before the tests are run |
void |
setUserAgent(java.lang.String userAgent)
Method setUserAgent. |
void |
tearDown()
Tidy up the resource after the tests are run |
Methods inherited from class com.netriser.xmltestsuite.TestResource |
debug, getDebugMode, getVerboseMode, setDebug, setVerbose, useTestResult, verbose |
Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public void setUp()
TestResource
setUp
in interface TestResourceInterface
setUp
in class TestResource
TestResourceInterface.setUp()
public void tearDown()
TestResource
tearDown
in interface TestResourceInterface
tearDown
in class TestResource
TestResourceInterface.tearDown()
public void setParser(java.lang.String name)
name
- Default is neko; valid values neko|tidypublic void setApplicationCodeName(java.lang.String applicationCodeName)
applicationCodeName
- public void setApplicationName(java.lang.String applicationName)
applicationName
- public void setApplicationVersion(java.lang.String applicationVersion)
applicationVersion
- public void setUserAgent(java.lang.String userAgent)
userAgent
- public void setPlatform(java.lang.String platform)
platform
- public void setScreenWidth(java.lang.String availWidth)
availWidth
- public void setScreenHeight(java.lang.String availHeight)
availHeight
- public void setAcceptCookies(java.lang.String acceptCookies)
public void setAcceptGzip(java.lang.String acceptGzip)
public void setDefaultCharacterSet(java.lang.String characterSet)
public void setCheckContentLength(java.lang.String checkContentLength)
public static void setPostIncludesCharset(boolean postIncludesCharset)
public void setDefaultContentType(java.lang.String contentType)
public void setTestErrorIfHttpErrorStatus(java.lang.String enabled)
public void setParserWarningsEnabled(java.lang.String enabled)
public void setParameterValuesValidated(java.lang.String validated)
public void setImagesTreatedAsAltText(java.lang.String asText)
public void setMatchesIgnoreCase(java.lang.String ignoreCase)
public void setLoggingHttpHeaders(java.lang.String enabled)
public void setAutoRedirect(java.lang.String autoRedirect)
public void setRedirectDelay(java.lang.String delayInMilliseconds)
public void setAutoRefresh(java.lang.String autoRefresh)
public void setScriptingEnabled(java.lang.String scriptingEnabled)
scriptingEnabled
- public void setExceptionsThrownOnScriptError(java.lang.String throwExceptions)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |