Supress Log Messages or Catch failures
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2010
09:24 AM
05-03-2010
09:24 AM
Supress Log Messages or Catch failures
I am running the following routine to close all open browsers at the beginning of my tests. The function performs as expected, but when the loop no longer encounters a browser, it writes an error to the log: "Process not found"
The problem is that the error causes the entire report to show there was an error in the test. How do I supress the routine from writing it to the log so that the rest of my tests show as green if they pass?
The problem is that the error causes the entire report to show there was an error in the test. How do I supress the routine from writing it to the log so that the rest of my tests show as green if they pass?
Function fCloseAllBrowser()
Do While Sys.Process("iexplore").Exists
Sys.Process("iexplore").Close 'Kill the process
Loop
End Function
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2010
06:27 PM
05-03-2010
06:27 PM
Hi,
As far as I can see, your question was answered here. For additional information, refer to the 'WaitProcess Method' help topic.
--
Dmitry Nikolaev
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Dmitry Nikolaev
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
