8 messages in com.canoo.lists.webtest[Webtest] Web test woes
FromSent OnAttachments
Derek Clarkson23 Feb 2005 17:47 
Lisa Crispin23 Feb 2005 20:23 
Dierk Koenig24 Feb 2005 07:34 
Edward O'Flynn24 Feb 2005 07:51 
Derek Clarkson24 Feb 2005 15:54 
Paul King24 Feb 2005 20:01 
Derek Clarkson24 Feb 2005 20:21 
Marc Guillemot27 Feb 2005 06:44 
Subject:[Webtest] Web test woes
From:Derek Clarkson (Dere@lonelyplanet.com.au)
Date:02/23/2005 05:47:15 PM
List:com.canoo.lists.webtest

Hi all, First time user. Using Ant 1.6.2, webtest 1.7.

First thing I did was install and then try a modded version of the basic sample to access our servers. It would not work. Kept coming up with BUILD FAILED C:\canoo\tests\lpi-logon-test:6: taskdef A class needed by class com.canoo.webtest.extension.GroovyStep cannot be found: org/codehau s/groovy/control/CompilationFailedException

I had to add a line like this: <fileset dir="../" includes="**/lib/**/*.jar"/> To the classpaths to get it to work. Another fix I found was to copy the latest groovy jar from the optional direction to the parent lib directory.

Then I tried the test only to have httpUnit crash and burn due to something in the java script: [testSpec] ERROR (com.gargoylesoftware.htmlunit.ScriptEngine) - runtimeError: message=[Setter configured but not implemented for pr perty "status" for com.gargoylesoftware.htmlunit.javascript.host.Window@1fa6d18. Cant set it to: org.mozilla.javascript.Undefined@1 4e571] sourceName=[null] line=[0] lineSource=[null] lineOffset=[0] [testSpec] INFO (com.canoo.webtest.steps.Step) - Exception thrown from this class: com.gargoylesoftware.htmlunit.ObjectInstantiati nException .....

So I disabled javascript testing and got: [testSpec] INFO (com.canoo.webtest.steps.request.Target) - -> gotoTarget(by url): http://coopers.au.lpint.net/frame_default.jsp <http://coopers.au.lpint.net/frame_default.jsp> [testSpec] INFO (com.canoo.webtest.steps.Step) - Exception thrown from this class: com.gargoylesoftware.htmlunit.ObjectInstantiati nException [testSpec] ERROR (com.canoo.webtest.steps.Step) - Cannot handle unexpected exception in step InvokePage at C:\canoo\tests\lpi-logon test:23: with (stepId="get Login Page", url="/frame_default.jsp", stepType="invoke") [testSpec] com.gargoylesoftware.htmlunit.ObjectInstantiationException: Exception when calling constructor [public com.gargoylesoftw re.htmlunit.html.HtmlFrame(com.gargoylesoftware.htmlunit.html.HtmlPage,java. util.Map)] .....

Basically I'm reading this as httpunit not understanding something in the HTML (frames?).

The problem I have is that I want to setup a seris of tests for a particularly badly written site which makes heavy usage of frames and javascript. I need to test data entry and database results. Webtest looks like the ideal tool, but the code behind it is looking rather immature at the moment because I can't even get past the login page of the web site.

Any help appreciated.