Hi
In Katalon Studio I opened my test collections and the names of the suites held inside the collection have disappeared, I am hoping this does not mean the entire test collections have to be rebuilt as there are over 200 test suites over several collections
this is the error I receive when executing “An internal error occurred during: “Test Suite Collection Builder”.
java.lang.NullPointerException”
In Windows Explorer or Mac Finder, visit the project folder. In the Test Suites
subfolder, you would find a file "Test Suites\2. Regression.ts"
.
The file will be a text file in XML format, something like this:
TSC0.ts.zip (516 Bytes)
Could you share your file in question?
It is likely that the file is somehow corrupted. Katalon team would need it to find how and why it was corrupted.
Did you rename this file recently?
KS seems to be fragile against renaming file resources.
Hi Kazurayam
I have not renamed the files, there are several but I have attached just one for now
E2E_Events_STA.ts (47.7 KB)
Thank you for the file.
But I found nothing problematic in the file.
Please provide the runtime log file zipped. In it we will see a full StackTrace message of the NullPointerException you saw.
(Quote from [TIP] How To Help Us Help You! - #3 by Josh_Deverson)
Sometimes, though rarely, the problem lies within Katalon itself. In those rare cases, the Katalon runtime log can prove very helpful (@ThanhTo). You can access the runtime log via the menu:
- If your runtime log is huge, please zip it before posting it!
Hi
What else could be the issue, here is a screenshot of the Test Collection where all names have disappeared and the error received when selecting execute
Is there a way to restore from the TS file or run some sort of import from the file to restore all the test suites?
I have no idea.
You got a NullPointerException. We call it as “BUGGY software” that raises NPE.
But I don’t know what the bug is. The Stacktrace message will be the most important information to debug KS. Katalon team would want to know it. And I would not be able to debug KS. Only the Katalon team can do that.
Hi
this is what is in the error log
!ENTRY org.eclipse.core.jobs 4 2 2023-06-28 08:34:21.269
!MESSAGE An internal error occurred during: “Test Suite Collection Builder”.
!STACK 0
java.lang.NullPointerException
at com.kms.katalon.composer.testsuite.collection.part.job.TestSuiteCollectionBuilderJob.safeProcessToRun(TestSuiteCollectionBuilderJob.java:113)
at com.kms.katalon.composer.testsuite.collection.part.job.TestSuiteCollectionBuilderJob.run(TestSuiteCollectionBuilderJob.java:78)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
This line tells that a NullPointerException was raised at com.kms.katalon.composer.* People in this “user forum” knows nothing about it. Only Katalon team can.
Are you a paying customer? If you are a paying customer, then you are entitled to raise a support request to Katalon. You should use that channel. You should provide a FULL text of the error log to the support. Don’t trim it. Just zip it and share it with the team.
In the E2E_Events_STA.ts file you shared, I found a segment as this:
<TestSuiteRunConfiguration>
<configuration>
<groupName>Web Desktop</groupName>
<profileName>default</profileName>
<requireConfigurationData>false</requireConfigurationData>
<runConfigurationId>Chrome</runConfigurationId>
</configuration>
<runEnabled>true</runEnabled>
<testSuiteEntity>Test Suites/Combined/Event_STA_Role/Dash_Events_STA_Role_Attendance</testSuiteEntity>
</TestSuiteRunConfiguration>
This Test Suite Collection definition expects that there is a file "Test Suites/Combined/Event_STA_Role/Dash_Events_STA_Role_Attendance.ts"
on disk.
Can you check using Windows Explorer if you have the file on disk?
I have a doubt if the file is really there or not. Possibly the file is in the folder but with different sub-path.
Hi
ohh, okay the “combined” folder name, I actually changed the name of the folder.
it is now Test Suites/For E2E combinations//Event_STA_Role/Dash_Events_STA_Role_Attendance
do you think if I change the name back, it might fix it up?
I don’t know.
If I were you, I will use my favorite text editor to edit the .ts file so that the file to be in sync with the actual file tree.
I would warn every Katalon users. Don’t rename any folders casually.
I know that Katalon Studio is very fragile against “renaming folders” operations. There are many open issues caused by “renaming xxx breaks yyy”. I will list a few:
- Katalon Studio failed to rename a Keyword class
- Cannot rename a package under Include when the package already exists under Keywords
- Katalon Studio erased a Test Case code when it was moved, and then renamed (just recently fixed at v8.6.0)
You should make a full backup of the project before you rename something in the project. The best defence is to use Git for the project so that you don’t lose anything, so that you can bring your files back to the consistent state when your project is broken by a “renaming XXXX”.
Hi, thank you very much I certainly will not be doing that again.
thank you for you time and I will be taking your advice
I think Katalon Team should recongnize a bug of Katalon Studio here. It allowed nina to rename a subfolder in the “Test Suites” folder, and left a Test Suite Collection un-augmented, so the .ts file got broken.
How did you rename the subfolder “Combined” to “For E2E combinations” ? Did you operate Katalon Studio GUI’s Test Explorer? or did you operate the Windows Explorer to rename it?
I created a Katalon Project with a Test Suite Collection named “TCS1”, which contains a existing Test Suite “subfolder/TS1”. Then I did right click “subfolder” to name it to “SUB”. When finshed naming the folder, Katalon Studio automatically augmented the “TCS1” so that it points “SUB/TS1”, which is OK. I mean, I could not reproduce your problem on my machine.
Katalon team would want to know how to reproduce your problem on their machine.
If you changed the folder by Windows Explorer (not in Katalon’s GUI), then you should not blame KS.