This is a companion discussion topic for the original entry at https://docs.katalon.com/katalon-studio/docs/define-method.html
This is a companion discussion topic for the original entry at https://docs.katalon.com/katalon-studio/docs/define-method.html
Hi Community,
I’m new to Katalon Studio. My Question is, where should I put a method for using it in more than one testcase?
Thanks for the answer.
Best regard,
Adrian
Hello,
You Can use custom Keywords see :
https://docs.katalon.com/katalon-studio/docs/introduction-to-custom-keywords.html#create-a-package
1 Like
As far I know there are two options
1 Custom Keywords - use this when the task is general like waiting for something to happen, read or write file, etc.
2. Call to test case - use this if method is about doing some action on page(s) like login, fill application details form (when the application has workflow), include item in the cart, save a new product…
Thanks,
1 Like