|
|||||||||||
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.outputTidy
XmlTestCase that outputs the url of the most recent http request and the formatted html response. This class can be useful when debugging, or when modifying HTML to make it compliant.
When a HTML response is parsed, a package called jtidy is used. With malformed malformed HTML Jtidy make a best guess as to the intended meaning. Sometimes with malformed HTML jtidy will parse the HTML in a different way than your browser, and elements which appear in the HTML response are not accessible to the test classes.
To identify these cases, use the fetch::htmlWarnings flag. If this doesn't help, use outputHTML and outputTidy and compare the outputs.
<fetch url="..." htmlWarnings="true"/> <outputHTML/> <outputTidy/>
The ouput is to the stream stderr, which can be redirected to a file,
xmltestsuite >output.txt
To redirect in a Windows command window use stderr or use a unix like shell such as cygwin.
outputHTML
Constructor Summary | |
outputTidy(java.lang.String fName)
|
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 outputTidy(java.lang.String fName)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |