I would like to get the name of the current test case as I would like to use that as part of a new user’s username. I want to wrap up creating a new user through the site in a single keyword.
I can from another post (https://forum.katalon.com/discussion/4072/in-the-groovy-script-how-may-we-know-the-current-test-case-id) an example of how to get the test id from the testContext in a TestListener, but is it possible to get this through a keyword?
I am new to groovy, am I right in thinking TestCaseContext is abstract and can’t be instantiated in a custom keyword? Is there a concrete type I can use?