I created few custom Keywords, but I am not using them directly in my TestCase, but rather in some other methods, because I am using PageObjectModel.
So for example I am using my custom keywords let’s say SetDate() and CheckMessages() in let’s say Page_Register.RegisterNewUser() method and from withing my TestCase, I call only this registerNewUser() method.
But there are 2 problems:
In LogViewer, I see only that registerNewUser() step, but I would like to also see those substeps SetDate() and CheckMessages() under that step, and those substeps should display if I expand that step using that expanding arrow. Is there any way, how can I achieve this?
In that step, I can’ call CustomKeywords.something, because it’s not possible and shows an error. I can call my keywords directly like a method, but I think Katalon will then see it only as normal function and not as keyword, beacuse when some of these substeps fails (either using KeywordUtil.markFailed or by throwing an exception), step is still shown as passed instead of failed.
So is it possible to implement this Step-Substeps pattern, or it’s just intended to use custom Keywords directly in TestCase?
Thanks so much !!!