Micro Focus QTP (UFT) Forums
Web Testing and Unexpected Server Errors - 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: Web Testing and Unexpected Server Errors (/Thread-Web-Testing-and-Unexpected-Server-Errors)



Web Testing and Unexpected Server Errors - zunebuggy - 01-24-2018

I am doing Automation Testing of a website using UFT 12.51 Build 4766.

We occasionally for various reasons have Server Errors throughout the site.  The Server Error page is displayed and the type of error is usually a Runtime Error.

I would like my code to check for this error after every action especially mouse clicks which are usually web buttons.  I want UFT to text me and I actually did find a way to do this part.  

After each button click a new page is displayed.  For each new page, I usually start my code with a Do Loop until expected object on that page Exists and this works well unless I get a Server Error.

How can I detect these unexpected Server Errors after each action (when they do occur) so that I can kick off my texting subroutine have it text me?

Currently I have a couple specific items that are expected failures and I have them text me.  They are supposed to text me the Error Details also but it send me a text with a '0' as the details but that is separate issue I am working on.

Thank you,
Zunebuggy