Hi,
While running the Functional Test using PushToTest_TestMaker, our test fail with this error "com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException: 404 Not Found".
Selenese command:
<tr>
<td>clickAndWait</td>
<td>link=News</td>
<td></td>
</tr>
Err.log:
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.pushtotest.testmaker.XSTest.Scenario.Executer.execute(Executer.java:144)
at com.pushtotest.testmaker.XSTest.Scenario.ScriptRunner.runTestOnce(ScriptRunner.java:463)
at com.pushtotest.testmaker.XSTest.Scenario.ScriptRunner.run(ScriptRunner.java:531)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.pushtotest.testmaker.XSTest.Scenario.Selenium.SeleneseRunner.executeCommand(SeleneseRunner.java:172)
at com.pushtotest.testmaker.XSTest.Scenario.Selenium.SeleneseRunner.runActions(SeleneseRunner.java:122)
... 7 more
Caused by: com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException: 404 Not Found for
www.testserver.com/admin/js/feedback.js?x=203at com.gargoylesoftware.htmlunit.WebClient.throwFailingHttpStatusCodeExceptionIfNecessary(WebClient.java:508)
at com.gargoylesoftware.htmlunit.html.HtmlPage.loadJavaScriptFromUrl(HtmlPage.java:1000)
at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:950)
at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:356)
at com.gargoylesoftware.htmlunit.html.HtmlScript$1.execute(HtmlScript.java:225)
at com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:235)
at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:692)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601)
at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:650)
at org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1136)
at org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1038)
at org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:206)
at org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:329)
at org.cyberneko.html.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:3043)
at org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1983)
at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:910)
at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499)
at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:107)
at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:896)
at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:350)
at com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:304)
at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:134)
at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:101)
at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:419)
at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:302)
at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:359)
at com.pushtotest.selenium.SeleniumHtmlunitBase.open(SeleniumHtmlunitBase.java:119)
at com.pushtotest.selenium.SeleniumHtmlunit.open(SeleniumHtmlunit.java:246)
... 13 more
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.pushtotest.testmaker.XSTest.Scenario.Executer.execute(Executer.java:144)
at com.pushtotest.testmaker.XSTest.Scenario.ScriptRunner.runTestOnce(ScriptRunner.java:463)
at com.pushtotest.testmaker.XSTest.Scenario.ScriptRunner.run(ScriptRunner.java:531)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.pushtotest.testmaker.XSTest.Scenario.Selenium.SeleneseRunner.executeCommand(SeleneseRunner.java:172)
at com.pushtotest.testmaker.XSTest.Scenario.Selenium.SeleneseRunner.runActions(SeleneseRunner.java:122)
How to make it find the path to
.../admin/js/feedback.js that locates on the web server?
Thanks!!!