Micro Focus QTP (UFT) Forums
QTP queries-Help Required for valid and invalid data - 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: QTP queries-Help Required for valid and invalid data (/Thread-QTP-queries-Help-Required-for-valid-and-invalid-data)



QTP queries-Help Required for valid and invalid data - SonalBalte - 01-07-2011

I have one query...
Can any 1 please do help me???????//
I am having QTP 10.0 version.
How will QTP understand the valid data feed and invalid data feed?
I have also tried for one example.
Lets say my password for login window is "a".
Instead of "a", I have feeded the password as "1".
It should fail the test case in this scenario.
But I am not getting how to make QTP understand that the login password is "a" and not "1",and hence it should fail the test case?


RE: QTP queries-Help Required for valid and invalid data - manishbhalshankar - 01-07-2011

Hi Sonal,
enter login crediantials with wrong password and try to login in your application. As the password is incorrect, application will give error. Insert a checkpoint on that error element.