3 messages in com.canoo.lists.webtestRE: [Webtest] Javascript usage
FromSent OnAttachments
Sipe, Andrew23 Apr 2003 14:31 
Dierk Koenig localhost06 May 2003 00:35 
Aatish Arora08 May 2003 03:27.Other, .zip
Subject:RE: [Webtest] Javascript usage
From:Aatish Arora (a_aa@yahoo.com)
Date:05/08/2003 03:27:04 AM
List:com.canoo.lists.webtest
Attachments:
verifyalertsyntax - 0.5k
Canoo.zip - 17k

Hi Mittie,

Here is some support for Javascript alerts (courtesy Jitendra Chavan). They can be verified using the following tag:

<verifyalerttext stepid="Check the alert box text to verify the error" text="Please Enter username"/>

The src files are included herewith. Again this is only for alerts and not for confirmations.

If anyone needs the Jar file - Ill mail it on the list too.

Cheers! Aatish

--- Dierk Koenig localhost <dier@canoo.com> wrote:

Javascript usageHi Andy,

this feature is not (yet) supported.

I don't see that support will come in the near future.

sorry Mittie -----Original Message----- From: webt@lists.canoo.com [mailto:webt@lists.canoo.com]On Behalf Of Sipe, Andrew Sent: Mittwoch, 23. April 2003 23:32 To: 'webt@lists.canoo.com' Subject: [Webtest] Javascript usage

I have a question regarding the javascript support of web test. We have a javascript method that posts a form based on the user selecting an item from a drop down list. The web test script sets the selected item via the setselectfield task. But this doesn't seem to trigger the javascript like it does in a browser. Is this something that webtest does not yet support?

Thanks,

Andy

The html code (generated by VS.net) looks like: .... <script language="javascript"> <!-- function __doPostBack(eventTarget, eventArgument) { var theform = document.blahform; theform.__EVENTTARGET.value = eventTarget; theform.__EVENTARGUMENT.value = eventArgument; theform.submit(); } // --> </script>

...

<select name="blah" id="blah" onchange="__doPostBack('blah','')" language="javascript" >

===== ================================================ Six monkeys pounding on six typewriters at random for a million years will
recreate all the works of Isaac Asimov. ================================================