8 messages in com.canoo.lists.webtest[Webtest] Web test woes| From | Sent On | Attachments |
|---|---|---|
| Derek Clarkson | 23 Feb 2005 17:47 | |
| Lisa Crispin | 23 Feb 2005 20:23 | |
| Dierk Koenig | 24 Feb 2005 07:34 | |
| Edward O'Flynn | 24 Feb 2005 07:51 | |
| Derek Clarkson | 24 Feb 2005 15:54 | |
| Paul King | 24 Feb 2005 20:01 | |
| Derek Clarkson | 24 Feb 2005 20:21 | |
| Marc Guillemot | 27 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.
Regards, Derek Clarkson Global Applications Lonely Planet Publications ph: (03) 8379-8000 Direct: (03) 8379-8100-8401 "It's not a bug - it's an undocumented feature!"
______________________________________________________________________ This email, including attachments, is intended only for the addressee and may be confidential, privileged and subject to copyright. If you have received this email in error, please advise the sender and delete it. If you are not the intended recipient of this email, you must not use, copy or disclose its content to anyone. You must not copy or communicate to others content that is confidential or subject to copyright, unless you have the consent of the content owner.




