Ask a Question

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?



Community Hero

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]
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
Esteemed Contributor

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.




... 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
[Hall of Fame]
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
Vegas Thrill Rider
Extensions available
Showing results for 
Search instead for 
Did you mean: