QTP VB Scripts for Validation

352 views
Skip to first unread message

swatigrp

unread,
May 8, 2010, 5:25:21 AM5/8/10
to QTP - HP Quick Test Professional - Automated Software Testing
How to write vbscripts for validating mandatory fields and for numeric
fields.

--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to Mercu...@googlegroups.com
To unsubscribe from this group, send email to
MercuryQTP+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

S R I D H A R

unread,
May 9, 2010, 2:41:02 AM5/9/10
to mercu...@googlegroups.com
Hi Swathi,
 
Try to validate the mandatory fields by using Text chk point or Text area chk point etc.........
 
and Make sure that u modify the object values by using regular expressions at chkpt properties.
 
Thanks
Sridhar

Swati Meshram

unread,
May 11, 2010, 4:41:42 AM5/11/10
to mercu...@googlegroups.com
Hi,
 
   Using Text and TextArea checkpoint, text present betn some text can be checked.
 
   I want to check while saving data, whether user has kept mandatory fields blanks or not.
 
Thanks
Swati

KANDUKURI NARESH

unread,
May 11, 2010, 11:02:09 AM5/11/10
to mercu...@googlegroups.com
Hi Swathi,
 
Use GetRoProperty("Value") and then compare it with the expected string or null value.
--
Thanks and Regards,
Naresh Kandukuri...
Catch me @ 9989299857

Swati Meshram

unread,
May 12, 2010, 4:29:27 AM5/12/10
to mercu...@googlegroups.com
Good Suggestion. Thanks a lot.
 
Swati

Reply all
Reply to author
Forward
0 new messages