3 messages in com.canoo.lists.webtest[Webtest] Ten steps to build 226 self...| From | Sent On | Attachments |
|---|---|---|
| Dennis Carroll | 21 May 2002 12:54 | |
| Eric Pugh | 21 May 2002 13:29 | |
| sanghamitra das | 21 May 2002 22:33 |
| Subject: | [Webtest] Ten steps to build 226 selftest![]() |
|---|---|
| From: | Dennis Carroll (Denn...@DOT.STATE.MN.US) |
| Date: | 05/21/2002 12:54:19 PM |
| List: | com.canoo.lists.webtest |
This is what I had to change to get the selftest of build 226 to work. The
targets that failed and the fixes are listed.
1. Downloaded build 226: (build.zip and selfTest.war.zip)
2. Initial setup - Extracted build.zip to <CANOODIR> - Extracted doc.zip to <CANOODIR>\doc - Extracted src.zip to <CANOODIR>
3. Initial build - Ran ant
selfTestWar:
BUILD FAILED
<CANOODIR>\build.xml:106: Deployment descriptor:
<CANOODIR>\doc\webapp-info\web.xml does not exist.
4. Extracted web.xml from selfTest.war.zip to <CANOODIR>\doc\webapp-info; re-ran
ant in <CANOODIR>
selfTestWar:
BUILD FAILED
<CANOODIR>\build.xml:106: <CANOODIR>\doc\webapp-info\sample-docs not found.
5. Created <CANOODIR>\doc\webapp-info\sample-docs re-ran ant in <CANOODIR> ------------------------- selfTestWar: [war] Building war: <CANOODIR>\deploy\selftest.war [copy] Copying 1 file to <CANOODIR>\${selftest.server.webapp.dir}
mayUnWarSelftest:
mayRestart:
deploySelf:
functionalTest:
BUILD FAILED
<CANOODIR>\build.xml:84: <CANOODIR>\${resultpath} not found.
6. Taking note of the lines <property file="server.properties"/> in build.xml <property file="${root.dir}/server.properties"/> in doc\samples\selfTestImpl.xml - Created server.properties in <CANOODIR>. Its contents: host=localhost port=8080 protocol=http basepath=selftest summary=true saveresponse=true verbose=false defaultpage=/servlet/form resultpath=<CANOODIR>\\doc\\samples\\results selftest.server.webapp.dir=<TOMCAT_HOME>\\webapps
- Deleted <CANOODIR>\${selftest.server.webapp.dir} re-ran ant in <CANOODIR> -------------------------
functionalTest:
BUILD FAILED
<CANOODIR>\build.xml:84: <CANOODIR>\doc\samples\results not found.
7. Created <CANOODIR>\doc\samples\results re-ran ant in <CANOODIR> ------------------------ functionalTest:
BUILD FAILED
<CANOODIR>\build.xml:84: <TOMCAT_HOME>\webapps\selftest not found.
8. Started the Tomcat server re-ran ant in <CANOODIR> ----------------------- functionalTest: Overriding previous definition of reference to test Overriding previous definition of reference to test
prepareResultDir:
sampleUse:
testHttpHeader:
testTitle:
testNot:
testElements:
testText:
testRegEx:
testElementText:
testClickLink:
testLinkCheck: [testSpec] line 8 column 31 - Warning: unescaped & or unknown entity "&field1" [testSpec] line 13 column 31 - Warning: unescaped & or unknown entity "&forms" [testSpec] line 8 column 31 - Warning: unescaped & or unknown entity "&field1" [testSpec] line 13 column 31 - Warning: unescaped & or unknown entity "&forms" [testSpec] line 8 column 31 - Warning: unescaped & or unknown entity "&field1" [testSpec] line 13 column 31 - Warning: unescaped & or unknown entity "&forms" [testSpec] line 8 column 31 - Warning: unescaped & or unknown entity "&field1" [testSpec] line 13 column 31 - Warning: unescaped & or unknown entity "&forms" [testSpec] line 8 column 31 - Warning: unescaped & or unknown entity "&field1" [testSpec] line 13 column 31 - Warning: unescaped & or unknown entity "&forms" [testSpec] line 42 column 63 - Warning: unescaped & or unknown entity "&forms" [testSpec] line 8 column 31 - Warning: unescaped & or unknown entity "&field1" [testSpec] line 13 column 31 - Warning: unescaped & or unknown entity "&forms" [testSpec] line 42 column 63 - Warning: unescaped & or unknown entity "&forms" [testSpec] line 8 column 31 - Warning: unescaped & or unknown entity "&field1" [testSpec] line 13 column 31 - Warning: unescaped & or unknown entity "&forms" [testSpec] line 42 column 63 - Warning: unescaped & or unknown entity "&forms" [testSpec] line 8 column 31 - Warning: unescaped & or unknown entity "&field1" [testSpec] line 13 column 31 - Warning: unescaped & or unknown entity "&forms" [testSpec] line 41 column 58 - Warning: unescaped & or unknown entity "&radio" [testSpec] line 8 column 31 - Warning: unescaped & or unknown entity "&field1" [testSpec] line 13 column 31 - Warning: unescaped & or unknown entity "&forms" [testSpec] line 42 column 63 - Warning: unescaped & or unknown entity "&forms" [testSpec] line 8 column 31 - Warning: unescaped & or unknown entity "&field1" [testSpec] line 13 column 31 - Warning: unescaped & or unknown entity "&forms" [testSpec] line 41 column 58 - Warning: unescaped & or unknown entity "&radio"
BUILD FAILED
Failure: Test "linkcheck" failed at step "depth=2,onsiteonly" with message "Step
"depth=2,onsiteonly" (4/7): broken Link(s) :
http://localhost:8080/selftest/ReadMe.pdf on
http://localhost:8080/selftest/formTest?mode=getTest&forms=multiple;
http://localhost:8080/selftest/WebTest.doc on
http://localhost:8080/selftest/formTest?mode=getTest&forms=multiple;
http://localhost:8080/selftest/ReadMe.pdf on
http://localhost:8080/selftest/formTest?mode=getTest&forms=multiple;
http://localhost:8080/selftest/WebTest.doc on
http://localhost:8080/selftest/formTest?mode=getTest&forms=multiple; "
9. Extracted directories . and manual from selfTest.war.zip to
<CANOODIR>\doc\samples\info;
Changed
<property name="start.page" value="formTest"/>
to
<property name="start.page" value="form"/>
in doc\samples\selfTestImpl.xml
In FormTestServlet.java, changed
out.println("<a href=\"ReadMe.pdf\">pdf document</a>");
out.println("<br>");
out.println("<a href=\"WebTest.doc\">word document</a>");
to
out.println("<a href=\""+request.getContextPath()+"/ReadMe.pdf\">pdf
document</a>");
out.println("<br>");
out.println("<a href=\""+request.getContextPath()+"/WebTest.doc\">word
document</a>");
re-ran ant in <CANOODIR> ------------------------- testXPath:
testClickButton:
BUILD FAILED
Failure: Test "Locating submit buttons and submitting the respective forms"
failed at step "click the image button" with message "Step "click the image
button" (20/25): Page not found: POST request for form"
10. Changed
<invoke stepid="Access test page in button mode"
url="formTest?mode=buttonTest"/>
to <invoke stepid="Access test page in button mode"
url="servlet/form?mode=buttonTest"/>
in doc\samples\selfTestImpl.xml
re-ran ant in <CANOODIR>
-------------------------
applySingle:
[style] Processing <CANOODIR>\doc\samples\WebTestReport.xml to
<CANOODIR>\doc\samples\Te
stResultOverview.html
[style] Loading stylesheet <CANOODIR>\doc\samples\WebTestReport.xsl
[style] Failed to read stylesheet <CANOODIR>\doc\samples\WebTestReport.xsl
[style] Failed to process <CANOODIR>\doc\samples\WebTestReport.xml
BUILD FAILED
<CANOODIR>\doc\samples\ApplyXSL.xml:47:
javax.xml.transform.TransformerConfigurationException: javax.
xml.transform.TransformerException: javax.xml.transform.TransformerException:
xsl:import is not allowed in thi
s position in the stylesheet!
Unable to fix this glitch. Workaround:
in <>\doc\samples ant -buildfile ApplyXSL.xml applySingle




