Email Alert - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: Email Alert (/Thread-Email-Alert) |
Email Alert - v890115 - 09-02-2009 Hello everyone, I am a newbie here as well as a newbie in using QTP. I got everything to work the way I wanted except for one thing. I would like for QTP to automatically send me an alert message via email when it detects hanging on a web page or detects error during testing/validating the website/ web page. I have dug through this site and only showing the send mail codes (which I already got that). Thanks, RE: Email Alert - basanth27 - 09-02-2009 Are you able to capture the condition when a web application hangs ? If yes, In you failure reporting condition call the function to send email. For eg : Code: If err.Number <> 0 Then RE: Email Alert - v890115 - 09-02-2009 Thanks for the quick response and help. I am wondering about capturing the condition too. How do I do that with QTP? RE: Email Alert - basanth27 - 09-02-2009 Have you heard about "On Error Resume Next" and Recovery Scenarios ? Try to search for them in this forum and you will get several examples. RE: Email Alert - v890115 - 09-02-2009 Thanks. Like I've said, today is my second day using this tool and this site. Still reading the documentation sent to me but so far documentation is for installation only. Nothing technical and such provided. I am sure in no time I'll be able to utilize this tool to its fullest. RE: Email Alert - basanth27 - 09-02-2009 Dont you worry. It is a matter of time before you will reap its benefit. Try to grasp as much as possible from the forum. It is one good knowledgebase. Everyone was you sometime ago....You will be what everyone is in no time... Good Luck Mate. RE: Email Alert - v890115 - 09-03-2009 Hey I got it figured out. I got QTP to automatically send me email when it detects error/ at a stopping point etc. Appreciate the tips!!!!! |