[Webtest] Re: How do I submit hidden parameters?

john smith webtest@lists.canoo.com
Fri, 16 Jul 2004 10:55:42 -0500


This is a multi-part message in MIME format.

------=_NextPart_000_0016_01C46B23.720368F0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

How do I submit hidden parameters?Thanks for replying Scot.

Here is my sceneraio:

I have rougly 10 hidden parameters that must be populated prior to click =
button event.

Here is the error I am getting:

tests:
[testSpec] BUILD FAILED: =
file:D:/java/eclipse/workspace/DF_Canoo/test_root/smoke.xml:56: Test =
failed.

Test step clickbutton named "Search: Click the go button" failed with =
message "Illegal parameter LAPLSD00.wkCurrActionCd in form [lapcsrx1, =
POST, /uinew/ui.do, , , _top, , POST request for =
(http://afdev:8080/uinew/ui.do?SendDags=3Dyes&NewScreen=3Dlapcsrx1) =
/uinew/ui.do] with message <Parameter 'LAPLSD00.wkCurrActionCd' must =
have the value ''. Attempted to set it to: { I }> "

Total time: 3 minutes 58 seconds

Here is my canoo script:

<clicklink

stepid=3D"Search: Click on the search button"

label=3D""

href=3D"NewScreen=3Dlapcsrx1" />

<!-- Search Page -->

<verifytext

stepid=3D"Search: we should see the Search page"

text=3D"Search Options" />

<setselectfield

stepid=3D"Search: set the AcctType to Current"

name=3D"LAPLSR01.srSearchAcctType"

value=3D"C" />

<setselectfield

stepid=3D"Search: set the ActionCd to Inquiry"

name=3D"LAPLSD00.wkCurrActionCd"

value=3D"I" />

<setselectfield

stepid=3D"Search: set the Division to primus"

name=3D"LAPLSD00.rtCtl1"

value=3D"${ctrl1}" />

<setselectfield

stepid=3D"Search: set the Division to primus"

name=3D"LAPLSD00.rtCtl2"

value=3D"${ctrl2}" />

<setselectfield

stepid=3D"Search: set the RequestType to PersonalAccountName"

name=3D"LAPLSR01.arRequestType"

value=3D"I" />

<setselectfield

stepid=3D"Search: set the RequestData to /"

name=3D"LAPLSR01.srRequestData"

value=3D"/" />

<clickbutton

stepid=3D"Search: Click the go button"

save=3D"lastResponseSearch"

label=3D"btnGo" />

<not stepid=3D"Search: Check for cancel code 160">

<verifytext=20

stepid=3D"Search: Check for cancel code 160 on Search"

text=3D"CANCEL CODE =3D 160 (PRESS CLEAR)" />

</not>

<not stepid=3D"Search: Check for Host Errors">

<verifytext=20

stepid=3D"Search: Check for Host Errors"

text=3D"** Messages Exist. See Below **" />

</not>

<verifytext=20

stepid=3D"Search: we should see the Search page"

text=3D"Search Options" /> <!-- test error -->

  "Scot Hale" <shale@qpass.com> wrote in message =
news:BC92DB6F3F2DD411A9F500B0D020E8F00A265601@CASCADE...
  The hidden parameters should be submitted when you submit the form via =
clickbutton.

  Are you running into a case where this isn't working for you?
    -----Original Message-----
    From: Smith, John C [mailto:John.C.Smith@fnf.com]
    Sent: Thursday, July 15, 2004 2:17 PM
    To: webtest@gate2.canoo.com
    Subject: [Webtest] How do I submit hidden parameters?




    I am a newbie and I am curious if there is a method for submitting =
hidden parameters via Canoo Webtest.=20

    Thanks,

    John=20

------=_NextPart_000_0016_01C46B23.720368F0
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>How do I submit hidden parameters?</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>
<DIV><FONT face=3DArial size=3D2>Thanks for replying Scot.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Here is my sceneraio:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I have rougly 10 hidden parameters that =
must be=20
populated prior to click button event.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Here is the error I am =
getting:</FONT></DIV>
<DIV><FONT color=3D#0000ff size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#0000ff size=3D2>tests:</DIV>
<DIV></FONT><FONT color=3D#ff0000 size=3D2>
<P>[testSpec] BUILD FAILED:=20
file:D:/java/eclipse/workspace/DF_Canoo/test_root/smoke.xml:56: Test =
failed.</P>
<P>Test step clickbutton named "Search: Click the go button" failed with =
message=20
"Illegal parameter LAPLSD00.wkCurrActionCd in form [lapcsrx1, POST,=20
/uinew/ui.do, , , _top, , POST request for=20
(http://afdev:8080/uinew/ui.do?SendDags=3Dyes&amp;NewScreen=3Dlapcsrx1)=20
/uinew/ui.do] with message &lt;Parameter 'LAPLSD00.wkCurrActionCd' must =
have the=20
value ''. Attempted to set it to: { I }&gt; "</P></FONT><FONT =
color=3D#0000ff=20
size=3D2>
<P>Total time: 3 minutes 58 seconds</P>
<P><FONT face=3DArial color=3D#000000>Here is my canoo =
script:</FONT></P><FONT=20
face=3DArial color=3D#000000><FONT color=3D#0000e1 size=3D2>
<P>&lt;clicklink</P></FONT><FONT size=3D2>
<P></FONT><FONT color=3D#0000e1 size=3D2>stepid=3D</FONT><FONT =
color=3D#000080=20
size=3D2>"Search: Click on the search button"</P></FONT><FONT size=3D2>
<P></FONT><FONT color=3D#0000e1 size=3D2>label=3D</FONT><FONT =
color=3D#000080=20
size=3D2>""</P></FONT><FONT size=3D2>
<P></FONT><FONT color=3D#0000e1 size=3D2>href=3D</FONT><FONT =
color=3D#000080=20
size=3D2>"NewScreen=3Dlapcsrx1"</FONT><FONT size=3D2> </FONT><FONT =
color=3D#0000e1=20
size=3D2>/&gt;</P></FONT><FONT size=3D2>
<P></FONT><FONT color=3D#228820 size=3D2>&lt;!--</FONT><FONT size=3D2> =
</FONT><FONT=20
color=3D#228820 size=3D2>Search</FONT><FONT size=3D2> </FONT><FONT =
color=3D#228820=20
size=3D2>Page</FONT><FONT size=3D2> </FONT><FONT color=3D#228820=20
size=3D2>--&gt;</P></FONT><FONT size=3D2>
<P></FONT><FONT color=3D#0000e1 size=3D2>&lt;verifytext</P></FONT><FONT =
size=3D2>
<P></FONT><FONT color=3D#0000e1 size=3D2>stepid=3D</FONT><FONT =
color=3D#000080=20
size=3D2>"Search: we should see the Search page"</P></FONT><FONT =
size=3D2>
<P></FONT><FONT color=3D#0000e1 size=3D2>text=3D</FONT><FONT =
color=3D#000080=20
size=3D2>"Search Options"</FONT><FONT size=3D2> </FONT><FONT =
color=3D#0000e1=20
size=3D2>/&gt;</P></FONT><FONT size=3D2>
<P></FONT><FONT color=3D#0000e1 =
size=3D2>&lt;setselectfield</P></FONT><FONT size=3D2>
<P></FONT><FONT color=3D#0000e1 size=3D2>stepid=3D</FONT><FONT =
color=3D#000080=20
size=3D2>"Search: set the AcctType to Current"</P></FONT><FONT size=3D2>
<P></FONT><FONT color=3D#0000e1 size=3D2>name=3D</FONT><FONT =
color=3D#000080=20
size=3D2>"LAPLSR01.srSearchAcctType"</P></FONT><FONT size=3D2>
<P></FONT><FONT color=3D#0000e1 size=3D2>value=3D</FONT><FONT =
color=3D#000080=20
size=3D2>"C"</FONT><FONT size=3D2> </FONT><FONT color=3D#0000e1=20
size=3D2>/&gt;</P></FONT><FONT size=3D2>
<P></FONT><FONT color=3D#0000e1 =
size=3D2>&lt;setselectfield</P></FONT><FONT size=3D2>
<P></FONT><FONT color=3D#0000e1 size=3D2>stepid=3D</FONT><FONT =
color=3D#000080=20
size=3D2>"Search: set the ActionCd to Inquiry"</P></FONT><FONT size=3D2>
<P></FONT><FONT color=3D#0000e1 size=3D2>name=3D</FONT><FONT =
color=3D#000080=20
size=3D2>"LAPLSD00.wkCurrActionCd"</P></FONT><FONT size=3D2>
<P></FONT><FONT color=3D#0000e1 size=3D2>value=3D</FONT><FONT =
color=3D#000080=20
size=3D2>"I"</FONT><FONT size=3D2> </FONT><FONT color=3D#0000e1=20
size=3D2>/&gt;</P></FONT><FONT size=3D2>
<P></FONT><FONT color=3D#0000e1 =
size=3D2>&lt;setselectfield</P></FONT><FONT size=3D2>
<P></FONT><FONT color=3D#0000e1 size=3D2>stepid=3D</FONT><FONT =
color=3D#000080=20
size=3D2>"Search: set the Division to primus"</P></FONT><FONT size=3D2>
<P></FONT><FONT color=3D#0000e1 size=3D2>name=3D</FONT><FONT =
color=3D#000080=20
size=3D2>"LAPLSD00.rtCtl1"</P></FONT><FONT size=3D2>
<P></FONT><FONT color=3D#0000e1 size=3D2>value=3D</FONT><FONT =
color=3D#000080=20
size=3D2>"${ctrl1}"</FONT><FONT size=3D2> </FONT><FONT color=3D#0000e1=20
size=3D2>/&gt;</P></FONT><FONT size=3D2>
<P></FONT><FONT color=3D#0000e1 =
size=3D2>&lt;setselectfield</P></FONT><FONT size=3D2>
<P></FONT><FONT color=3D#0000e1 size=3D2>stepid=3D</FONT><FONT =
color=3D#000080=20
size=3D2>"Search: set the Division to primus"</P></FONT><FONT size=3D2>
<P></FONT><FONT color=3D#0000e1 size=3D2>name=3D</FONT><FONT =
color=3D#000080=20
size=3D2>"LAPLSD00.rtCtl2"</P></FONT><FONT size=3D2>
<P></FONT><FONT color=3D#0000e1 size=3D2>value=3D</FONT><FONT =
color=3D#000080=20
size=3D2>"${ctrl2}"</FONT><FONT size=3D2> </FONT><FONT color=3D#0000e1=20
size=3D2>/&gt;</P></FONT><FONT size=3D2>
<P></FONT><FONT color=3D#0000e1 =
size=3D2>&lt;setselectfield</P></FONT><FONT size=3D2>
<P></FONT><FONT color=3D#0000e1 size=3D2>stepid=3D</FONT><FONT =
color=3D#000080=20
size=3D2>"Search: set the RequestType to =
PersonalAccountName"</P></FONT><FONT=20
size=3D2>
<P></FONT><FONT color=3D#0000e1 size=3D2>name=3D</FONT><FONT =
color=3D#000080=20
size=3D2>"LAPLSR01.arRequestType"</P></FONT><FONT size=3D2>
<P></FONT><FONT color=3D#0000e1 size=3D2>value=3D</FONT><FONT =
color=3D#000080=20
size=3D2>"I"</FONT><FONT size=3D2> </FONT><FONT color=3D#0000e1=20
size=3D2>/&gt;</P></FONT><FONT size=3D2>
<P></FONT><FONT color=3D#0000e1 =
size=3D2>&lt;setselectfield</P></FONT><FONT size=3D2>
<P></FONT><FONT color=3D#0000e1 size=3D2>stepid=3D</FONT><FONT =
color=3D#000080=20
size=3D2>"Search: set the RequestData to /"</P></FONT><FONT size=3D2>
<P></FONT><FONT color=3D#0000e1 size=3D2>name=3D</FONT><FONT =
color=3D#000080=20
size=3D2>"LAPLSR01.srRequestData"</P></FONT><FONT size=3D2>
<P></FONT><FONT color=3D#0000e1 size=3D2>value=3D</FONT><FONT =
color=3D#000080=20
size=3D2>"/"</FONT><FONT size=3D2> </FONT><FONT color=3D#0000e1=20
size=3D2>/&gt;</P></FONT><FONT size=3D2>
<P></FONT><FONT color=3D#0000e1 size=3D2>&lt;clickbutton</P></FONT><FONT =
size=3D2>
<P></FONT><FONT color=3D#0000e1 size=3D2>stepid=3D</FONT><FONT =
color=3D#000080=20
size=3D2>"Search: Click the go button"</P></FONT><FONT size=3D2>
<P></FONT><FONT color=3D#0000e1 size=3D2>save=3D</FONT><FONT =
color=3D#000080=20
size=3D2>"lastResponseSearch"</P></FONT><FONT size=3D2>
<P></FONT><FONT color=3D#0000e1 size=3D2>label=3D</FONT><FONT =
color=3D#000080=20
size=3D2>"btnGo"</FONT><FONT size=3D2> </FONT><FONT color=3D#0000e1=20
size=3D2>/&gt;</P></FONT><FONT size=3D2>
<P></FONT><FONT color=3D#0000e1 size=3D2>&lt;not</FONT><FONT size=3D2> =
</FONT><FONT=20
color=3D#0000e1 size=3D2>stepid=3D</FONT><FONT color=3D#000080 =
size=3D2>"Search: Check for=20
cancel code 160"</FONT><FONT color=3D#0000e1 =
size=3D2>&gt;</P></FONT><FONT size=3D2>
<P></FONT><FONT color=3D#0000e1 size=3D2>&lt;verifytext</FONT><FONT =
size=3D2> </P>
<P></FONT><FONT color=3D#0000e1 size=3D2>stepid=3D</FONT><FONT =
color=3D#000080=20
size=3D2>"Search: Check for cancel code 160 on Search"</P></FONT><FONT =
size=3D2>
<P></FONT><FONT color=3D#0000e1 size=3D2>text=3D</FONT><FONT =
color=3D#000080=20
size=3D2>"CANCEL CODE =3D 160 (PRESS CLEAR)"</FONT><FONT size=3D2> =
</FONT><FONT=20
color=3D#0000e1 size=3D2>/&gt;</P></FONT><FONT size=3D2>
<P></FONT><FONT color=3D#0000e1 size=3D2>&lt;/not&gt;</P></FONT><FONT =
size=3D2>
<P></FONT><FONT color=3D#0000e1 size=3D2>&lt;not</FONT><FONT size=3D2> =
</FONT><FONT=20
color=3D#0000e1 size=3D2>stepid=3D</FONT><FONT color=3D#000080 =
size=3D2>"Search: Check for=20
Host Errors"</FONT><FONT color=3D#0000e1 size=3D2>&gt;</P></FONT><FONT =
size=3D2>
<P></FONT><FONT color=3D#0000e1 size=3D2>&lt;verifytext</FONT><FONT =
size=3D2> </P>
<P></FONT><FONT color=3D#0000e1 size=3D2>stepid=3D</FONT><FONT =
color=3D#000080=20
size=3D2>"Search: Check for Host Errors"</P></FONT><FONT size=3D2>
<P></FONT><FONT color=3D#0000e1 size=3D2>text=3D</FONT><FONT =
color=3D#000080 size=3D2>"**=20
Messages Exist. See Below **"</FONT><FONT size=3D2> </FONT><FONT =
color=3D#0000e1=20
size=3D2>/&gt;</P></FONT><FONT size=3D2>
<P></FONT><FONT color=3D#0000e1 size=3D2>&lt;/not&gt;</P></FONT><FONT =
size=3D2>
<P></FONT><FONT color=3D#0000e1 size=3D2>&lt;verifytext</FONT><FONT =
size=3D2> </P>
<P></FONT><FONT color=3D#0000e1 size=3D2>stepid=3D</FONT><FONT =
color=3D#000080=20
size=3D2>"Search: we should see the Search page"</P></FONT><FONT =
size=3D2>
<P></FONT><FONT color=3D#0000e1 size=3D2>text=3D</FONT><FONT =
color=3D#000080=20
size=3D2>"Search Options"</FONT><FONT size=3D2> </FONT><FONT =
color=3D#0000e1=20
size=3D2>/&gt;</FONT><FONT size=3D2> </FONT><FONT color=3D#228820=20
size=3D2>&lt;!--</FONT><FONT size=3D2> </FONT><FONT color=3D#228820=20
size=3D2>test</FONT><FONT size=3D2> </FONT><FONT color=3D#228820=20
size=3D2>error</FONT><FONT size=3D2> </FONT><FONT color=3D#228820=20
size=3D2>--&gt;</P></FONT></FONT></FONT></DIV></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV>"Scot Hale" &lt;<A =
href=3D"mailto:shale@qpass.com">shale@qpass.com</A>&gt;=20
  wrote in message <A=20
  =
href=3D"news:BC92DB6F3F2DD411A9F500B0D020E8F00A265601@CASCADE">news:BC92D=
B6F3F2DD411A9F500B0D020E8F00A265601@CASCADE</A>...</DIV>
  <DIV><SPAN class=3D444164521-15072004><FONT face=3DArial =
color=3D#0000ff size=3D2>The=20
  hidden parameters should be submitted when you submit the form via=20
  clickbutton.</FONT></SPAN></DIV>
  <DIV><SPAN class=3D444164521-15072004><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=3D444164521-15072004><FONT face=3DArial =
color=3D#0000ff size=3D2>Are=20
  you running into a case where this isn't working for =
you?</FONT></SPAN></DIV>
  <BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
    <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
    size=3D2>-----Original Message-----<BR><B>From:</B> Smith, John C=20
    [mailto:John.C.Smith@fnf.com]<BR><B>Sent:</B> Thursday, July 15, =
2004 2:17=20
    PM<BR><B>To:</B> webtest@gate2.canoo.com<BR><B>Subject:</B> =
[Webtest] How do=20
    I submit hidden parameters?<BR><BR></FONT></DIV><!-- Converted from =
text/rtf format --><BR>
    <P><FONT face=3D"Century Gothic" color=3D#0000ff size=3D2>I am a =
newbie and I am=20
    curious if there is a method for submitting hidden parameters via =
Canoo=20
    Webtest.</FONT> </P>
    <P><FONT face=3D"Century Gothic" color=3D#0000ff=20
    size=3D2>Thanks,<BR><BR>John</FONT> =
</P></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0016_01C46B23.720368F0--