|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--junit.framework.Assert | +--junit.framework.TestCase | +--com.netriser.xmltestsuite.testcases.XmlTestCase | +--com.netriser.xmltestsuite.testcases.fetch
XmlTestCase that fetches a web page. The url can be specified either
<fetch url="http://..."/>
<fetch page="x"/> ... <definePage url="http://..."> ... </definePage>
<with url="http://..."> <fetch/> </with url="http://...">
Variable substitution is performed before the fetch. Otherwise the fetch fails if a 400 OK is not received. Http redirections occur automatically.
To test the content of the response use in conjunction with verify
and <definePage>
To verify the links recursively use in conjunction with verifylinks
<fetch url="http://..."/> <verifylinks depth="2" onsiteonly="true"/>
The fetch construct can be used with urls of the form http, file and ftp. It can be used to fetch with the https protocol if java has been correctly configured.
Constructor Summary | |
fetch(java.lang.String fName)
|
Method Summary | |
void |
setLink(java.lang.String s)
|
void |
setQuerystring(java.lang.String s)
|
void |
setUrl(java.lang.String s)
set Url. |
Methods inherited from class com.netriser.xmltestsuite.testcases.XmlTestCase |
getElementList, getXmlElement, setForm, setFrame, setFrameName, setHtmlWarnings, setPage, setPageElement, setStepid, setWindowName, setXmlElement |
Methods inherited from class junit.framework.TestCase |
countTestCases, getName, run, run, runBare, setName, toString |
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, wait, wait, wait |
Constructor Detail |
public fetch(java.lang.String fName)
TestCase.TestCase(String)
Method Detail |
public void setQuerystring(java.lang.String s)
public void setLink(java.lang.String s)
public void setUrl(java.lang.String s)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |