4 messages in com.canoo.lists.webtest[Webtest] Re: no confirm handler inst...
FromSent OnAttachments
HUR...@Nationwide.com15 Dec 2004 09:24 
Paul King15 Dec 2004 21:13 
HUR...@Nationwide.com16 Dec 2004 06:39 
HUR...@Nationwide.com16 Dec 2004 08:29 
Subject:[Webtest] Re: no confirm handler installed
From:HUR...@Nationwide.com (HUR@Nationwide.com)
Date:12/15/2004 09:24:14 AM
List:com.canoo.lists.webtest

I am having a strangely difficult time locating the PrepareDialogResponse and VerifyNoDialogResponses java files.

I went to 'Start > DialogSteps' and 'Start > Dialog Steps > HTML Unit' pages from the Contributions and Uploads page, but didn't see any files (including the upper right hand corner where [add label] and [add file] are located.) I see lots of documentation though.

Am I looking in the wrong place for the source files?

Jerry

"Paul King" <paulk-V+QuBF@public.gmane.org> wrote in message news:<41BE@asert.com.au>...

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.

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,