11-29-2014, 09:40 AM
Let me explain the problem using an example. Lets say I have to validate a login functionality in a web page. Login is success for "login" and "passwd123" user credentials and for rest throws error message.
In the script using Data Driven I try to login using various users. For a valid user, on login success I check the text and if exists I report a message with PASS else FAIL.
Now my question is when I manually execute this test case, when the valid user is allowed to login and for the rest it throws a message. I PASS this test case.
when I run this data driven script with same logic, the QTP summarized result shows FAILED though the script completed successfully.
what is the correct approach. How to go about handling PASS/FAIL in QTP script.
In the script using Data Driven I try to login using various users. For a valid user, on login success I check the text and if exists I report a message with PASS else FAIL.
Now my question is when I manually execute this test case, when the valid user is allowed to login and for the rest it throws a message. I PASS this test case.
when I run this data driven script with same logic, the QTP summarized result shows FAILED though the script completed successfully.
what is the correct approach. How to go about handling PASS/FAIL in QTP script.