![]() |
How can we make a script failed? - 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 can we make a script failed? (/Thread-How-can-we-make-a-script-failed) |
How can we make a script failed? - Shama Ahsan - 04-12-2011 Hi Basanth, By adding this line of code Reporter.ReportEvent micpass, "Login Report", "User Has logged in Successfully" all the scripts are running and result in green graphs, i need to ask, if we wanna show that a script with invalid user cerdentials as failed... em confused over this, please do guide me. RE: How can we make a script failed? - basanth27 - 04-12-2011 Reporter.ReportEvent micFail, "Login Report", "Invalid User" RE: How can we make a script failed? - basanth27 - 04-12-2011 Try this, Code: Reporter.ReportEvent micPass, "User Login", "Login Successfull" |