I think …
In the Test Cases
folder, you will find some testCaseName.tc
files. Those .tc
files has the contents like this:
<?xml version="1.0" encoding="UTF-8"?>
<TestCaseEntity>
<description></description>
<name>TC1</name>
<tag></tag>
<comment></comment>
<testCaseGuid>12d3ba1b-646f-46cd-a413-772b9239f27c</testCaseGuid>
</TestCaseEntity>
As you can see, this is a kind of meta-information generated/controlled by Katalon Studio. The Test Cases
folder dos not contain Groovy scripts. Instead, Katalon Studio saves Groovy scripts (so to call, Test Cases) into the Scripts
folder.
I guess, when you renamed the folder back to Test Cases
, Katalon Studio found that there are some .tc
files, and KS recognised those .tc
files are meta-information for new Test Cases; therefore it created new minimal scripts in the Scripts
folder.
Possibly, Katalon Studio did NOT delete your previous set of Groovy scripts. KS just recreated and saved new Scripts. Your previous codes in the Scripts
folder were overwritten. I suppose you have no way to restore other than retyping scripts entirely.