[Webtest] UnknownHostException problem after WebTest install

Marc Guillemot webtest@lists.canoo.com
Mon, 29 Sep 2003 16:42:53 +0200


Hi Peter,

I've no idea how/if it is possible to get an older version of webtest. Indeed it 
seems, webtest is lacking some build archives.

You can use the current build for your own tests (that's what I use). It works 
correctly for tests over http but would fail (I guess) for tests over the file 
system.

Marc.



Peter Cruickshank wrote:
> Hi Marc 
> 
> Thanks for getting back so quickly...
> 
> Ah well, at least it's not somethings I'm doing!
> 
> Would it be possible to make an older version of webtest available until you 
> get the chance to fix httpunit?
> 
> otherwise, I'll sit back and wait developments :-)
> 
> Peter
> 
> On Monday 29 Sep 2003 3:13 pm, Marc Guillemot wrote:
> 
>>Hi,
>>
>>I've faced the same problem, and I think this comes from a bug in the last
>>version of httpunit when getting a file from the file system. Indeed with
>>version 1.5.4, the following code produce the same error as the one you
>>mention:
>>
>>WebConversation webConv = new WebConversation();
>>webConv.getResponse("file:///home/marc/EWorkspace/CanooWebtests/doc/samples
>>/testfile.html");
>>
>>
>>but with httpunit 1.5.3 or 1.4.5 it works properly.
>>
>>If this is really an httpunit bug and as webtest now relies on httpunit
>>1.5.4, I guess we have to hack httpunit to fix it as long as it's not
>>solved in a new httpunit release.
>>
>>Marc.
>>
>>Peter Cruickshank wrote:
>>
>>>Hi guys
>>>
>>>I've installed Webtest on my Mandrake 9.1 system, and have just hit the
>>>same problem reported by Wei Chena few days ago - output at the end of
>>>this message
>>>
>>>Here's some more information and thoughts, which might be helpful...
>>>
>>>I have installed webtest into /usr/local/webtest
>>>
>>>PATH=/usr//bin:/bin:/usr/bin::/usr/local/bin:/usr/X11R6/bin:/usr/games:/h
>>>ome/ mytest/bin:/usr/local/apache-ant-1.5.4/bin
>>>JAVA_HOME=/usr/java/j2sdk1.4.2_01
>>>ANT_HOME=/usr/local/apache-ant-1.5.4
>>>(Note - CLASSPATH is not set... could this be the problem?)
>>>
>>>I am running Apache 2 (and the httpd daemon is running) - web root is
>>>/var/www/html - ie webtest is outside the webroot...
>>>
>>>I have been successfully run the Java demo scripts, so Java seems to be
>>>OK, it's been a while since I played with java, so I may have missed some
>>>vital step.
>>>
>>>Are any changed needed to the Apache conf? - for instance, does Ant
>>>require jakarta to be installed? I've not used Ant before, so I'm not
>>>sure how to make sure that it's working...
>>>
>>>Loads of questions I know - but I'm keen to get the hang of webtest so
>>>that I can be sure that the web code I'm writing actually works!
>>>
>>>Thanks in advance for any help or ideas
>>>
>>>Cheers
>>>
>>>Peter
>>>
>>>----------
>>>
>>>[peter@main samples]$  ant -buildfile installTest.xml
>>>Buildfile: installTest.xml
>>>
>>>checkANT:
>>>
>>>mayPrintANTError:
>>>
>>>checkWebTest:
>>>
>>>BUILD FAILED
>>>file:/usr/local/webtest/doc/samples/installTest.xml:9: Test failed.
>>>Exception raised: com.canoo.webtest.engine.StepExecutionException:
>>>Unexpected exception caught: java.net.UnknownHostException:
>>>usrcom.canoo.webtest.engine.StepExecutionException: Unexpected exception
>>>caught: java.net.UnknownHostException: usr
>>>         at
>>>com.canoo.webtest.steps.Step.handleUnexpectedException(Step.java:307)
>>>         at
>>>com.canoo.webtest.steps.request.Target.protectedGoto(Target.java:182)
>>>         at
>>>com.canoo.webtest.steps.request.Target.gotoTarget(Target.java:228)
>>>         at
>>>com.canoo.webtest.steps.request.InvokePage.doExecute(InvokePage.java:41)
>>>         at com.canoo.webtest.steps.Step.execute(Step.java:69)
>>>         at com.canoo.webtest.engine.Engine.executeSteps(Engine.java:32)
>>>         at
>>>com.canoo.webtest.ant.TestSpecificationTask.execute(TestSpecificationTask
>>>.jav a:72) at
>>>org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
>>>         at org.apache.tools.ant.Task.perform(Task.java:341)
>>>         at org.apache.tools.ant.Target.execute(Target.java:309)
>>>         at org.apache.tools.ant.Target.performTasks(Target.java:336)
>>>         at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
>>>         at
>>>org.apache.tools.ant.Project.executeTargets(Project.java:1255) at
>>>org.apache.tools.ant.Main.runBuild(Main.java:609)
>>>         at org.apache.tools.ant.Main.start(Main.java:196)
>>>         at org.apache.tools.ant.Main.main(Main.java:235)
>>>
>>>
>>>Total time: 8 seconds
>>>
>>>_______________________________________________
>>>WebTest mailing list
>>>WebTest@lists.canoo.com
>>>http://lists.canoo.com/mailman/listinfo/webtest
>>
>>_______________________________________________
>>WebTest mailing list
>>WebTest@lists.canoo.com
>>http://lists.canoo.com/mailman/listinfo/webtest
> 
>