Max Length RRS feed

  • Question

  • I'm a new Team Edition user. I wanted to know how to verify the maximum length of a text field. I'm unable to find a Validation Rule for max length.




    Friday, August 18, 2006 8:16 PM


  • You may be able to use the Required Attribute validation rule by setting the Match Attribute Value parameter to an attribute value contained in your text field tag that is unique to the particular field you want to validate.  You would set the Attribute Name to maxlength, and the Match Attribute value to <insert your text field name or id here>

    Another option would be to extract the attribute value using an Extract Attribute Value extraction rule and then verify the value is correct in the Context (in coded web test)

    Friday, August 18, 2006 8:32 PM