# BUG - Failed renaming test case deletes content

**URL:** <https://forum.katalon.com/t/bug-failed-renaming-test-case-deletes-content/9835>\
**Category:** Bug Report\
**Tags:** bugs-report, katalon-studio\
**Created:** [March 21, 2018, 10:32am UTC](https://forum.katalon.com/t/bug-failed-renaming-test-case-deletes-content/9835 "2018-03-21T10:32:28Z")\
**Posts on this page:** 1\
**Showing post:** 10

<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:** [May 25, 2022, 10:26am UTC](https://forum.katalon.com/t/bug-failed-renaming-test-case-deletes-content/9835/10 "2022-05-25T10:26:38Z")

</div>

I believe you haven’t tested a case where you have **subfolders** under the `Test Case`. Katalon Studio can not manages _subfolders_ under the `Test Cases` folder properly.

Please follow the steps I described at

> [@Script code vanished when a test case is renamed](http://forum.katalon.com/t/v8-3-0beta-script-code-vanished-when-test-case-is-renamed/63016):
>
> Katalon Studio v8.3.0.beta macOS Monterey 12.2.1 I created a GitHub project where you can see the bug reproduced. step1 I created a script [Test Case/sub/TC1](https://github.com/kazurayam/CodeVanishedWhenTestCaseRenamed/blob/step1/Scripts/sub/TC1/Script1646221324643.groovy), this had no problem step2 I moved the script to [Test Cases/sub/subsub/TC1](https://github.com/kazurayam/CodeVanishedWhenTestCaseRenamed/blob/step2/Scripts/sub/subsub/TC1/Script1646221324643.groovy), this had no problem step3 I renamed the script to [Test Cases/sub/subsub/Main](https://github.com/kazurayam/CodeVanishedWhenTestCaseRenamed/blob/step3/Scripts/sub/subsub/Main/Script1646222028338.groovy) step4 I renamed the script to Test Cases/sub/subsub/Test, Test Cases/sub/subsub/TestTest, Test Cases/sub/subsub/testesttest ---- and found that the script code has vanished. The Git…

> [@nam.nguyen](#):
>
> Could you please record

No I wouldn’t. Making a movie is tiresome. The above GitHub repository has the branches step1, step2, step3 and step4; which you can easily checkout and see. That should be enough.

---

_[View the full topic](https://forum.katalon.com/t/bug-failed-renaming-test-case-deletes-content/9835)._
