[Webtest] setInputField: Why can I add more then maxlength characters
Robert Bodziony
Robert Bodziony" <robert.bodziony@gmail.com
Wed, 9 Jan 2008 17:48:26 +0100
------=_Part_2698_13519140.1199897306338
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
opened :)
http://webtest-community.canoo.com/jira/browse/WT-372<http://webtest-community.canoo.com/jira/browse/WT-372>
Regards,
Robert
2008/1/9, Marc Guillemot <mguillemot@yahoo.fr>:
>
> you're right.
>
> What would make sense probably would be to respect the maxlength per
> default and add an optional attribute to the step to specify that
> maxlength check should be bypassed.
>
> Can you open an issue for that? (with a patch, it's even better ;-))
>
> Cheers,
> Marc.
> --
> Blog: http://mguillem.wordpress.com
>
>
> Robert Bodziony wrote:
> > hi
> > i got same issue. i think that SetInputField method doesne care ab
> > maxlength or size parameter :(
> >
> > Regards,
> >
> > Robert
> >
> >
> >
> > 2008/1/9, Willi Kuhnis < wkuehnis@gmail.com <mailto:wkuehnis@gmail.com
> >>:
> >
> > Hi,
> >
> >
> > I want to check the maxlength of a input-field.
> >
> > I have a Input-field like this:
> >
> > <input class="coolborder" name
> > =
> > "RemoteDir" type="text" size="40"
> > maxlength="40" value="">
> >
> >
> >
> > **** First I fill a variable with a string of the maxlength (40)
> >
> > <var name="x" value=""/>
> >
> > <repeat count="${maxlength}">
> >
> > <var name="x" value="M${x}"/>
> >
> > </repeat>
> >
> > <echo>${x}</echo>
> >
> > ************* Then I fill in this variable to the Input field
> >
> > <setInputField value="${x}" name="${name}" description="Set
> > editfield ${name} to a length of ${maxlength} : ${x}"/>
> >
> > <clickButton label="Submit" description="Press the submit button for
> > ${name}"/>
> >
> >
> >
> > ******* Then I check the content -> this has to be OK
> >
> > <verifyInputField value="${x}" name="${name}" description="check if
> > the Inputfield has still the same content"/>
> >
> >
> >
> > ***** Now I add one more character to my variable and enter this I
> > the input field
> >
> > <var name="x" value="${x}+"/>
> >
> > <echo>${x}</echo>
> >
> > <setInputField value="${x}" name="${name}" description="Set
> > editfield ${name} to maxlength+1 ${x}"/>
> >
> >
> >
> > ******* When I test the content of the Inputfield, then I get 41
> > characters-> this should not be possible!!
> >
> > <storeInputFieldAttribute name="${name}" property="valnew"
> > attributeName="value" description="Get the value"/>
> >
> > <echo>"my value 1="</echo>
> >
> > <echo>"#{valnew}"</echo>
> >
> >
> >
> >
> > ******* Also verifyInputField say, that the field contents all the
> > 41 characters -> this should be not possible
> >
> > <verifyInputField value="${x}" name="${name}" description="check:the
> > Inputfield must not have the same content"/>
> >
> >
> >
> >
> >
> > What can I do ?
> >
> > Thanks for a help
> >
> > Willi
> >
> >
> >
> > --
> > Willi Kuhnis
> > wkuehnis@gmail.com <mailto:wkuehnis@gmail.com>
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >
> >
>
>
>
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>
------=_Part_2698_13519140.1199897306338
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
opened :)<br> <br><a href="http://webtest-community.canoo.com/jira/browse/WT-372"> http://webtest-community.canoo.com/jira/browse/WT-372</a><br><br> Regards,<br> Robert<br><br><div><span class="gmail_quote">2008/1/9, Marc Guillemot <
<a href="mailto:mguillemot@yahoo.fr">mguillemot@yahoo.fr</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">you're right.<br>
<br>What would make sense probably would be to respect the maxlength per<br>default and add an optional attribute to the step to specify that<br>maxlength check should be bypassed.<br><br>Can you open an issue for that? (with a patch, it's even better ;-))
<br><br>Cheers,<br>Marc.<br>--<br>Blog: <a href="http://mguillem.wordpress.com">http://mguillem.wordpress.com</a><br><br><br>Robert Bodziony wrote:<br>> hi<br>> i got same issue. i think that SetInputField method doesne care ab
<br>> maxlength or size parameter :(<br>><br>> Regards,<br>><br>> Robert<br>><br>><br>><br>> 2008/1/9, Willi Kuhnis < <a href="mailto:wkuehnis@gmail.com">wkuehnis@gmail.com</a> <mailto:
<a href="mailto:wkuehnis@gmail.com">wkuehnis@gmail.com</a>>>:<br>><br>> Hi,<br>><br>><br>> I want to check the maxlength of a input-field.<br>><br>> I have a Input-field like this:<br>
><br>> <input class="coolborder" name<br>> =<br>> "RemoteDir" type="text" size="40"<br>> maxlength="40" value=""><br>><br>
><br>><br>> **** First I fill a variable with a string of the maxlength (40)<br>><br>> <var name="x" value=""/><br>><br>> <repeat count="${maxlength}">
<br>><br>> <var name="x" value="M${x}"/><br>><br>> </repeat><br>><br>> <echo>${x}</echo><br>><br>> ************* Then I fill in this variable to the Input field
<br>><br>> <setInputField value="${x}" name="${name}" description="Set<br>> editfield ${name} to a length of ${maxlength} : ${x}"/><br>><br>> <clickButton label="Submit" description="Press the submit button for
<br>> ${name}"/><br>><br>><br>><br>> ******* Then I check the content -> this has to be OK<br>><br>> <verifyInputField value="${x}" name="${name}" description="check if
<br>> the Inputfield has still the same content"/><br>><br>><br>><br>> ***** Now I add one more character to my variable and enter this I<br>> the input field<br>><br>> <var name="x" value="${x}+"/>
<br>><br>> <echo>${x}</echo><br>><br>> <setInputField value="${x}" name="${name}" description="Set<br>> editfield ${name} to maxlength+1 ${x}"/><br>
><br>><br>><br>> ******* When I test the content of the Inputfield, then I get 41<br>> characters-> this should not be possible!!<br>><br>> <storeInputFieldAttribute name="${name}" property="valnew"
<br>> attributeName="value" description="Get the value"/><br>><br>> <echo>"my value 1="</echo><br>><br>> <echo>"#{valnew}"</echo>
<br>><br>><br>><br>><br>> ******* Also verifyInputField say, that the field contents all the<br>> 41 characters -> this should be not possible<br>><br>> <verifyInputField value="${x}" name="${name}" description="check:the
<br>> Inputfield must not have the same content"/><br>><br>><br>><br>><br>><br>> What can I do ?<br>><br>> Thanks for a help<br>><br>> Willi<br>><br>><br>>
<br>> --<br>> Willi Kuhnis<br>> <a href="mailto:wkuehnis@gmail.com">wkuehnis@gmail.com</a> <mailto:<a href="mailto:wkuehnis@gmail.com">wkuehnis@gmail.com</a>><br>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<br>><br>><br><br><br><br>_______________________________________________<br>WebTest mailing list<br><a href="mailto:WebTest@lists.canoo.com">WebTest@lists.canoo.com</a><br><a href="http://lists.canoo.com/mailman/listinfo/webtest">
http://lists.canoo.com/mailman/listinfo/webtest</a><br></blockquote></div><br>
------=_Part_2698_13519140.1199897306338--