Custom Keywords Refactoring in Katalon Studio
Starting from Katalon Studio version 7.0, the custom keyword refactoring feature is available.
Specifically, when you move a custom keyword from a package to another one, Katalon Studio updates the new package and keyword identifier in test scripts accordingly.
Note:
- In Katalon Studio version 7.1+, you can refactor custom keywords in both test cases and the Custom Keyword section.
Here is an example:
-
Open the shopping cart sample project and any test case.
-
Create a new package in the Keywords folder. Then drag and drop the
Login
keyword fromSimple
to the newly created package. -
Re-open the test case and observe. Katalon Studio has updated the package and keyword identifier in the test scripts accordingly.
Before drag-and-drop
After drag-and-drop