Quantcast
Channel: Micro Focus QTP (UFT) Forums - All Forums
Viewing all articles
Browse latest Browse all 1793

Web Testing and Unexpected Server Errors

$
0
0
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

Viewing all articles
Browse latest Browse all 1793

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>