8 messages in com.canoo.lists.webtestRE: [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:RE: [Webtest] Web test woes
From:Dierk Koenig (dier@canoo.com)
Date:02/24/2005 07:34:08 AM
List:com.canoo.lists.webtest

Web test woesHi Derek,

welcome to Canoo WebTest.

comments are inline

-----Original Message----- From: webt@lists.canoo.com [mailto:webt@lists.canoo.com]On Behalf Of Derek Clarkson Sent: Donnerstag, 24. Februar 2005 2:48 To: 'webt@lists.canoo.com' Subject: [Webtest] Web test woes

..

BUILD FAILED C:\canoo\tests\lpi-logon-test:6: taskdef A class needed by class com.canoo.webtest.extension.GroovyStep cannot be found: org/codehaus/groovy/control/CompilationFailedException

I added your issue as http://webtest-community.canoo.com/jira/browse/WT-30. Feel free to comment on this issue. This will also keep you updated on the progress of the resolving.

Then I tried the test only to have httpUnit crash and burn due to something in the java script:

Well, it's htmlunit actually, not httpUnit. I hope your computer did not melt-down :-)

[testSpec] ERROR (com.gargoylesoftware.htmlunit.ScriptEngine) - runtimeError: message=[Setter configured but not implemented for prperty "status" for com.gargoylesoftware.htmlunit.javascript.host.Window@1fa6d18. Cant set it to: org.mozilla.javascript.Undefined@14e571] sourceName=[null] line=[0] lineSource=[null] lineOffset=[0] [testSpec] INFO (com.canoo.webtest.steps.Step) - Exception thrown from this class: com.gargoylesoftware.htmlunit.ObjectInstantiatinException

Have you checked on the htmlunit site, whether "status" is supported for "Window" ? .....

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

[testSpec] INFO (com.canoo.webtest.steps.Step) - Exception thrown from this class: com.gargoylesoftware.htmlunit.ObjectInstantiatinException [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.gargoylesoftwre.htmlunit.html.HtmlFrame(com.gargoylesoftware.htmlunit.ht ml.HtmlPage,java.util.Map)] .....

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

There is something "special" about your frame that htmlunit doesn't understand.Can you provide the html souce?

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.

If you are not about to _test_ the frames and JS but the data processing only, you may directly invoke your "data_entry_form.jsp" and proceed from there. This may lead you around some frame/JS problems.

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.

It may be that HtmlUnit (and thus WebTest) currently do not provide all features that you would like to see in order to test your "particularly badly written site". But taking this as a sign of "immature code" is a rather long throw.

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!"