[Webtest] Re: How do I submit hidden parameters?
Scot Hale
webtest@lists.canoo.com
Fri, 16 Jul 2004 11:20:30 -0700
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C46B61.93956DE0
Content-Type: text/plain;
charset="iso-8859-1"
I am not sure exactly what that message means. I am guessing that the
clickbutton actually submits the form information to your server, and the
server is sending an error message back ( 500 or something ). You could add
some debugging in your ui.do action to see if it is actually receiving the
request. Although my guess is that if the parameters are getting to the
server then you either found a bug, or you are sending the wrong parameters.
Does anyone else know what that error message actually means?
-----Original Message-----
From: john smith [mailto:john.c.smith@fnf.com]
Sent: Friday, July 16, 2004 8:56 AM
To: webtest@lists.canoo.com
Subject: [Webtest] Re: 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=yes&NewScreen=lapcsrx1)
/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="Search: Click on the search button"
label=""
href="NewScreen=lapcsrx1" />
<!-- Search Page -->
<verifytext
stepid="Search: we should see the Search page"
text="Search Options" />
<setselectfield
stepid="Search: set the AcctType to Current"
name="LAPLSR01.srSearchAcctType"
value="C" />
<setselectfield
stepid="Search: set the ActionCd to Inquiry"
name="LAPLSD00.wkCurrActionCd"
value="I" />
<setselectfield
stepid="Search: set the Division to primus"
name="LAPLSD00.rtCtl1"
value="${ctrl1}" />
<setselectfield
stepid="Search: set the Division to primus"
name="LAPLSD00.rtCtl2"
value="${ctrl2}" />
<setselectfield
stepid="Search: set the RequestType to PersonalAccountName"
name="LAPLSR01.arRequestType"
value="I" />
<setselectfield
stepid="Search: set the RequestData to /"
name="LAPLSR01.srRequestData"
value="/" />
<clickbutton
stepid="Search: Click the go button"
save="lastResponseSearch"
label="btnGo" />
<not stepid="Search: Check for cancel code 160">
<verifytext
stepid="Search: Check for cancel code 160 on Search"
text="CANCEL CODE = 160 (PRESS CLEAR)" />
</not>
<not stepid="Search: Check for Host Errors">
<verifytext
stepid="Search: Check for Host Errors"
text="** Messages Exist. See Below **" />
</not>
<verifytext
stepid="Search: we should see the Search page"
text="Search Options" /> <!-- test error -->
"Scot Hale" < shale@qpass.com <mailto:shale@qpass.com> > wrote in message
news:BC92DB6F3F2DD411A9F500B0D020E8F00A265601@CASCADE
<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.
Thanks,
John
------_=_NextPart_001_01C46B61.93956DE0
Content-Type: text/html;
charset="iso-8859-1"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>How do I submit hidden parameters?</TITLE>
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><SPAN class=427561618-16072004><FONT face=Arial color=#0000ff size=2>I am
not sure exactly what that message means. I am guessing that the
clickbutton actually submits the form information to your server, and the server
is sending an error message back ( 500 or something ). You could add some
debugging in your ui.do action to see if it is actually receiving the
request. Although my guess is that if the parameters are
getting to the server then you either found a bug, or you are sending the wrong
parameters.</FONT></SPAN></DIV>
<DIV><SPAN class=427561618-16072004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=427561618-16072004><FONT face=Arial color=#0000ff size=2>Does
anyone else know what that error message actually means?</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> john smith
[mailto:john.c.smith@fnf.com]<BR><B>Sent:</B> Friday, July 16, 2004 8:56
AM<BR><B>To:</B> webtest@lists.canoo.com<BR><B>Subject:</B> [Webtest] Re: How
do I submit hidden parameters?<BR><BR></FONT></DIV>
<DIV>
<DIV><FONT face=Arial size=2>Thanks for replying Scot.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Here is my sceneraio:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have rougly 10 hidden parameters that must be
populated prior to click button event.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Here is the error I am getting:</FONT></DIV>
<DIV><FONT color=#0000ff size=2></FONT> </DIV>
<DIV><FONT color=#0000ff size=2>tests:</DIV>
<DIV></FONT><FONT color=#ff0000 size=2>
<P>[testSpec] BUILD FAILED:
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 "Illegal parameter LAPLSD00.wkCurrActionCd in form [lapcsrx1, POST,
/uinew/ui.do, , , _top, , POST request for
(http://afdev:8080/uinew/ui.do?SendDags=yes&NewScreen=lapcsrx1)
/uinew/ui.do] with message <Parameter 'LAPLSD00.wkCurrActionCd' must have
the value ''. Attempted to set it to: { I }> "</P></FONT><FONT
color=#0000ff size=2>
<P>Total time: 3 minutes 58 seconds</P>
<P><FONT face=Arial color=#000000>Here is my canoo script:</FONT></P><FONT
face=Arial color=#000000><FONT color=#0000e1 size=2>
<P><clicklink</P></FONT><FONT size=2>
<P></FONT><FONT color=#0000e1 size=2>stepid=</FONT><FONT color=#000080
size=2>"Search: Click on the search button"</P></FONT><FONT size=2>
<P></FONT><FONT color=#0000e1 size=2>label=</FONT><FONT color=#000080
size=2>""</P></FONT><FONT size=2>
<P></FONT><FONT color=#0000e1 size=2>href=</FONT><FONT color=#000080
size=2>"NewScreen=lapcsrx1"</FONT><FONT size=2> </FONT><FONT color=#0000e1
size=2>/></P></FONT><FONT size=2>
<P></FONT><FONT color=#228820 size=2><!--</FONT><FONT size=2> </FONT><FONT
color=#228820 size=2>Search</FONT><FONT size=2> </FONT><FONT color=#228820
size=2>Page</FONT><FONT size=2> </FONT><FONT color=#228820
size=2>--></P></FONT><FONT size=2>
<P></FONT><FONT color=#0000e1 size=2><verifytext</P></FONT><FONT size=2>
<P></FONT><FONT color=#0000e1 size=2>stepid=</FONT><FONT color=#000080
size=2>"Search: we should see the Search page"</P></FONT><FONT size=2>
<P></FONT><FONT color=#0000e1 size=2>text=</FONT><FONT color=#000080
size=2>"Search Options"</FONT><FONT size=2> </FONT><FONT color=#0000e1
size=2>/></P></FONT><FONT size=2>
<P></FONT><FONT color=#0000e1 size=2><setselectfield</P></FONT><FONT
size=2>
<P></FONT><FONT color=#0000e1 size=2>stepid=</FONT><FONT color=#000080
size=2>"Search: set the AcctType to Current"</P></FONT><FONT size=2>
<P></FONT><FONT color=#0000e1 size=2>name=</FONT><FONT color=#000080
size=2>"LAPLSR01.srSearchAcctType"</P></FONT><FONT size=2>
<P></FONT><FONT color=#0000e1 size=2>value=</FONT><FONT color=#000080
size=2>"C"</FONT><FONT size=2> </FONT><FONT color=#0000e1
size=2>/></P></FONT><FONT size=2>
<P></FONT><FONT color=#0000e1 size=2><setselectfield</P></FONT><FONT
size=2>
<P></FONT><FONT color=#0000e1 size=2>stepid=</FONT><FONT color=#000080
size=2>"Search: set the ActionCd to Inquiry"</P></FONT><FONT size=2>
<P></FONT><FONT color=#0000e1 size=2>name=</FONT><FONT color=#000080
size=2>"LAPLSD00.wkCurrActionCd"</P></FONT><FONT size=2>
<P></FONT><FONT color=#0000e1 size=2>value=</FONT><FONT color=#000080
size=2>"I"</FONT><FONT size=2> </FONT><FONT color=#0000e1
size=2>/></P></FONT><FONT size=2>
<P></FONT><FONT color=#0000e1 size=2><setselectfield</P></FONT><FONT
size=2>
<P></FONT><FONT color=#0000e1 size=2>stepid=</FONT><FONT color=#000080
size=2>"Search: set the Division to primus"</P></FONT><FONT size=2>
<P></FONT><FONT color=#0000e1 size=2>name=</FONT><FONT color=#000080
size=2>"LAPLSD00.rtCtl1"</P></FONT><FONT size=2>
<P></FONT><FONT color=#0000e1 size=2>value=</FONT><FONT color=#000080
size=2>"${ctrl1}"</FONT><FONT size=2> </FONT><FONT color=#0000e1
size=2>/></P></FONT><FONT size=2>
<P></FONT><FONT color=#0000e1 size=2><setselectfield</P></FONT><FONT
size=2>
<P></FONT><FONT color=#0000e1 size=2>stepid=</FONT><FONT color=#000080
size=2>"Search: set the Division to primus"</P></FONT><FONT size=2>
<P></FONT><FONT color=#0000e1 size=2>name=</FONT><FONT color=#000080
size=2>"LAPLSD00.rtCtl2"</P></FONT><FONT size=2>
<P></FONT><FONT color=#0000e1 size=2>value=</FONT><FONT color=#000080
size=2>"${ctrl2}"</FONT><FONT size=2> </FONT><FONT color=#0000e1
size=2>/></P></FONT><FONT size=2>
<P></FONT><FONT color=#0000e1 size=2><setselectfield</P></FONT><FONT
size=2>
<P></FONT><FONT color=#0000e1 size=2>stepid=</FONT><FONT color=#000080
size=2>"Search: set the RequestType to PersonalAccountName"</P></FONT><FONT
size=2>
<P></FONT><FONT color=#0000e1 size=2>name=</FONT><FONT color=#000080
size=2>"LAPLSR01.arRequestType"</P></FONT><FONT size=2>
<P></FONT><FONT color=#0000e1 size=2>value=</FONT><FONT color=#000080
size=2>"I"</FONT><FONT size=2> </FONT><FONT color=#0000e1
size=2>/></P></FONT><FONT size=2>
<P></FONT><FONT color=#0000e1 size=2><setselectfield</P></FONT><FONT
size=2>
<P></FONT><FONT color=#0000e1 size=2>stepid=</FONT><FONT color=#000080
size=2>"Search: set the RequestData to /"</P></FONT><FONT size=2>
<P></FONT><FONT color=#0000e1 size=2>name=</FONT><FONT color=#000080
size=2>"LAPLSR01.srRequestData"</P></FONT><FONT size=2>
<P></FONT><FONT color=#0000e1 size=2>value=</FONT><FONT color=#000080
size=2>"/"</FONT><FONT size=2> </FONT><FONT color=#0000e1
size=2>/></P></FONT><FONT size=2>
<P></FONT><FONT color=#0000e1 size=2><clickbutton</P></FONT><FONT size=2>
<P></FONT><FONT color=#0000e1 size=2>stepid=</FONT><FONT color=#000080
size=2>"Search: Click the go button"</P></FONT><FONT size=2>
<P></FONT><FONT color=#0000e1 size=2>save=</FONT><FONT color=#000080
size=2>"lastResponseSearch"</P></FONT><FONT size=2>
<P></FONT><FONT color=#0000e1 size=2>label=</FONT><FONT color=#000080
size=2>"btnGo"</FONT><FONT size=2> </FONT><FONT color=#0000e1
size=2>/></P></FONT><FONT size=2>
<P></FONT><FONT color=#0000e1 size=2><not</FONT><FONT size=2> </FONT><FONT
color=#0000e1 size=2>stepid=</FONT><FONT color=#000080 size=2>"Search: Check
for cancel code 160"</FONT><FONT color=#0000e1 size=2>></P></FONT><FONT
size=2>
<P></FONT><FONT color=#0000e1 size=2><verifytext</FONT><FONT size=2> </P>
<P></FONT><FONT color=#0000e1 size=2>stepid=</FONT><FONT color=#000080
size=2>"Search: Check for cancel code 160 on Search"</P></FONT><FONT size=2>
<P></FONT><FONT color=#0000e1 size=2>text=</FONT><FONT color=#000080
size=2>"CANCEL CODE = 160 (PRESS CLEAR)"</FONT><FONT size=2> </FONT><FONT
color=#0000e1 size=2>/></P></FONT><FONT size=2>
<P></FONT><FONT color=#0000e1 size=2></not></P></FONT><FONT size=2>
<P></FONT><FONT color=#0000e1 size=2><not</FONT><FONT size=2> </FONT><FONT
color=#0000e1 size=2>stepid=</FONT><FONT color=#000080 size=2>"Search: Check
for Host Errors"</FONT><FONT color=#0000e1 size=2>></P></FONT><FONT size=2>
<P></FONT><FONT color=#0000e1 size=2><verifytext</FONT><FONT size=2> </P>
<P></FONT><FONT color=#0000e1 size=2>stepid=</FONT><FONT color=#000080
size=2>"Search: Check for Host Errors"</P></FONT><FONT size=2>
<P></FONT><FONT color=#0000e1 size=2>text=</FONT><FONT color=#000080
size=2>"** Messages Exist. See Below **"</FONT><FONT size=2> </FONT><FONT
color=#0000e1 size=2>/></P></FONT><FONT size=2>
<P></FONT><FONT color=#0000e1 size=2></not></P></FONT><FONT size=2>
<P></FONT><FONT color=#0000e1 size=2><verifytext</FONT><FONT size=2> </P>
<P></FONT><FONT color=#0000e1 size=2>stepid=</FONT><FONT color=#000080
size=2>"Search: we should see the Search page"</P></FONT><FONT size=2>
<P></FONT><FONT color=#0000e1 size=2>text=</FONT><FONT color=#000080
size=2>"Search Options"</FONT><FONT size=2> </FONT><FONT color=#0000e1
size=2>/></FONT><FONT size=2> </FONT><FONT color=#228820
size=2><!--</FONT><FONT size=2> </FONT><FONT color=#228820
size=2>test</FONT><FONT size=2> </FONT><FONT color=#228820
size=2>error</FONT><FONT size=2> </FONT><FONT color=#228820
size=2>--></P></FONT></FONT></FONT></DIV></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Scot Hale" <<A
href="mailto:shale@qpass.com">shale@qpass.com</A>> wrote in message <A
href="news:BC92DB6F3F2DD411A9F500B0D020E8F00A265601@CASCADE">news:BC92DB6F3F2DD411A9F500B0D020E8F00A265601@CASCADE</A>...</DIV>
<DIV><SPAN class=444164521-15072004><FONT face=Arial color=#0000ff
size=2>The hidden parameters should be submitted when you submit the form
via clickbutton.</FONT></SPAN></DIV>
<DIV><SPAN class=444164521-15072004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=444164521-15072004><FONT face=Arial color=#0000ff
size=2>Are you running into a case where this isn't working for
you?</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Smith, John C
[mailto:John.C.Smith@fnf.com]<BR><B>Sent:</B> Thursday, July 15, 2004 2:17
PM<BR><B>To:</B> webtest@gate2.canoo.com<BR><B>Subject:</B> [Webtest] How
do I submit hidden parameters?<BR><BR></FONT></DIV><!-- Converted from text/rtf format --><BR>
<P><FONT face="Century Gothic" color=#0000ff size=2>I am a newbie and I am
curious if there is a method for submitting hidden parameters via Canoo
Webtest.</FONT> </P>
<P><FONT face="Century Gothic" color=#0000ff
size=2>Thanks,<BR><BR>John</FONT>
</P></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>
------_=_NextPart_001_01C46B61.93956DE0--