My Test Suites often Error and i have to adjust in Notepad

Hi everyone.


I occur this problem so often. I dont know why.
My latest test suite conditions are

  1. I put a bit code in test suite (setup and teardown)
  2. I put a lot test cases (prob. 30 tcs), but i just run one by one.

I have solution which is copy paste the error file script (.tc and .groovy) into new test suite with notepad. Kinda annoying.
Thank you.

2 Likes

can you share error logs

There is no error logs. Its just i cant open my customized Test Suites.

There might be some coding mistakes; so that you get “Unable to open the test suite”.
You should fix the mistakes.

The code is running properly.
For now, i made new test suite with the same code as error test suite. It works properly.
I just wondering why cant i open my test suite, while making new one with same script running properly.

No error. Just a warning in another file.

I found a way to reproduce this.
So

  1. I have error test suite
  2. I make new test suite
  3. I copy every value in new test suite (.tc and .groovy) from error test suite to new test suite
  4. New test suite works perfectly
  5. When i close new test suite, new test suite will become error test suite.
  1. stop Katalon Studio.
  2. In Windows Explorer or any other means, open the folder of your Katalon project
  3. open the Test Suites folder. In the Test Suites folder, you will find several files (*.rs, *groovy).
  4. Open them using any text editor (except Katalon Studio). Look into them. Try to find anything curious.

I suspect some file is broken somehow.

Im sorry but i dont find anything weird or makes me curious. I compare it with the new test suite.

I have no more idea. If I were you, I would erase what’s not working and forget it.

oh its fixed now. I dont even know why.

Thanks, sir. Appreciate it. I think re-login is the answer.

In such a case where Katalon Studio behaves mad, you should try

  1. close the project
  2. using Windows Explorer or any other means (I would use Visual Studio Code), remove the bin folder under the project folder
  3. remove the Libs folder under the project folder
  4. remove the .cache folder under the project folder
  5. reopen the project
  • Lib folder contains various Groovy source code automatically generated Katalon Studio.
  • bin folder contains the binary class files compiled out fo the various Groovy sources (Test Case scripts, Test Suite scripts, Test Listener scripts, Global Variable class source, Execution Profiles source).
  • .cache folder conbtains the binary class files compiled out of your Custom Keywords.

Katalon Studio sometimes fails to keep the contents of those folders for the artifacts in sync with the sources that were manually coded. I find Katalon Studio GUI is fragile. It easily breaks.

In an exceptional situation, Katalon Studio GUI behaves mad. You can not predict what will happen. Anything curious could happen.

The only remedy I know is to remove those folders and give Katalon Studio GUI a chance to initialize the project cleanly.

1 Like

noted sir. Thanks for the detailed information.

1 Like