Project Directory Cleared when running the Test case

  • Katalon Studio Version: Klatalon Studio Enterprise 8.1.0
  • OS Version: Windows 10
  • Browser Version: Chrome 96

Steps to Reproduce:

  1. Open a project
  2. Open a test case (test cases in this code based are normally ran in test suites)
  3. Click run
  4. The project errors and the project directory is emptied and all code is lost

Expected behavior:
The test case runs and the working directory is not emptied

project dir before incident

error on running the test case

project dir after error

In the Statck Trace I found:

        at NewTestListener.sampleAfterTestCase(...)

You have “Test Listener/NewTestListener”. Its sampleAfterTestCse() method tried to clear everything in your project directory as you told it to do so.

1 Like