# Lost all my Test cases after renaming folder

**URL:** <https://forum.katalon.com/t/lost-all-my-test-cases-after-renaming-folder/51511>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [January 26, 2021, 10:34pm UTC](https://forum.katalon.com/t/lost-all-my-test-cases-after-renaming-folder/51511 "2021-01-26T22:34:54Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [January 28, 2021, 2:14am UTC](https://forum.katalon.com/t/lost-all-my-test-cases-after-renaming-folder/51511/21 "2021-01-28T02:14:14Z")

</div>

> [@saminkit](#):
>
> how Katalon deletes the scripts from the file system?

I think …

In the `Test Cases` folder, you will find some _testCaseName_`.tc` files. Those `.tc` files has the contents like this:

```auto
<?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.

---

<div class="post-metadata">

**Author:** ![saminkit](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/saminkit/32/16104_2.png) [@saminkit](https://forum.katalon.com/u/saminkit)\
**Post date:** [January 28, 2021, 2:23am UTC](https://forum.katalon.com/t/lost-all-my-test-cases-after-renaming-folder/51511/22 "2021-01-28T02:23:28Z")

</div>

Thanks for your clarification! Appreciate it!

---

<div class="post-metadata">

**Author:** ![Russ\_Thomas](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/russ_thomas/32/11884_2.png) [@Russ\_Thomas](https://forum.katalon.com/u/Russ_Thomas)\
**Post date:** [January 28, 2021, 5:19pm UTC](https://forum.katalon.com/t/lost-all-my-test-cases-after-renaming-folder/51511/23 "2021-01-28T17:19:49Z")

</div>

A post was split to a new topic: [Cleanup Object Repository?](https://forum.katalon.com/t/cleanup-object-repository/51600)

---

<div class="post-metadata">

**Author:** ![lbk](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/lbk/32/3134_2.png) [@lbk](https://forum.katalon.com/u/lbk)\
**Post date:** [April 14, 2021, 10:37pm UTC](https://forum.katalon.com/t/lost-all-my-test-cases-after-renaming-folder/51511/24 "2021-04-14T22:37:25Z")

</div>

This just happened to me too. I didn’t change the name of the Test Case folder but a folder underneath it, changing a capital letter to lowercase. That left all the scripts in the folder empty except for the imports, as if they were all new files.

I checked on the filesystem and the groovy files in the scripts folder are the same, imports only.

I can’t believe that changing the name of a folder under Test Cases is expected to have that affect. Without any warning at all. So easy to lose so much work.

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [April 14, 2021, 11:05pm UTC](https://forum.katalon.com/t/lost-all-my-test-cases-after-renaming-folder/51511/25 "2021-04-14T23:05:59Z")

</div>

Sorry to hear you lost a lot.

It‘s time for you to start using [Git](https://docs.github.com/en/github/getting-started-with-github/quickstart) so that you wouldn’t lose anything in future.

I create a local Git repository for each of all Katalon Studio projects for failure recovery. All projects; no exception.

---

<div class="post-metadata">

**Author:** ![Dave\_Evers](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/dave_evers/32/435_2.png) [@Dave\_Evers](https://forum.katalon.com/u/Dave_Evers)\
**Post date:** [April 17, 2021, 1:48am UTC](https://forum.katalon.com/t/lost-all-my-test-cases-after-renaming-folder/51511/26 "2021-04-17T01:48:31Z")

</div>

Sorry to hear you lost your test cases, been there done that. This is what I do: [How-to: I just lost all my test cases what do I do now?](http://forum.katalon.com/t/how-to-i-just-lost-all-my-test-cases-what-do-i-do-now/53919)

[Previous page](https://forum.katalon.com/t/lost-all-my-test-cases-after-renaming-folder/51511.md?page=1)
