Micro Focus QTP (UFT) Forums
How to check validations on a form - 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 check validations on a form (/Thread-How-to-check-validations-on-a-form)



How to check validations on a form - radhika - 11-09-2009

Hi all
I have just started exploring QTP.I need to automate a Add user functionality .On the Add User form i have some validations like,Email,pwd,first name ,lastname etc are rquired.
Email format ,password format,first name and last name cannot have special charecters etc.

What is the best way to automate thsi kind of functionality?


Please help!


RE: How to check validations on a form - Saket - 11-10-2009

You application must be returning some kind of message/error if you enter data with a special characters.

So you just need to enter the values into the fields and check for the error message.
if the application accepts the values with a special character in the fields then your test case should be failed.