Posts: 39
Threads: 22
Joined: Jan 2008
Reputation:
0
02-01-2008, 08:06 PM
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
Posts: 11
Threads: 2
Joined: Jan 2008
Reputation:
0
02-02-2008, 08:27 AM
QTP mainly for functional testing tool. If you need to test the validation better u used some other tool say JUnit..
Posts: 1,105
Threads: 18
Joined: Jan 2008
Reputation:
8
02-02-2008, 10:50 PM
@ 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.
Posts: 10
Threads: 4
Joined: Jan 2008
Reputation:
0
02-11-2008, 02:42 PM
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!!!!!