[Webtest] RE: Click button "HTM Page" failed
Aatish Arora
webtest@lists.canoo.com
Mon, 19 Apr 2004 08:34:43 -0700 (PDT)
Hi John,
Can u check ur javascript for the function
doSub(inForm)? thats where LAPLSD00.wkCurrActionCd is
set to "I" as the error points out.
cheers!
aatish
--- "Smith, John C" <John.C.Smith@fnf.com> wrote:
> Here is my old config file: (Keep reading below:)
>
> <config
> host="${host}"
> port="${port}"
> protocol="http"
> saveresponse="${saveall}"
> basepath="${basepath}"
> summary="true"
> resultfile="WebTestResults.xml"
> resultpath="/results"
> showhtmlparseroutput="false"
> haltonerror="true"
> haltonfailure="true"
> verbose="true"/>
>
> Here is my new config file with an absolute path:
> (This resolve my
> result file issue, but I still have my same click
> button failure. See
> below.)
> (Keep reading below)
>
> <config
> host="${host}"
> port="${port}"
> protocol="http"
> saveresponse="${saveall}"
> basepath="${basepath}"
> summary="true"
> resultfile="WebTestResults.xml"
>
>
resultpath="D:\java\Canoo_Build432\test_root\results"
> showhtmlparseroutput="false"
> haltonerror="true"
> haltonfailure="true"
> verbose="true"/>
>
> Build results after
>
> ant -buildfile all_tests.xml
> Buildfile: all_tests.xml
>
> clean:
>
> runAll:
>
> tests:
> [testSpec] log4j:WARN No appenders could be found
> for logger
> (com.meterware.httpunit.HttpWebResponse).
> [testSpec] log4j:WARN Please initialize the log4j
> system properly.
>
> BUILD FAILED
> file:D:/java/Canoo_Build432/test_root/smoke.xml:61:
> Test failed.
> Test step clickbutton named "Search2: 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 }> "
>
> -----Original Message-----
> From: webtest-admin@lists.canoo.com
> [mailto:webtest-admin@lists.canoo.com] On Behalf Of
> Aatish Arora
> Sent: Friday, April 16, 2004 7:39 AM
> To: webtest@lists.canoo.com
> Subject: RE: [Webtest] RE: Click button "HTM Page"
> failed
>
> John
>
> check ur <config> tag...
> seems like u missed out the resultpath:
>
> > [testSpec] Exception caught while writing test
> > summary
> > > [testSpec] Message: Resultpath / ResultFile not
> > set properly in
> > > config
>
>
> cheers!
> Aatish
>
>
>
> --- "Smith, John C" <John.C.Smith@fnf.com> wrote:
> > Thank you for your response to my inquiry. I have
> > included the
> > following scripts, HTML page, all_tests.xml (Main
> > driver), and smoke.xml
> > (1 test suite). Let me know if you need any
> > additional information.
> >
> > <META HTTP-EQUIV="Expires" CONTENT="-1">
> >
> > <html lang="en">
> > <head>
> > <title>Search</title>
> >
> > <link href="eng/style/afstyle.css"
> > type="text/css"
> > rel="STYLESHEET"/>
> >
> > <script src=eng/jscript/functions.js
> > language="JavaScript"></script>
> >
> > <script language="JavaScript">
> > function doSub(inForm)
> > {
> >
> > inForm.elements["LAPLSR01.srSearchAcctType"].value
> =
> > inForm.searchType.value;
> >
> > inForm.elements["LAPLSR01.arRequestType"].value =
> > inForm.searchBy.value;
> > if(inForm.searchBy.value == "I"
> ||
> > (inForm.searchType.value == "A" &&
> inForm.searchBy.value == "P"))
> > {
> > str1 = "/" +
> > inForm.lName.value + " " +
> > inForm.fName.value;
> > }
> > else
> > {
> > str1 =
> inForm.lgName.value;
> > }
> > var upCaseVer =
> str1.toUpperCase();
> > str1 = upCaseVer;
> >
> > inForm.elements["LAPLSR01.srRequestData"].value =
> > str1;
> >
> > inForm.elements["LAPLSD00.wkCurrActionCd"].value =
> > "I";
> > //inForm.submit();
> > }
> >
> > function setSrchBy(inVal,inForm,
> output)
> > {
> > if(inVal.value == "C")
> > {
> > act = fctn2.val1;
> > }
> > else
> > {
> > act = fctn2.val2;
> > }
> >
> inForm.elements["searchBy"].length
> > = act.length;
> > for(i = 0; i < act.length; i++)
> > {
> >
> > inForm.elements["searchBy"].options[i].text =
> > act[i][0];
> >
> > inForm.elements["searchBy"].options[i].value =
> > act[i][1];
> > }
> >
> > inForm.elements["searchBy"].selectedIndex = 0;
> >
> > setInpFld(inForm.elements["searchBy"], inForm,
> > output);
> > }
> >
> > function pvPg(inForm)
> > {
> >
> > inForm.elements["LAPLSD00.wkCurrActionCd"].value =
> > "P";
> > window.location.href =
> >
>
"ui.do?NewScreen=lapcsrx1&SendDags=yes&TSHEADER.pcBusModule=LAPC
> > SRX1&LAPLSD00.wkCurrActionCd=P";
> > }
> >
> > function nxtPg(inForm)
> > {
> >
> > inForm.elements["LAPLSD00.wkCurrActionCd"].value =
> > "N";
> > window.location.href =
> >
>
"ui.do?NewScreen=lapcsrx1&SendDags=yes&TSHEADER.pcBusModule=LAPC
> > SRX1&LAPLSD00.wkCurrActionCd=N";
> > }
>
=== message truncated ===
__________________________________
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25¢
http://photos.yahoo.com/ph/print_splash