[Webtest] Javascript usage

Dierk Koenig localhost webtest@lists.canoo.com
Tue, 6 May 2003 09:36:14 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_0004_01C313B2.EFC5A600
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

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: webtest-admin@lists.canoo.com
[mailto:webtest-admin@lists.canoo.com]On Behalf Of Sipe, Andrew
  Sent: Mittwoch, 23. April 2003 23:32
  To: 'webtest@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" >


------=_NextPart_000_0004_01C313B2.EFC5A600
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Javascript usage</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2726.2500" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D149403906-06052003><FONT face=3DArial color=3D#0000ff =
size=3D2>Hi=20
Andy,</FONT></SPAN></DIV>
<DIV><SPAN class=3D149403906-06052003><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D149403906-06052003><FONT face=3DArial color=3D#0000ff =
size=3D2>this=20
feature is not (yet) supported.</FONT></SPAN></DIV>
<DIV><SPAN class=3D149403906-06052003><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D149403906-06052003><FONT face=3DArial color=3D#0000ff =
size=3D2>I=20
don't see that support will come in the near future.</FONT></SPAN></DIV>
<DIV><SPAN class=3D149403906-06052003><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D149403906-06052003><FONT face=3DArial color=3D#0000ff =

size=3D2>sorry</FONT></SPAN></DIV>
<DIV><SPAN class=3D149403906-06052003><FONT face=3DArial color=3D#0000ff =

size=3D2>Mittie</FONT></SPAN></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px =
solid; MARGIN-RIGHT: 0px">
  <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
  size=3D2>-----Original Message-----<BR><B>From:</B>=20
  webtest-admin@lists.canoo.com =
[mailto:webtest-admin@lists.canoo.com]<B>On=20
  Behalf Of </B>Sipe, Andrew<BR><B>Sent:</B> Mittwoch, 23. April 2003=20
  23:32<BR><B>To:</B> 'webtest@lists.canoo.com'<BR><B>Subject:</B> =
[Webtest]=20
  Javascript usage<BR><BR></FONT></DIV>
  <DIV><FONT size=3D2>I have a question regarding the javascript support =
of web=20
  test.&nbsp; We have a javascript method that posts a form based on the =
user=20
  selecting an item from a drop down list.&nbsp; The web test script =
sets the=20
  selected item via the setselectfield task.&nbsp; But this doesn't seem =
to=20
  trigger the javascript like it does in a browser.</FONT></DIV>
  <P><FONT size=3D2>Is this something that webtest does not yet =
support?</FONT>=20
  </P>
  <P><FONT size=3D2>Thanks,</FONT> </P>
  <P><FONT size=3D2>Andy</FONT> </P>
  <P><FONT size=3D2>The html code (generated by VS.net) looks =
like:</FONT>=20
  <BR><FONT size=3D2>....</FONT> <BR><FONT size=3D2>&lt;script=20
  language=3D"javascript"&gt;</FONT> <BR><FONT size=3D2>&lt;!--</FONT> =
<BR><FONT=20
  size=3D2>&nbsp;function __doPostBack(eventTarget, eventArgument) =
{</FONT>=20
  <BR><FONT size=3D2>&nbsp; var theform =3D document.blahform;</FONT> =
<BR><FONT=20
  size=3D2>&nbsp; theform.__EVENTTARGET.value =3D eventTarget;</FONT> =
<BR><FONT=20
  size=3D2>&nbsp; theform.__EVENTARGUMENT.value =3D =
eventArgument;</FONT> <BR><FONT=20
  size=3D2>&nbsp; theform.submit();</FONT> <BR><FONT =
size=3D2>&nbsp;}</FONT>=20
  <BR><FONT size=3D2>// --&gt;</FONT> <BR><FONT =
size=3D2>&lt;/script&gt;</FONT> </P>
  <P><FONT size=3D2>...</FONT> </P>
  <P><FONT size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;select =
name=3D"blah"=20
  id=3D"blah" onchange=3D"__doPostBack('blah','')" =
language=3D"javascript" &gt;</FONT>=20
  </P></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0004_01C313B2.EFC5A600--