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 <[EMAIL PROTECTED]>: > > 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 < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED] > >>: > > > > 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 > > [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > > > > > > _______________________________________________ > WebTest mailing list > [email protected] > http://lists.canoo.com/mailman/listinfo/webtest >

