While developing test cases I use the Log Viewer a lot. Sometimes the Console too, but not quite as much. One thing that would improve BOTH would be the ability to filter the display to see messages I’m interested in and reduce the “noise”.
Note: I’m aware of the Log Viewer Info/Passed/Failed/Error/Warning and Not Run switches. My idea is to filter ALL output based on a string I specify. And mostly this would apply to INFO messages which generate a lot of (essentialy meaningless) noise (e.g. Checking object, Checking timeout, Finding web element, etc).
If Katalon would allow user to specify logs as belonging to a new log level “USER” and printed them separately and then allowed user to filter all log entries for “USER” messages of a supplied type, then the Log Viewer would become immensely more usable. I suspect this would involve a new API or perhaps an extension to the existing comment API:
// API...
WebUI.comment(String comment, String userType, String userSubType)
// In use...
WebUI.comment("A regular comment")
WebUI.comment("This is a user comment", "USER", "1")
WebUI.comment("Another user comment", "USER", "XYZ")
WebUI.comment("Yet another user comment", "USER", "NewPageTests")
WebUI.comment("Something different", "USER", "NewPageTests")
Then, if I specify a filter “USER” to the Log Viewer I would see only INFO messages that contain USER:
| INFO USER 1 | | This is a user comment |
| INFO USER XYZ | | Another user comment |
| INFO USER NewPageTests| | Yet another user comment |
| INFO USER NewPageTests| | Something different |
And if I specify a filter “USER NewPageTests” I see only
| INFO USER NewPageTests| | Yet another user comment |
| INFO USER NewPageTests| | Something different |
And then apply the same idea (or something very similar) to the Console.
I hope this makes sense…
Russ