[Webtest] RE: Click button "HTM Page" failed
Aatish Arora
webtest@lists.canoo.com
Wed, 21 Apr 2004 23:07:53 -0700 (PDT)
John,
Im out of touch with Javascript myself...but can u
tell me when is this function called? is it on a
button click? if yes then are u also setting the value
on the form thru canoo?
cheers!
Aatish
--- "Smith, John C" <John.C.Smith@fnf.com> wrote:
> Aatish,
>
> Thank you for responding to my request. While I am
> only a novice on javascript, I know that our pages
> are dynamically generated from an engine. Here is a
> code snippet: I am not sure how to resolve this
> issue. What javascript rule is being broken?
>
> 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();
> }
>
>
> -----Original Message-----
> From: webtest-admin@lists.canoo.com
> [mailto:webtest-admin@lists.canoo.com] On Behalf Of
> Aatish Arora
> Sent: Monday, April 19, 2004 10:35 AM
> To: webtest@lists.canoo.com
> Subject: RE: [Webtest] RE: Click button "HTM Page"
> failed
>
>
> 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 = "/" +
>
=== message truncated ===
__________________________________
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25¢
http://photos.yahoo.com/ph/print_splash