6 messages in com.canoo.lists.webtestRe: [Webtest] no confirm handler inst...
FromSent OnAttachments
Matt Raible05 Dec 2004 08:59 
Matt Raible05 Dec 2004 09:22 
Paul King05 Dec 2004 14:14 
Paul King13 Dec 2004 16:51 
Dierk Koenig14 Dec 2004 02:20 
HUR...@Nationwide.com14 Dec 2004 14:35 
Subject:Re: [Webtest] no confirm handler installed
From:HUR...@Nationwide.com (HUR@Nationwide.com)
Date:12/14/2004 02:35:56 PM
List:com.canoo.lists.webtest

Oh, I want these custom steps, but there is no way I am jumping through more corporate hoops to get the tools that I need (clover, CVS, etc.) to be able to do custom builds form the source. And I can't do it myself because I don't have administrative access. Too much bureaucracy here....It took over a week just to get a suitable JavaSDK installed.

Any chance these will be incorporated in an upcoming release??

Jerry

Paul King <pau@asert.com.au>

Sent by: webt@gate2.canoo.com

12/13/2004 06:52 PM Please respond to webtest

T To: webt@gate2.canoo.com cc:

bcc: Subject: Re: [Webtest] no confirm handler installed

I have uploaded a HtmlUnit version of DialogSteps to the community website. The new version contains two (differently named) custom steps:

PrepareDialogResponse VerifyNoDialogResponses

The first allows a queue of JavaScript user responses (or just one) to be prepared prior to a clicklink or clickbutton step which invokes JavaScript. There is support for Alert, Confirm and Prompt JavaScript dialogs and there is also a provision for saving the dialog text for later checking using VerifyProperty.

To make sure all the responses you prepared were actually used by JavaScript you can use VerifyNoDialogResponses after the click step.

http://webtest-community.canoo.com/wiki/space/DialogSteps

Cheers, Paul.

Matt Raible wrote:

I found the following - which I believed would let me solve this issue:

http://webtest-community.canoo.com/wiki/space/DialogSteps

However, it appears the JAR needs HttpUnit and I'm not sure which version. I tried 1.6 and 1.5.3 - here's the error I'm getting:

[canoo] java.lang.NoSuchMethodError: com.canoo.webtest.engine.Context.getWeb Conversation()Lcom/meterware/httpunit/WebConversation; [canoo] at com.canoo.webtest.extension.VerifyDialogText.doExecute(Verify DialogText.java:74)

Anyone know which version of HttpUnit this patch requires?

Thanks,

I just started using the latest build574 (with JavaScript support) to test a JSF application. Everything's been working great so far - much better than build543. The one issue I'm having is I have a delete button that requires users to confirm with a confirm dialog. Here's the error I'm getting:

AddUser: [canoo] [appfuse] WARN [main] Window.jsFunction_confirm(125) | window.confir m("Are you sure you want to delete this User?") no confirm handler installed

Two questions:

1. How do I install a confirm handler? 2. Can I turn of JavaScript for this one test?

Thanks,