Forum Discussion
Here are some different ways you can handle error messages
https://support.smartbear.com/testcomplete/docs/testing-with/running/control-test-flow/index.html
I wasn't quite looking for error handling when errors occurred in the test. While I am running a UI test, I would like for testComplete to monitor the Network area of the browser (in the developer tools of chrome). If a failure status shows up (such as a 400 or 500 series http response code), then TestComplete would push that onto a stack or write it to the log as a 'Warning' message. Even though you get a 400 or 500 response in the network tab, this doesn't mean the test is going to fail. So, a test could pass, but there were some glitches with the website that the TestComplete test wouldn't catch if it weren't monitoring the network traffic (the http response codes).
- Marsha_R2 years agoModerator
AlexKaras Do you know if there's a way to do this now that Network Suite is gone?
- AlexKaras2 years agoChampion Level 3
Hi,
No, I am not sure this can be done now in TestComplete.
While this seems to be a useful feature (but why stick to Chrome only and not to request the same functionality for all browsers that provide developer tools?) and one can create a feature request via https://community.smartbear.com/t5/forums/postpage/board-id/TestXCompleteFeatureRequests, I would say that requests monitoring is rather from integration and/or load testing areas.
A possible approach with TestComplete to monitor request results is to use some proxy (ProxyMob, Fiddler?), set your tested application to send all traffic through this proxy and then request proxy if some requests ended with 4xx or 5xx result codes.
- torus2 years agoContributor
Hi AlexKaras , thanks for the reply. You are correct. It would be nice if this functionality existed for all browsers; not just chrome.
The only reason I could see for not having this as a feature in TestComplete would be if monitoring the traffic status codes slowed down the tests too much.
I will submit a feature request; thanks for the suggestion.
It looks like ProxyMob might be deprecated but I'll take a look at Fiddler and see if I use this to monitor traffic for now. Thanks Marsha_R & AlexKaras for all the suggestions!
Related Content
- 4 years ago
Recent Discussions
- 51 minutes ago
- 24 hours ago
- 7 days ago
- 11 days ago