[Webtest] Re: Setinputfield not working

Marc Guillemot webtest@lists.canoo.com
Fri, 07 Jan 2005 10:43:47 +0100


This should be fixed in next build.

Marc.

HURSTG@Nationwide.com wrote:
> 
> Well, that does indeed seem to fix the problem. Thank you very much.
> 
> I am now hoping that a remedy is in the works for this attribute 
> case-sensitivity issue.
> 
> I can't edit every template in our corporate website to get rid of 
> uppercase attribute content.
> 
> Jerry Hurst
> 
> 
> 
> 
> 	*Koorosh Vakhshoori 
> <Koorosh.Vakhshoori@synopsys.com>*
> 
> /Sent by: webtest-admin@gate2.canoo.com/
> 
> 
> 
> 
> 
> *01/06/2005 01:40 PM*
> Please respond to webtest
> 	       
> T
> To:        webtest@gate2.canoo.com
> cc:        
> 
> bcc:        
> Subject:        Re: [Webtest] Setinputfield not working
> 
> 
> 
> 
> Hi Jerry,
>   I am new with Webtest, but with the latest version with support for
> HTMLUNIT, it seems the 'TYPE' attribute in 'INPUT' tag is case sensitive.
> Try changing your HTML to lower case. So change your HTML 'INPUT" tag to:
> 
> <INPUT TYPE="text" NAME="JERRY">XXXAAA
> 
> Take care,
> Koorosh
> 
> At 11:23 AM 1/6/2005 -0600, 
> HURSTG@Nationwide.com wrote:
> 
>  >Is there some odd trick to making the setinputfield step work? I have 
> been
>  >trying the most simple example I could think of and I can't get it to 
> work.
>  >
>  >I have these steps in my test page:
>  >
>  ><invoke
>  >         stepid="get login page2"
>  >         url="login.cfm" />
>  ><verifytext
>  >         stepid="find text"
>  >         text='XXXAAA' />
>  ><setinputfield
>  >         stepid="enter"
>  >         name="JERRY"
>  >         value="pgh" />
>  >
>  >The HTML of my form page looks like this:
>  >
>  ><HTML>
>  ><HEAD>
>  ></HEAD>
>  ><BODY>
>  ><FORM ACTION="FORMACTION.CFM" METHOD="POST">
>  ><INPUT TYPE="TEXT" NAME="JERRY">XXXAAA
> 
> Koorosh: Change the above INPUT Tag to:
> 
> <INPUT TYPE="text" NAME="JERRY">XXXAAA
> 
>  ></FORM>
>  ></BODY>
>  ></HTML>
>  >
>  >I always get the error:
>  >
>  >Test step setinputfield 
> (E:\_TESTING\urbcfd01\Modules\loginandstep.xml:10:
>  >)  named "enter" failed with message "No form found with text field named
>  >"JERRY""
>  >
>  >The verifytext step works like a charm. The setinputfield step never
>  >works. I have tried different combinations of attributes in the HTML 
> form,
>  >different placement, different ordering, different step ids, step names,
>  >values, etc. I tried new_setinputfield too. Nada.
>  >
>  >My response from the invocation of the form page looks perfect, as does
>  >its source. Everything looks like it should work, it just doesn't.
>  >
>  >Ideas?
>  >
>  >Jerry Hurst
> 
> 
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
> 
>