Read Event Viewer Log

Ask general questions here.
Posts: 37
Joined: Thu Aug 22, 2019 4:14 pm

Read Event Viewer Log

Post by Ajitpatil3011 » Wed Nov 13, 2019 9:11 am

I wish to read Event viewer logs for my application and print in on ranorex report.

Can someone please tell me? Is it possible to read these logs using Ranorex?
event log.PNG
event log.PNG (41.14 KiB) Viewed 306 times

User avatar
Ranorex Guru
Ranorex Guru
Posts: 6545
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Read Event Viewer Log

Post by odklizec » Wed Nov 13, 2019 9:36 am


Could you please elaborate, what exactly you want to read?

Event Viewer elements appear to be traceable with Ranorex Spy, so there should be no problem to obtain data form it. You can read individual elements with Get Value recording action. But if you want to read entire list of event entries, you will have to use code. Unfortunately, without more details about your test case, it's impossible to suggest something reliable.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration