Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to validate the text box functionality using QTP
#1
Solved: 11 Years, 5 Months ago
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
Reply
#2
Solved: 11 Years, 5 Months ago
QTP mainly for functional testing tool. If you need to test the validation better u used some other tool say JUnit..
Reply
#3
Solved: 11 Years, 5 Months ago
@ 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.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply
#4
Solved: 11 Years, 5 Months ago
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!!!!!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How can we get the Windows application Text box background color Using UFT 11.53 Kuppampattu 3 6,128 06-06-2017, 11:12 AM
Last Post: workrohit08
  How to validate mandatory filed (*) in web application using balak89 1 4,151 09-13-2015, 12:54 AM
Last Post: ADITI1992
  Need to Validate Text filed is blank after clicking on the Text box balak89 3 4,975 09-13-2015, 12:06 AM
Last Post: ADITI1992
Smile Need to validate a .txt file and .jpeg image. aman8604 0 2,385 04-09-2015, 11:33 AM
Last Post: aman8604
Sad Validate New Employee Creation hello_sanjay 0 1,916 04-07-2015, 06:16 PM
Last Post: hello_sanjay

Forum Jump:


Users browsing this thread: 2 Guest(s)