cancel
Showing results for 
Search instead for 
Did you mean: 

Event Handling

New Contributor

Event Handling

My goal is to make test logs easier to read for non-technical users. Each action within our keyword tests have easy-to-read descriptions, explaining what's being performed. What I'm trying to do is create a method that logs the current action description to the log on OnLogEvent. Any pointers?

 

Thanks!

2 REPLIES 2
Community Hero

Re: Event Handling

Have these non-technical users asked for this?  It's been my experience that no one wants to read the logs.   Hate for you to spend time on this for nothing.

Community Hero

Re: Event Handling

There's no built in feature to do this.  The OnLogEvent handler also does not have access to those fields on the actions so there's no way to access it directly.

 

Your best bet is to write your own custom logging routine to include this information.

 

HOWEVER...

 

... logging all events fills up your log quickly.  Technically speaking, a non-technical reader of the log doesn't need every mouse click or keystroke... they just need to know "We checked this... and it passed" or "we tried this... and it failed".  As @Marsha_R suggested, I think your better bang for the buck is to modify your tests to output relevant information that a non-technical user would need and log those items only rather than every "Event" test complete generates.


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Extensions available
New Here?
Join us and watch the welcome video:
Join the September Hub-bub to show off, learn and win