After saving the scripts and repositories, repository file path is changed in all lines of script.
Kindly help me out to find a solution to the above problem. Is this a bug in Katalon studio or re-recording is not applicable for the same test case in katalon studio.
My guess is that the left one is newly recorded right?
From what I know is, if you use the recorder/object spy. It creates an own folder where Katalon stores it’s objects.
This depends on the page it is on. (Of course if the folder already exists, it stores the objects in the same folder).
So my guess is the following happened.
When you first created the objects in your original test script, you either created it manually, changed the names of the folder/location, or the page was called differently then it is now.
So because it has changed and you let Katalon do its work. It creates a different folder from the original and automatically changes the script into what Katalon recorded (as commanded by yourself).
I am pretty sure your objects from the original scripts are still in your Object Repository. But yes you have to manually change it again as Katalon doesn’t do that.
As far as I know, if you let Katalon do it itself, it will create the newly script and overwrite the old one.
From my understanding this is intended and not a bug.
A solution for this I found is creating the objects and scripts myself, without the recorder.
While this is more work to do, your object repository will be more clean and easier to read (in my opinion).