Micro Focus QTP (UFT) Forums
Mandatory field validation in 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: Mandatory field validation in QTP (/Thread-Mandatory-field-validation-in-QTP)



Mandatory field validation in QTP - Yog - 03-05-2015

Hi,

Please help me in creating test scripts for mandatory field validation in QTP.
I used Flight application for learning purpose. Attached image for reference.[attachment=1355]

Eg- For inserting a order, we have many validations like we need to enter 1) date of Flight first, then we need to 2) select fly from and 3)fly to field etc. Only when these 3 fields are entered 4) FLIGHT image will get enabled. Once when Flight image is enabled we need to click the image to select the flight. Then we need to enter 5 Name field. Only after these steps, 6) Insert Order button will be enabled.

Please let me know how to create for these validation. Hope most of you might have Flight application installed. It would be great if you provide a script for me for understanding purpose.