[Webtest] RE: Click button "HTM Page" failed
Smith, John C
webtest@lists.canoo.com
Mon, 19 Apr 2004 09:51:26 -0500
Here is my old config file: (Keep reading below:)
<config
host=3D"${host}"
port=3D"${port}"
protocol=3D"http" =09
saveresponse=3D"${saveall}"
basepath=3D"${basepath}"
summary=3D"true"
resultfile=3D"WebTestResults.xml"
resultpath=3D"/results"
showhtmlparseroutput=3D"false"
haltonerror=3D"true"
haltonfailure=3D"true"
verbose=3D"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=3D"${host}"
port=3D"${port}"
protocol=3D"http" =09
saveresponse=3D"${saveall}"
basepath=3D"${basepath}"
summary=3D"true"
resultfile=3D"WebTestResults.xml"
resultpath=3D"D:\java\Canoo_Build432\test_root\results"
showhtmlparseroutput=3D"false"
haltonerror=3D"true"
haltonfailure=3D"true"
verbose=3D"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=3Dyes&NewScreen=3Dlapcsrx1)
/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 =20
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.
>=20
> <META HTTP-EQUIV=3D"Expires" CONTENT=3D"-1">
>=20
> <html lang=3D"en">
> <head>
> <title>Search</title>
>=20
> <link href=3D"eng/style/afstyle.css"
> type=3D"text/css"
> rel=3D"STYLESHEET"/>
>=20
> <script src=3Deng/jscript/functions.js=20
> language=3D"JavaScript"></script>
>=20
> <script language=3D"JavaScript">
> function doSub(inForm)
> {
> =20
> inForm.elements["LAPLSR01.srSearchAcctType"].value =3D=20
> inForm.searchType.value;
> =20
> inForm.elements["LAPLSR01.arRequestType"].value =3D=20
> inForm.searchBy.value;
> if(inForm.searchBy.value =3D=3D "I" ||=20
> (inForm.searchType.value =3D=3D "A" && inForm.searchBy.value =3D=3D =
"P"))
> {
> str1 =3D "/" +
> inForm.lName.value + " " +
> inForm.fName.value;
> }
> else
> {
> str1 =3D inForm.lgName.value;
> }
> var upCaseVer =3D str1.toUpperCase();
> str1 =3D upCaseVer;
> =20
> inForm.elements["LAPLSR01.srRequestData"].value =3D
> str1;
> =20
> inForm.elements["LAPLSD00.wkCurrActionCd"].value =3D
> "I";
> //inForm.submit();
> }
>=20
> function setSrchBy(inVal,inForm, output)
> {
> if(inVal.value =3D=3D "C")
> {
> act =3D fctn2.val1;
> }
> else
> {
> act =3D fctn2.val2;
> }
> inForm.elements["searchBy"].length
> =3D act.length;
> for(i =3D 0; i < act.length; i++)
> {
> =20
> inForm.elements["searchBy"].options[i].text =3D
> act[i][0];
> =20
> inForm.elements["searchBy"].options[i].value =3D
> act[i][1];
> }
> =20
> inForm.elements["searchBy"].selectedIndex =3D 0;
> =20
> setInpFld(inForm.elements["searchBy"], inForm,
> output);
> }
>=20
> function pvPg(inForm)
> {
> =20
> inForm.elements["LAPLSD00.wkCurrActionCd"].value =3D
> "P";
> window.location.href =3D
>
"ui.do?NewScreen=3Dlapcsrx1&SendDags=3Dyes&TSHEADER.pcBusModule=3D=
LAPC
> SRX1&LAPLSD00.wkCurrActionCd=3DP";
> }
>=20
> function nxtPg(inForm)
> {
> =20
> inForm.elements["LAPLSD00.wkCurrActionCd"].value =3D
> "N";
> window.location.href =3D
>
"ui.do?NewScreen=3Dlapcsrx1&SendDags=3Dyes&TSHEADER.pcBusModule=3D=
LAPC
> SRX1&LAPLSD00.wkCurrActionCd=3DN";
> }
>=20
> function preload()
> {
> //*** Request Types for Master File
> ***
> fctn2 =3D new Object();
> fctn2.val1 =3D new Array();
> fctn2.val1[0] =3D new Array();
> fctn2.val1[0][0] =3D "NAME-PERSONAL";
> fctn2.val1[0][1] =3D "I";
> fctn2.val1[1] =3D new Array();
> fctn2.val1[1][0] =3D
> "NAME-COMMERCIAL";
> fctn2.val1[1][1] =3D "B";
> fctn2.val1[2] =3D new Array();
> fctn2.val1[2][0] =3D "VIN";
> fctn2.val1[2][1] =3D "V";
> fctn2.val1[3] =3D new Array();
> fctn2.val1[3][0] =3D "SSN";
> fctn2.val1[3][1] =3D "S";
> fctn2.val1[4] =3D new Array();
> fctn2.val1[4][0] =3D "ADDRESS";
> fctn2.val1[4][1] =3D "A";
> fctn2.val1[5] =3D new Array();
> fctn2.val1[5][0] =3D "ZIP CODE";
> fctn2.val1[5][1] =3D "Z";
> fctn2.val1[6] =3D new Array();
> fctn2.val1[6][0] =3D "PAYMENT
> AMOUNT-LAST";
> fctn2.val1[6][1] =3D "H";
> fctn2.val1[7] =3D new Array();
> fctn2.val1[7][0] =3D "PAYMENT
> AMOUNT-NEXT";
> fctn2.val1[7][1] =3D "P";
> fctn2.val1[8] =3D new Array();
> fctn2.val1[8][0] =3D "LICENSE
> NUMBER";
> fctn2.val1[8][1] =3D "R";
> // Brennan - commented these 10/17/03. (Dealer Name
> search logic is not
> in HSA)
> // fctn2.val1[9] =3D new Array();
> // fctn2.val1[9][0] =3D "DEALER NAME";
> // fctn2.val1[9][1] =3D "N";
>=20
> //*** Request Types for Archived
> Account ***
> fctn2.val2 =3D new Array();
> fctn2.val2[0] =3D new Array();
> fctn2.val2[0][0] =3D "NAME-PERSONAL";
> fctn2.val2[0][1] =3D "I";
> fctn2.val2[1] =3D new Array();
> fctn2.val2[1][0] =3D
> "NAME-COMMERCIAL";
> fctn2.val2[1][1] =3D "B";
> fctn2.val2[2] =3D new Array();
> fctn2.val2[2][0] =3D "ACCOUNT
> NUMBER";
> fctn2.val2[2][1] =3D "A";
> fctn2.val2[3] =3D new Array();
> fctn2.val2[3][0] =3D
> "CO-BORROWER-INDIVIDUAL";
> fctn2.val2[3][1] =3D "P";
> fctn2.val2[4] =3D new Array();
> fctn2.val2[4][0] =3D
> "CO-BORROWER-COMPANY";
> fctn2.val2[4][1] =3D "C";
> fctn2.val2[5] =3D new Array();
> fctn2.val2[5][0] =3D "SSN";
> fctn2.val2[5][1] =3D "S";
> fctn2.val2[6] =3D new Array();
> fctn2.val2[6][0] =3D "VIN";
> fctn2.val2[6][1] =3D "V";
> }
>=20
> function preload2(formIn, out1)
> {
> =20
>
if(formIn.elements["LAPLSR01.srSearchAcctType"].value
> !=3D
> "" &&
> formIn.elements["LAPLSR01.arRequestType"].value !=3D
> "")
> {
> formIn.searchType.value =3D=20
> formIn.elements["LAPLSR01.srSearchAcctType"].value;
> setSrchBy(formIn.searchType,
> formIn, out1);
> formIn.searchBy.value =3D=20
> formIn.elements["LAPLSR01.arRequestType"].value;
> setInpFld(formIn.searchBy,
> formIn, out1);
> if((formIn.searchType.value =3D=3D
> "C" &&
> formIn.searchBy.value =3D=3D "I") ||
> (formIn.searchType.value =3D=3D
> "A" &&
> (formIn.searchBy.value =3D=3D "I" ||
> =20
> formIn.searchBy.value =3D=3D "P")))
> {
> var newStr =3D
>=20
=3D=3D=3D message truncated =3D=3D=3D
=09
=09
__________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html