Micro Focus QTP (UFT) Forums
How to validate the text box functionality using QTP - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: How to validate the text box functionality using QTP (/Thread-How-to-validate-the-text-box-functionality-using-QTP)



How to validate the text box functionality using QTP - rajaselvan.d - 02-01-2008

Hi
For example one textbox is there. in that textbox should check the following validation
1. Minimum length is 6
2. Maximum length is 10
3. Should not accept ohter than alpha numeric value
4. Should not accept duplicate

How to check above validation using qtp


RE: How to validate the text box functionality using QTP - vadivelan - 02-02-2008

QTP mainly for functional testing tool. If you need to test the validation better u used some other tool say JUnit..


RE: How to validate the text box functionality using QTP - Ankur - 02-02-2008

@ vadivelan: We can very well use QTP for this case and this DOES comes under the heading of "functional testing"

@OP:
1) and 2) use the length function to determine length
3) here also use the appropriate function
4) not very clear what you meant by "Should not accept duplicate" . If you mean the field can have only one value and should not accept a previously entered value then you can use a database checkpoint.


RE: How to validate the text box functionality using QTP - Anees Khan - 02-11-2008

Hi vadivelan,

The question which u hav asked seem something related to the application validation.if so then that is achived by javascript...
I think u can just put a checkpoints in QTP and verify that what user had fed in the application and to that u can compare what all conditions u hav put in check points.

Iam not very much sure that this answer would suffice to your Question!!!!!