Urgent Test Collections test suite names disappeared with this error An internal error occurred during: "Test Suite Collection Builder". java.lang.NullPointerException

Did you rename this file recently?

KS seems to be fragile against renaming file resources.

1 Like

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)

1 Like

Thank you for the file.
But I found nothing problematic in the file.

1 Like

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:

image

  • If your runtime log is huge, please zip it before posting it!
1 Like

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?

1 Like

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.

@vu.tran

1 Like

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)

1 Like

@nina

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.

1 Like

Hi
This is the entire error log

2 Likes

@vu.tran

Please support nina.

1 Like

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.

2 Likes

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?

1 Like

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.

2 Likes

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:

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”.

2 Likes

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

1 Like

@vu.tran

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.

Principally KS should automatically edit the .ts file so that it keeps in sync with the file tree. If it can not implement this automation, it should not allow users to rename subfolders at all in order to refrain from any inconsistency.
3 Likes

I agree with @Kazurayam I was going to suggest the same

1 Like

@nina

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.

1 Like

HI
I renamed the folder directly in the Katalon Studio test explorer.
Also as a follow on this I went and changed the name back to the original name and all the test collections test suites reappeared.
for clarity:

  • Test suite folder created with test suites added to the Parent folder
  • Test collection created with both web and mobile test suites added to the collections from the Test Suite Parent folder
  • Test suite parent folder renamed = Test collection test suites disappeared, execution and null error given
  • .ts files showed the original pathway to the test suite parent folder the new folder name did not synce
  • Changed parent folder name back to original name and the Test collections test suite reappeared
  • tested execution and all ran as expected

as suggested earlier there are two options:

  1. do not allow the ability to rename folders (this to me is not the best option)

  2. ensure changes in pathways are updated with all naming convention changes

It should be noted that the name change only appeared to effect the Test Collections not the test cases or test suites themselves

Question: Does this effect any movements of cases, suites or collections from one branch to another branch within the tree any user has set up?

There should also be directions to user i.e save/restart etc to sync changes or permission required to change naming convention, warning you changes will effect test collections,

1 Like

I would pass this to @vu.tran

1 Like