# Why does Katalon Studio randomly erase test cases?

**URL:** <https://forum.katalon.com/t/why-does-katalon-studio-randomly-erase-test-cases/84041>\
**Category:** Bug Report\
**Tags:** bugs-report, katalon-studio\
**Created:** [February 6, 2023, 3:10am UTC](https://forum.katalon.com/t/why-does-katalon-studio-randomly-erase-test-cases/84041 "2023-02-06T03:10:31Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarkBC](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/markbc/32/22447_2.png) [@MarkBC](https://forum.katalon.com/u/MarkBC)\
**Post date:** [February 6, 2023, 3:10am UTC](https://forum.katalon.com/t/why-does-katalon-studio-randomly-erase-test-cases/84041/1 "2023-02-06T03:10:31Z")

</div>

Katalon Studio 8.5.5-a47e123f is randomly erasing my test cases. Once in a while after I double click on a test case in the Test Cases folder, it opens the test case in a new tab, but the tab is empty.  
I have tried closing and reopening the test case and shutting down and restarting Katalon Studio, but that test case remains empty.

Background: I created my first test case as a recording of a web session, where I deliberately touched every control. I then used Script mode to edit the test case down to just the sequence of actions I wanted. Once I had a master test case, I have been Copy and Pasting entries in the Test Cases list of the Tests Explorer to create new test cases.

The typical sequence is:

1. Right click on a test case in the Test Cases list and click Copy
2. Right click on any test case in the Test Cases list and click Paste to create a “test case - Copy”
3. Rename the copied test case
4. Edit the new instance of the test case to test slightly different functionality
5. Click Save for the modified new test case.
6. Once in a while close some test case tabs when there are getting to be too many.  
Sometimes Step 3 is done after Step 5.  
Do the above sequence a number of times (10-20?).

Once in a while (it has happened at least twice this morning) I will open up one of the older scripts and the edit window that should include all the script steps is blank.

I have tried to reproduce the case doing the above steps and variations on them but have not yet been able to reliably reproduce the bug. It may depend on how many tabs are open or how much copying has recently been done.

But the contents really are gone. When right-clicking on the test case, I chose Open Enclosing Folder which took me to “Katalon Studio//Test Cases”. The .tc file for the empty script looks like all the others, with proper contents, but when I went to the “Katalon Studio//Scripts” folder, all the other scripts are 3KB, but the two empty scripts are 0 bytes. So something caused them to become empty.

Anybody know what sequence of steps I should avoid to avoid this bug?

Also, could someone pass this on to Katalon Support for me, please?

Thanks!  
Mark

---

<div class="post-metadata">

**Author:** ![albert.vu](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/albert.vu/32/20595_2.png) [@albert.vu](https://forum.katalon.com/u/albert.vu)\
**Post date:** [February 6, 2023, 6:11am UTC](https://forum.katalon.com/t/why-does-katalon-studio-randomly-erase-test-cases/84041/2 "2023-02-06T06:11:35Z")

</div>

Hi anh Duy, could you take a look at Mark’s case here? Many thanks anh!

---

<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:** [February 6, 2023, 1:21pm UTC](https://forum.katalon.com/t/why-does-katalon-studio-randomly-erase-test-cases/84041/3 "2023-02-06T13:21:31Z")

</div>

> [@MarkBC](#):
>
> Rename the copied test case

You renamed test cases.

See the following post:

> **[Script code vanished when a test case is renamed](https://forum.katalon.com/t/script-code-vanished-when-a-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, this had no problem step2 I moved the script to Test Cases/sub/subsub/TC1, this had...

* * *

I would warn All Katalon Users.

**DO NOT RENAME YOUR TEST CASE!**

You may lose your code.

_Instead of renaming an existing Test Case, create a new Test Case with a favorable name, and copy the script source from the old one to the new one. This way is safe.  
… You don’t like it? Well, neither do I.  
But it’s better than loosing the code entirely._

* * *

Katalon Studio updates all references to the Test Case which you are to rename, as the following screenshot tells:

 ![スクリーンショット 2023-02-07 10.28.41](https://europe1.discourse-cdn.com/katalon/original/3X/9/a/9a3fd0f628488f9278e976da4b03398a277b8aed.png)

Imagine, you renamed a Test Case which is refered by many other Test Cases and Test suites, and got a failure. A total disaster.

---

<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:** [February 6, 2023, 5:20pm UTC](https://forum.katalon.com/t/why-does-katalon-studio-randomly-erase-test-cases/84041/4 "2023-02-06T17:20:35Z")

</div>

I usually first make a copy of the test case so I can restore it if needed. Pretty much the same thing Kaz suggested.

Before renaming I make the copy:  
CheckLogin  
CheckLogin - Copy

After renaming I delete the copy if the renaming worked:  
CheckProductionLogin  
CheckLogin - Copy

---

<div class="post-metadata">

**Author:** ![anon46315158](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@anon46315158](https://forum.katalon.com/u/anon46315158)\
**Post date:** [February 6, 2023, 9:32pm UTC](https://forum.katalon.com/t/why-does-katalon-studio-randomly-erase-test-cases/84041/5 "2023-02-06T21:32:33Z")

</div>

> [@Dave\_Evers](#):
>
> I usually first make a copy of the test case so I can restore it if needed.

this is not an excuse for Katalon stuff to not fix such shitty issue.  
i am getting tired, as a comunity member, to wipe the \*\*\* of katalon development staff for critical issues.  
i am still here for fun, but this is no longer funny  
@vu.tran let me know if escalation is needed.  
fyi, we, as users, we may have some other channels to ‘promote’ your products

---

<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:** [February 7, 2023, 1:41am UTC](https://forum.katalon.com/t/why-does-katalon-studio-randomly-erase-test-cases/84041/6 "2023-02-07T01:41:07Z")

</div>

**Katalon team have been aware of this [problem](http://forum.katalon.com/t/v8-3-0beta-script-code-vanished-when-a-test-case-is-renamed/63016) over last 10 months and has left it unresolved**. They seem to be busy developing something else. So I suppose that they would NOT be able to fix this problem in the near future. This problem may accidentally occur to anyone.

💣 **WARNING** _Someday your test case code may be erased by Katalon Studio._

How to help yourself? ---- Start using [Git](https://www.baeldung.com/git-guide) before the disaster.

I always use Git to make a fly-weight local backup of the project. The local Git repository will always rescue me from the glitches of Katalon Studio.

1. I make local Git repositories for each of all Katalon projects of mine.
2. Just before renaming a Test Case, I will commit the current “healthy” files into the main [_branch_](https://www.baeldung.com/git-guide#11-git-branching).
3. I will create a temporary branch.
4. I will check out into the temporary branch
5. Then I will try renaming a Test Case.
6. I will make very sure if renaming a Test Case hasn’t caused any troubles in the project. I will run full set of Test Cases to see the status of the project.
7. When assured, I will commit all changes into the temprary branch;
8. I will check out the main branch;
9. I will merge the temporary branch into the main branch.
10. I will make sure the main branch is OK, then delete the temporary branch
11. At the step 6 if I found anythng wrong , I will check out the main branch where my healthy set of files remain unbroken. I will drop the dirty temporary branch away.

Git saves us all !

---

<div class="post-metadata">

**Author:** ![kcbrier1](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kcbrier1/32/30227_2.png) [@kcbrier1](https://forum.katalon.com/u/kcbrier1)\
**Post date:** [May 9, 2025, 2:31am UTC](https://forum.katalon.com/t/why-does-katalon-studio-randomly-erase-test-cases/84041/8 "2025-05-09T02:31:33Z")

</div>

I can verify this is still an issue in May of 2025. As a new user, I had not stumbled upon this thread until it had happened more than once. Using the work around is only effective if I remember to do it every time. And I don’t. So as a user evaluating this for my company, this is an issue that will cost us time, which costs us money, which is a very bad thing.  
If there is a more recent workaround or fix for this that somehow is not in version 10.2.0 I would love to see it before my demo copy expires and I have to report to management. There is no way in hell they will approve this product with this bug.

---

<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 9, 2025, 3:08am UTC](https://forum.katalon.com/t/why-does-katalon-studio-randomly-erase-test-cases/84041/9 "2025-05-09T03:08:02Z")

</div>

They wrote they did something to fix the problem at v10.2.0

> **[Katalon Studio Release Notes: Version 10.x | Katalon Docs](https://docs.katalon.com/katalon-studio/release-notes/katalon-studio-release-notes-version-10.x#fixes)**
>
> Note Download Katalon Studio.Katalon Studio 10.x now adopts Selenium 4, bringing major changes to align with the W3C WebDriver standard. For a complete overview of these updates and required migration actions, see Migrate Katalon Studio from 9.x to...

> # v10.2.0
> 
> ## Fixes
> 
> - Script code vanishes when a test case is renamed.

But now you wrote:

> [@kcbrier1](#):
>
> I can verify this is still an issue in May of 2025.

@kcbrier1

Are you sure that even v10.2.0 has this problem unfixed yet?

---

<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 9, 2025, 1:19pm UTC](https://forum.katalon.com/t/why-does-katalon-studio-randomly-erase-test-cases/84041/10 "2025-05-09T13:19:46Z")

</div>

@kcbrier1

Please show us the Error log.

In the Katalon Studio’s tool bar, choose “Help” \> “Error Log”

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/b/2/b2574f2933c4ebfadf2139ca2b3ffa405862e283.jpeg)

Then the `.log` file will open in a text editor.

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/e/0/e0d3fad1b271c28ba423d30b9fae6c846323d581.jpeg)

I believe that the `.log` contains a Java Stack Trace message that tells the exact reason why your Test Case script was erased. That would help Katalon to try to fix this problem.

Please attach the entire body of `.log` here; do not trim it at all.

---

<div class="post-metadata">

**Author:** ![kcbrier1](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kcbrier1/32/30227_2.png) [@kcbrier1](https://forum.katalon.com/u/kcbrier1)\
**Post date:** [May 12, 2025, 2:33am UTC](https://forum.katalon.com/t/why-does-katalon-studio-randomly-erase-test-cases/84041/11 "2025-05-12T02:33:47Z")

</div>

Nope. I can reproduce it consistently. Sigh.

---

<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 12, 2025, 3:22am UTC](https://forum.katalon.com/t/why-does-katalon-studio-randomly-erase-test-cases/84041/12 "2025-05-12T03:22:32Z")

</div>

Please answer to the question:

> [@kazurayam](#):
>
> Are you sure that even v10.2.0 has this problem unfixed yet?

---

<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 12, 2025, 3:24am UTC](https://forum.katalon.com/t/why-does-katalon-studio-randomly-erase-test-cases/84041/13 "2025-05-12T03:24:07Z")

</div>

> [@kcbrier1](#):
>
> I can reproduce it consistently. Sigh.

Please share the .log here.

---

<div class="post-metadata">

**Author:** ![duyluong](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/duyluong/32/1116_2.png) [@duyluong](https://forum.katalon.com/u/duyluong)\
**Post date:** [May 12, 2025, 1:59pm UTC](https://forum.katalon.com/t/why-does-katalon-studio-randomly-erase-test-cases/84041/16 "2025-05-12T13:59:36Z")

</div>

Hi @kcbrier1,

We are sorry for your inconvenience. Please help to provide us the steps to reproduce your issue and error log in KS v10.2.0.  
Our team will take a look on it.

Thanks

---

<div class="post-metadata">

**Author:** ![kcbrier1](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kcbrier1/32/30227_2.png) [@kcbrier1](https://forum.katalon.com/u/kcbrier1)\
**Post date:** [May 13, 2025, 3:21am UTC](https://forum.katalon.com/t/why-does-katalon-studio-randomly-erase-test-cases/84041/17 "2025-05-13T03:21:12Z")

</div>

Thanks!  
Hope this helps:  
I have a demo license I am evaluating for a client.

Open Katalon Studios with existing test objects and work for about 30 minutes.  
Make a copy of a test case (so I don’t lose my work)  
Open the copy of the test case  
Make changes to the test case  
Right click on name of test case and select rename  
Accept prompt to save all  
input a new name for the test case  
Repeat this a few times (see log)  
**Rename a test case that isn’t open**  
**get error message unable to rename the test case file not found (see attached)**  
Click ok  
Exit Katalon studio (as this is an indication to me that the software has lost its cookies again)  
Restart katalon studio  
**One of the test cases will be blank. In this case it was the one before I tried to rename the unopened test case,**

I have noticed that after 45+ minutes of heavy use - creating, recording, spying, saving, renaming, test cases and test suites,etc - the app will start to have odd and unexpected behavior. Copy and paste of action steps will stop working. Rename will error out consistently. Record feature loses focus and switches to other windows. Editing parameters in popups doesn’t save my changes even when I click ok. If I continue working the app may freeze and I have to force quit.

My workaround is that I have checked my work into version control and try to remember to reboot Katalon Studio every hour or so to avoid losing my work.  
I’m not a developer anymore, but this feels like the kind of problems we used to incur with handling resources.

I’m running on a Macbook Air

**Hardware Overview:**

Model Name: MacBook Air

Model Identifier: Mac14,2

Model Number: MLY33LL/A

Chip: Apple M2

Total Number of Cores: 8 (4 performance and 4 efficiency)

Memory: 8 GB

System Firmware Version: 11881.101.1

OS Loader Version: 11881.101.1

Serial Number (system): M94PQQD2T2

Hardware UUID: 07076038-8B1A-5BEE-8F40-FC9C12BACE05

Provisioning UDID: 00008112-001E54D426A3C01E

Activation Lock Status: Enabled

**System Software Overview:**

System Version: macOS 15.4.1 (24E263)

Kernel Version: Darwin 24.4.0

Boot Volume: Macintosh HD

Boot Mode: Normal

Computer Name: Karen’s MacBook Air

User Name: Karen Brier (karenbrier)

Secure Virtual Memory: Enabled

System Integrity Protection: Enabled

Time since boot: 8 days, 18 hours, 18 minutes

> **(attachments)**
>
> ![Screenshot 2025-05-12 at 10.56.48 AM.png](https://europe1.discourse-cdn.com/katalon/original/3X/0/c/0c1223aa3039c9795716c673d21ed6607d29d98b.png)  
> ![Screenshot 2025-05-12 at 11.00.36 AM.jpg](https://europe1.discourse-cdn.com/katalon/original/3X/c/b/cbb54a8bea0a4b1e9d32e2c9fa0c15e149f3a302.jpeg)  
> [KatalonErrorLog.rtf](https://forum.katalon.com/uploads/short-url/rhbBxsKv0JkRJhxI6aq2F0xXizD.rtf) (236 KB)

---

<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 13, 2025, 3:41am UTC](https://forum.katalon.com/t/why-does-katalon-studio-randomly-erase-test-cases/84041/18 "2025-05-13T03:41:49Z")

</div>

@kcbrier1

Which version of Katalon Studio are you using? Is it v10.2.x, or not?

---

<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 13, 2025, 4:20am UTC](https://forum.katalon.com/t/why-does-katalon-studio-randomly-erase-test-cases/84041/19 "2025-05-13T04:20:28Z")

</div>

I looked into the `KatalonErrorLog.rtf` which @kcbrier1 shared.

I found a lot of curious stuff.

The first thing I noticed, a Java StackTrace of WebSocketTimeException:

```auto
org.eclipse.jetty.websocket.core.exception.WebSocketTimeoutException: Connection Idle Timeout
	at org.eclipse.jetty.websocket.core.WebSocketConnection.onIdleExpired(WebSocketConnection.java:230)
	at org.eclipse.jetty.io.AbstractEndPoint.onIdleExpired(AbstractEndPoint.java:389)
	at org.eclipse.jetty.io.IdleTimeout.checkIdleTimeout(IdleTimeout.java:172)
	at org.eclipse.jetty.io.IdleTimeout.idleCheck(IdleTimeout.java:113)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: java.util.concurrent.TimeoutException: Idle timeout expired: 30000/30000 ms
	at org.eclipse.jetty.io.IdleTimeout.checkIdleTimeout(IdleTimeout.java:167)
	... 7 more

```

In the log file, this Exception repeated hundreds times. There are other kinds of Exceptions that I have never seen before.

It seems to me that the Katalon Studio installation of @kcbrier1 is quite unusual. To me, it seems broken. How is it broken? Why? ---- I have no idea. Nobody would be able to tell.

I think, @kcbrier1 should remove the current Katalon Studio installation, reinstall v10.2.x cleanly.

---

<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 13, 2025, 4:56am UTC](https://forum.katalon.com/t/why-does-katalon-studio-randomly-erase-test-cases/84041/20 "2025-05-13T04:56:17Z")

</div>

@kcbrier1

In order to reinstall Katalon Studio, you should NOT use “in-app update”, as it is known to be buggy.

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/2/0/203e12a0787fc8aa7bd19deecc6431109c313851.png)

You should download the installer

- [Katalon Studio Download | Katalon](https://katalon.com/download)

and install it

---

<div class="post-metadata">

**Author:** ![huy.ly](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/huy.ly/32/30227_2.png) [@huy.ly](https://forum.katalon.com/u/huy.ly)\
**Post date:** [May 13, 2025, 5:40am UTC](https://forum.katalon.com/t/why-does-katalon-studio-randomly-erase-test-cases/84041/21 "2025-05-13T05:40:23Z")

</div>

Hi @kcbrier1,  
As a workaround to recover a missing script, you can find the old script at:

_/Users/karenbrier/FV-Test/FuzionView/Scripts/Admin/\<“your old test case name”\>/Script1746531723475.groovy_  
You can copy this file to the correct script directory to restore your script.  
Also, you can use this file to restore your script.

---

<div class="post-metadata">

**Author:** ![kcbrier1](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kcbrier1/32/30227_2.png) [@kcbrier1](https://forum.katalon.com/u/kcbrier1)\
**Post date:** [May 13, 2025, 2:19pm UTC](https://forum.katalon.com/t/why-does-katalon-studio-randomly-erase-test-cases/84041/22 "2025-05-13T14:19:14Z")

</div>

I thought the log file would tell you that. Apologies.  
10.2.0  
build 10.2.0-ab0efa286c  
Installed May 13, 2025

---

<div class="post-metadata">

**Author:** ![kcbrier1](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kcbrier1/32/30227_2.png) [@kcbrier1](https://forum.katalon.com/u/kcbrier1)\
**Post date:** [May 13, 2025, 2:19pm UTC](https://forum.katalon.com/t/why-does-katalon-studio-randomly-erase-test-cases/84041/23 "2025-05-13T14:19:20Z")

</div>

That’s brilliant - thank you!

[Next page](https://forum.katalon.com/t/why-does-katalon-studio-randomly-erase-test-cases/84041.md?page=2)
