Hi. I’m using Katalon Studio.
I want to use same test object in different test case for maintainability.
(I have to make over 200 test case and many of them uses same DOM element)
But when I use recording web, new test object is created every time, so i have to rewrite all of them and reassign to existing test object.
This is so annoying.
Is there any good way?
Add Object by yourself.
After that simply add that object in your TC.
For example, here I’ve used xpaths for Button; Add that object in your TC, set name of button (text that is displayed on button) and number of that button on page as variables (regarding of your page; e.g. if you have 3 buttons with the same name, you need to specify number of that element on page).
Recording web is nice for someone that already start web tests. The best way is to write own objects and call them in TCs.
I want to assign the object added by myself to recorded test case automatically.
Is this possible?
Sure, just add that object in Manual mode. For example Item -> Click; Object -> Button(or other name, object that you have created).