brook_grewcock
10 years agoContributor
Equivalent to this.name for logging?
I have a few keyword function and I would like to use 'Append Log Folder' to create a tree log structure, for all of these functions. I wondered if I could set the message text to a code expression and set that to 'this.name' (without apostrophes) to pickup the name of the function that called it, but this doesn't work.
Is there some kind of equivalent so that the append picks up the name of the keyword test it is running under?
If there is one, we've never been able to find it. What we did was create a project variable for TestName and assign it at the top of every test. The log can then display that variable.