6 messages in com.canoo.lists.webtestRE: [Webtest] FW: help
FromSent OnAttachments
Dierk König10 May 2002 04:28 
Dierk König10 May 2002 05:15 
Eric Pugh10 May 2002 06:49 
Dierk König10 May 2002 07:59 
Eric Pugh13 May 2002 09:05 
Dierk König23 May 2002 02:00 
Subject:RE: [Webtest] FW: help
From:Dierk König (Dier@canoo.com)
Date:05/10/2002 05:15:27 AM
List:com.canoo.lists.webtest

Hi Heiko,

WebTest cannot test JavaSkript.

Therefore you will not be able to test, that your go_to_login() function return the proper String.

But you can test that the anchor calls the login function to determine the href. (you can use verifytext with regex for this or verifyxpath).

To navigate to the expected href you cannot just follow the link. You need to do an explicit invoke step with the expected href.

hope that helps Mittie

-----Original Message----- From: webt@lists.canoo.com [mailto:webt@lists.canoo.com]On Behalf Of Ritzmann, Heiko Sent: Freitag, 10. Mai 2002 11:33 To: 'webt@lists.canoo.com' Subject: WG: help

Heiko Ritzmann Software Development GODYO AG Prüssingstraße 35 D-07745 Jena

-----Ursprüngliche Nachricht----- Von: Ritzmann, Heiko Gesendet: Freitag, 10. Mai 2002 11:24 An: 'WebT@lists.canoo.com' Betreff: help

Hi,

is it possible to test something like the following code with cocoon?

... <script language="JavaScript"> function go_to_login(){

window.open('login','BauerfeindLogin','width=313,height=176,left=3 00,top=250 '); } </script> ... <a href="javascript:go_to_login();" name="toLogin"> <img src="../images/bf_logo.gif" border="0" alt="Zum Login"/> </a>

If I do a test like this

<clicklink stepid="Klick den Link zur Login-Seite" label="Zum Login"/>,

I get the error message:

"Error encountered: normal(com.canoo.webtest.engine.ConfigurableTestCase): unknown protocol: javascript ..."

Thanks

Heiko

Heiko Ritzmann Software Development GODYO AG Prüssingstraße 35 D-07745 Jena