*
The moose likes Testing and the fly likes Canoo web testing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Canoo web testing " Watch "Canoo web testing " New topic
Author

Canoo web testing

Dhanaraja Bheema Naik
Greenhorn

Joined: Mar 03, 2008
Posts: 1
Hello ,

I am experiencing the following error when I am trying to execute lenghty scripts. Could some body please help out .


org.apache.commons.httpclient.NoHttpResponseException

at com.canoo.webtest.steps.StepUtil.handleException(StepUtil.java:111)

at com.canoo.webtest.steps.Step.handleException(Step.java:372)

at com.canoo.webtest.steps.Step.execute(Step.java:103)

at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

at org.apache.tools.ant.Task.perform(Task.java:364)

at com.canoo.webtest.ant.TestStepSequence.executeSteps(TestStepSequence.java:43)

at com.canoo.webtest.ant.TestStepSequence.doExecute(TestStepSequence.java:31)

at com.canoo.webtest.steps.Step.execute(Step.java:100)

at org.apache.tools.ant.Task.perform(Task.java:364)

at com.canoo.webtest.ant.WebtestTask.execute(WebtestTask.java:197)

at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

at org.apache.tools.ant.Task.perform(Task.java:364)

at org.apache.tools.ant.Target.execute(Target.java:341)

at org.apache.tools.ant.Target.performTasks(Target.java:369)

at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)

at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)

at org.apache.tools.ant.Project.executeTargets(Project.java:1068)

at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)

at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

at org.apache.tools.ant.Task.perform(Task.java:364)

at org.apache.tools.ant.Target.execute(Target.java:341)

at org.apache.tools.ant.Target.performTasks(Target.java:369)

at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)

at org.apache.tools.ant.Project.executeTarget(Project.java:1185)

at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)

at org.apache.tools.ant.Project.executeTargets(Project.java:1068)

at org.apache.tools.ant.Main.runBuild(Main.java:668)

at org.apache.tools.ant.Main.startAnt(Main.java:187)

at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)

at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)

Caused by: org.apache.commons.httpclient.NoHttpResponseException: The server localhost failed to respond

at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1835)

at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1590)

at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:995)

at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)

at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)

at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)

at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)

at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:126)

at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1397)

at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1354)

at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:330)

at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:412)

at com.canoo.webtest.steps.request.TargetHelper.getResponse(TargetHelper.java:69)

at com.canoo.webtest.steps.request.AbstractTargetAction.getResponse(AbstractTargetAction.java:66)

at com.canoo.webtest.steps.request.InvokePage.findTarget(InvokePage.java:160)

at com.canoo.webtest.steps.request.AbstractTargetAction.doExecute(AbstractTargetAction.java:72)

at com.canoo.webtest.steps.Step.execute(Step.java:100)

... 27 more

--- Nested Exception ---

org.apache.commons.httpclient.NoHttpResponseException: The server localhost failed to respond

at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1835)

at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1590)

at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:995)

at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)

at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)

at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)

at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)

at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:126)

at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1397)

at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1354)

at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:330)

at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:412)

at com.canoo.webtest.steps.request.TargetHelper.getResponse(TargetHelper.java:69)

at com.canoo.webtest.steps.request.AbstractTargetAction.getResponse(AbstractTargetAction.java:66)

at com.canoo.webtest.steps.request.InvokePage.findTarget(InvokePage.java:160)

at com.canoo.webtest.steps.request.AbstractTargetAction.doExecute(AbstractTargetAction.java:72)

at com.canoo.webtest.steps.Step.execute(Step.java:100)

at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

at org.apache.tools.ant.Task.perform(Task.java:364)

at com.canoo.webtest.ant.TestStepSequence.executeSteps(TestStepSequence.java:43)

at com.canoo.webtest.ant.TestStepSequence.doExecute(TestStepSequence.java:31)

at com.canoo.webtest.steps.Step.execute(Step.java:100)

at org.apache.tools.ant.Task.perform(Task.java:364)

at com.canoo.webtest.ant.WebtestTask.execute(WebtestTask.java:197)

at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

at org.apache.tools.ant.Task.perform(Task.java:364)

at org.apache.tools.ant.Target.execute(Target.java:341)

at org.apache.tools.ant.Target.performTasks(Target.java:369)

at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)

at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)

at org.apache.tools.ant.Project.executeTargets(Project.java:1068)

at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)

at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

at org.apache.tools.ant.Task.perform(Task.java:364)

at org.apache.tools.ant.Target.execute(Target.java:341)

at org.apache.tools.ant.Target.performTasks(Target.java:369)

at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)

at org.apache.tools.ant.Project.executeTarget(Project.java:1185)

at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)

at org.apache.tools.ant.Project.executeTargets(Project.java:1068)

at org.apache.tools.ant.Main.runBuild(Main.java:668)

at org.apache.tools.ant.Main.startAnt(Main.java:187)

at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)

at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Vanchi Nathan
Ranch Hand

Joined: Feb 24, 2004
Posts: 107
hi,

Think that you did not start your server while executing the webtest app.


Best regards,<br /> <br />vanchin
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Canoo web testing
 
Similar Threads
Portal 10.2 Deployment -- mdimport Error
Fully Automate Build & Deployment Using Ant
Issue in deploying WAR file on websphere using ant
Linux diff command failing from ANT
SQL