On Mon, Dec 05, 2005 at 10:14:30AM +0100, Marc Guillemot wrote:
> Hi Kris,
> 
> welcome to Webtest.
> 
> Your html code is not well formed and I fear that it is the cause of the 
> problem (particularly the <form> are badly located). You can set the log 
> level to debug to see in the log where Webtest is looking for the button.
> 
> 
> To the webtest developers:
> perhaps should we add a <dumpResponse/> step that would write the 
> current response to a file from the HtmlPage (and not from the 
> WebResponse). This would allow to see the current state of the page and 
> particularly how it has been parsed and how it has been changed by the 
> preceding set/click steps. What do you think?
+1, that would aid creating and debugging webtest scripts.

lothar
> 
> Marc.
> 
> 
> Kris Smith wrote:
> >Hay everyone im new with canoo webtest so this question may be dumb but 
> >im really lost on where to go from here.  Im running a simple logon 
> >webtest and i get the following output...
> >
> >main:
> > [webtest] (ant.WebtestTask                     68  ) Canoo Webtest: 
> >R_1034.
> > [webtest] (steps.Step                          282 ) Start Step: null 
> >"[implict setup step]" (1/8)
> > [webtest] (steps.Setup                         65  ) Surfing with 
> >browser Mozilla/4.0 (compatible; MSIE 6.0b; Windows 98)
> > [webtest] (steps.Step                          282 ) Start Step: invoke 
> >"get Login Page" (2/8)
> > [webtest] (request.AbstractTargetAction        99  ) -> gotoTarget by 
> >URL: benefitmanager.asp
> > [webtest] (request.TargetHelper                63  ) getting response 
> >for url: 
> >https://apps-dqa.deltadentalca.org/menubm/menupages:80/benefitmanager.asp
> > [webtest] Dec 2, 2005 4:36:34 PM 
> >org.apache.commons.httpclient.HttpMethodDirector isRedirectNeeded
> > [webtest] INFO: Redirect requested but followRedirects is disabled
> > [webtest] (engine.Context                      88  ) Content of window 
> >changed to 
> >https://login-dqa.deltadentalca.org/benefitmanager_signin.jsp?TYPE=33554433&REALMOID=06-4048db03-d54e-0465-0000-01a0000001a0&GUID=&SMAUTHREASON=0&METHOD=GET&SMAGENTNAME=$SM$Kep%2fph30PA%2bToAGNu%2bMrEb3iKf1InGkNuIOy5KhLfwI%3d&TARGET=$SM$https%3a%2f%2fapps-dqa%2edeltadentalca%2eorg%2fmenubm%2fmenupages%3a80%2fbenefitmanager%2easp
> > 
> >
> > [webtest] (engine.Context                      89  ) Webclient: 
> >[EMAIL PROTECTED]
> > [webtest] (engine.Context                      90  ) script engine: 
> >[EMAIL PROTECTED]
> > [webtest] (engine.Context                      96  ) Content loaded in 
> >newly opened window, its content will become current response
> > [webtest] (engine.Context                      348 ) Current form set 
> >to none
> > [webtest] (engine.Context                      331 ) Changed last 
> >response to 
> >https://login-dqa.deltadentalca.org/benefitmanager_signin.jsp?TYPE=33554433&REALMOID=06-4048db03-d54e-0465-0000-01a0000001a0&GUID=&SMAUTHREASON=0&METHOD=GET&SMAGENTNAME=$SM$Kep%2fph30PA%2bToAGNu%2bMrEb3iKf1InGkNuIOy5KhLfwI%3d&TARGET=$SM$https%3a%2f%2fapps-dqa%2edeltadentalca%2eorg%2fmenubm%2fmenupages%3a80%2fbenefitmanager%2easp
> > 
> >
> > [webtest] (steps.Step                          282 ) Start Step: 
> >verifyTitle "we should see the login page" (3/8)
> > [webtest] (steps.Step                          282 ) Start Step: 
> >setInputField "set user name" (4/8)
> > [webtest] (engine.Context                      346 ) Current form set 
> >to 
> >(action=https://login-dqa.deltadentalca.org/siteminderagent/forms/login.fcc) 
> >
> > [webtest] (steps.Step                          282 ) Start Step: 
> >setInputField "set password" (5/8)
> > [webtest] (steps.Step                          282 ) Start Step: 
> >clickButton "Click the submit button" (6/8)
> > [webtest] (request.AbstractTargetAction        99  ) -> gotoTarget by 
> >clickButton with name: sbutton
> > [webtest] (steps.Step                          506 ) Exception thrown 
> >from this class: com.canoo.webtest.engine.StepFailedException
> > [webtest] (steps.Step                          508 ) Message was: No 
> >button found
> > [webtest] (steps.Step                          506 ) Exception thrown 
> >from this class: com.canoo.webtest.engine.StepFailedException
> > [webtest] (steps.Step                          508 ) Message was: No 
> >button found
> >
> >
> >Now ive followed the dubug steps so any malformed HTML should feed me 
> >back a warning as per the FAQ and ive also looked at the page dump from 
> >webtest and the html is as follows...
> >
> >
> >
> >
> >
> ><html>
> ><head>
> >   <title>Log in to Benefit Manager Connection</title>
> >   <link rel="stylesheet" href="static/style.css" type="text/css">
> >   <link rel="stylesheet" href="static/lpi.css" type="text/css">
> >   <meta name="description" content="Enterprise Security Registration 
> >and SignOn">
> >   <meta name="keywords" content="swft, gem, webis, eci, secure, web, 
> >file, transfer, patinals, california, single signon, single, signon, 
> >DDC, delta, dental, dentist, group">
> >
> >    <meta http-equiv="expires" content="Sun, Dec 31 1970 12:00:00 GMT" />
> ><meta http-equiv="cache-control" content="no-cache">
> ><meta http-equiv="pragma" content="no-cache" />
> >   <script src="static/browsers.js">
> >   </script>
> >   <script language="JavaScript">
> >       function setDefaultFocus()
> >       {
> >           getFormElement( "SigninForm", "USER" ).focus();
> >       }
> >   </script>
> ></head>
> ><BODY onLoad="setDefaultFocus();" BGCOLOR=white  LINK="#003366" 
> >ALINK="#ff0000" VLINK="#003366">
> >
> ><TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">
> >    <TR>
> >
> >     <TD WIDTH="372" VALIGN=TOP>
> >       <IMG SRC="static/benManConsmall.gif" ALIGN=TOP WIDTH="420" 
> >HEIGHT=27 BORDER="0" HSPACE="0" VSPACE="0">
> >        </TD>
> >    </TR>
> ></TABLE>
> ><br>
> ><table border="0" width="400" height="20" bgcolor="#ffffff" 
> >bordercolor="#ffffff">
> >   <tr valign=top>
> >     <form name="GoRegister" method="post" 
> >action="https://register-dqa.deltadentalca.org/benefitmanager_registration_controller.jsp";>
> > 
> >
> >    <input type="hidden" name="TARGET" 
> >value="https://apps-dqa.deltadentalca.org/menubm/menupages:80/benefitmanager.asp";>
> > 
> >
> >
> ><input type="hidden" name="SMQUERYDATA" value="null">
> ><input type="hidden" name="SMAUTHREASON" value="0">
> ><input type="hidden" name="SMAGENTNAME" 
> >value="$SM$Kep/ph30PA+ToAGNu+MrEb3iKf1InGkNuIOy5KhLfwI=">
> >
> >     <td colspan="2" height="20"><br/>
> >       <p><font face="Arial" size="2" color="#003366"><strong>Sign In<br>
> >         </strong></font></p>
> >       <p><font face="Arial" size="2" color="#000000"  
> >class="txtblk">Benefits Managers now have the ability to sign on to our 
> >secure on-line system.<br><br>
> > If you have not been issued a user name and password, please click <a 
> >href="https://secure1.ddpdelta.org/ddpca_secure/BenefitManagerForm.html";>here</a>.
> > 
> >
> ><br/><br/>
> >
> >Delta Dental maintains the confidentiality of the information you 
> >submit. <a href="javascript:var 
> >newWindow=window.open('static/privacyENT.html','PrivacyStatement');">Click 
> >here to view our privacy statement</a>.
> ><br><br>
> ><!--<strong>If you have not created a user name and password, <input 
> >type="image" src="static/registerhere_bold.gif" align="top"></strong>//-->
> ></font></p>
> >     </td>
> >         </form>
> >   </tr>
> >   <form name="SigninForm" method="post" 
> >action="https://login-dqa.deltadentalca.org/siteminderagent/forms/login.fcc";>
> > 
> >
> >   <tr><td>&nbsp;</td></tr>
> >
> >
> >   <tr valign=top>
> >
> >     <td width="23%" height="20">
> >       <p align="left"><font face="Arial" size="2" color="#003366"> 
> ><strong>User Name:</strong></font></p>
> >     </td>
> >     <td width="77%" height="20">
> >       <input type="text" name="USER" size="30" tabindex=1 
> >maxlength="30" value="">
> >     </td>
> >   </tr>
> >   <tr valign=top>
> >
> >     <td width="23%" height="20">
> >       <p align="left"><font face="Arial" size="2" color="#003366"> 
> ><strong>Password:</strong></font></p>
> >     </td>
> >     <td width="77%" height="20">
> >       <input type="password" name="PASSWORD" size="30" tabindex=2 
> >maxlength="30" value="">
> >     </td>
> >   </tr>
> > </table>
> >
> > <br>
> > <p>
> >     <input type="hidden" name="TARGET" 
> >value="https://apps-dqa.deltadentalca.org/menubm/menupages:80/benefitmanager.asp";>
> > 
> >
> ><input type="hidden" name="SMQUERYDATA" value="null">
> ><input type="hidden" name="SMAUTHREASON" value="0">
> ><input type="hidden" name="SMAGENTNAME" 
> >value="$SM$Kep/ph30PA+ToAGNu+MrEb3iKf1InGkNuIOy5KhLfwI=">
> >
> >
> >   <input type="submit" value="Submit" tabindex=3 name=sbutton>
> >
> >
> >
> > </p>
> >
> > </form>
> >
> >    <table border="0" width="400" height="20" bgcolor="#ffffff" 
> >bordercolor="#ffffff">
> >   <form name="GoGetPassword" method="post" 
> >action="https://register-dqa.deltadentalca.org/forgot_password_controller.jsp?role=webiscabm";>
> > 
> >
> >   <input type="hidden" name="TARGET" 
> >value="https://apps-dqa.deltadentalca.org/menubm/menupages:80/benefitmanager.asp";>
> > 
> >
> ><input type="hidden" name="SMQUERYDATA" value="null">
> ><input type="hidden" name="SMAUTHREASON" value="0">
> ><input type="hidden" name="SMAGENTNAME" 
> >value="$SM$Kep/ph30PA+ToAGNu+MrEb3iKf1InGkNuIOy5KhLfwI=">
> >
> >
> >   <tr>
> >     <td width="100%" height="20">
> >       <p align="left"><span class="txtblk">Forgot your
> >         password or want to change it? <input type="image" 
> >src="static/requesthere.gif" align="center">
> >
> >         </span>
> >     </td>
> >   </tr>
> >
> >   </form>
> > </table>
> ><p>
> ><p>
> ><p>
> ><a href="javascript:var 
> >newWindow=window.open('static/copyrightENT.html','Copyright');" 
> >class="NORMAL">&copy;2005 Delta Dental</a>
> ></form>
> >
> ></body>
> ></html>
> >
> >
> >So as you can see the submit button DOES exist but isnt being found by 
> >webroot.  Could this be a problem with HTTPS or am i doing somthin 
> >dumb?  If you guys need anything else that could help solve this let me 
> >know...the test im useing is...
> >
> ><project name="SimpleTest" basedir="." default="main">
> >
> > <property name="webtest.home" location="C:/tools/canoo" />
> > <import file="${webtest.home}/lib/taskdef.xml"/>
> >
> > <target name="main">
> >   <webtest name="BALogin">
> >     <config
> >       host="apps-dqa.deltadentalca.org/menubm/menupages"
> >       protocol="https"
> >
> >    saveresponse="true"
> >       resultpath="c:\tmp\results"
> >       showhtmlparseroutput="true"
> >
> >     />
> >     <steps>
> >       <invoke
> >         description="get Login Page"
> >         url="benefitmanager.asp" />
> >       <verifyTitle
> >         description="we should see the login page"
> >         text="Log in to Benefit Manager Connection" />
> >
> >    <setInputField description="set user name"
> >         name="USER"
> >         value="*****" />
> >    <setInputField description="set password"
> >         name="PASSWORD"
> >         value="*****" />
> >
> >
> >    <clickButton
> >         name="sbutton"
> >        description="Click the submit button"
> >         />
> >
> >    <verifyTitle description="Home Page follows if login ok"
> >        text="Delta ESP Project"  />
> >
> >
> >     </steps>
> >   </webtest>
> > </target>
> ></project>
> >
> >
> >password and username are incorrect but cant give those out.  Any help 
> >would be totally appreciated cause if i can get apast this it would be a 
> >great tool to use for what I need to do.
> >
> >Kris
> >
> >_________________________________________________________________
> >Express yourself instantly with MSN Messenger! Download today - it's 
> >FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
> >
> >_______________________________________________
> >WebTest mailing list
> >[email protected]
> >http://lists.canoo.com/mailman/listinfo/webtest
> >
> 
> _______________________________________________
> WebTest mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/webtest

-- 
Lothar Märkle - [EMAIL PROTECTED]
Netpioneer GmbH - Beiertheimer Allee 18a - D-76137 Karlsruhe
Tel: 0721 / 9 20 60 43
Fax: 0721 / 9 20 60 30
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to