| || |
How to check Event Viewer for a particular TYPE or/and SOURCE
I want to check the event viewer for a particular type and or source.
Say for e.g. if in the Type it is INFORMATION then there should be any error but if there is WARNING or ERROR then the script should fail.
Similarly for the source also.
Say for e.g. if the SOURCE is a particular application which i cm trying to test and in the TYPE there is WARNING or ERROR then the script should fail.
Is there any way to do it??
I tried various verification points but there are checking Date as well as Time when the script is played back and so they are failing and so does the script.
Re: How to check Event Viewer for a particular TYPE or/and SOURCE
There are a variety of techniques for controlling script flow and handling expected and unexpected results from actions.
No single method will cover all situations.
You may find you need to tab out of fields to fire on exit processing and write a bit of code to look for any error conditions Value out of range type things.
Or you app may only do validation once you press ok or save or continue or what ever.
If you get pop up errors or status line messages will also impact on your solution. I have found the Verification points seldom feature in any useful scripts as I suspect you are finding out.