Test Suite Collection exection stips after executing some Test Suites on KRE and gives error

I am Executing my Test suite collection using KRE v8.6.6. It consists of 11 Test suite and out of which only 8 run. And then the execution stops with the following error:

Launcher status after execution process completed: Running

Fri Nov 24 21:11:59 IST 2023
java.lang.NullPointerException
        at com.kms.katalon.core.logging.TestSuiteXMLLogParser.processFile(TestSuiteXMLLogParser.java:112)
        at com.kms.katalon.core.logging.TestSuiteXMLLogParser.readTestSuiteLogFromXMLFiles(TestSuiteXMLLogParser.java:61)
        at com.kms.katalon.core.reporting.ReportUtil.generate(ReportUtil.java:470)
        at com.kms.katalon.core.reporting.ReportUtil.generate(ReportUtil.java:480)
        at com.kms.katalon.execution.launcher.ReportableLauncher.prepareReport(ReportableLauncher.java:379)
        at com.kms.katalon.execution.launcher.ReportableLauncher.preExecutionComplete(ReportableLauncher.java:159)
        at com.kms.katalon.execution.launcher.ProcessLauncher.onWatchdogComplete(ProcessLauncher.java:192)
        at com.kms.katalon.execution.launcher.LaunchWatchdog.notifyProcessTerminated(LaunchWatchdog.java:136)
        at com.kms.katalon.execution.launcher.LaunchWatchdog.run(LaunchWatchdog.java:66)
        at java.lang.Thread.run(Thread.java:750)


System is unable to generate report. Reason: null

Fri Nov 24 21:11:59 IST 2023
java.lang.NullPointerException
        at com.kms.katalon.execution.launcher.ReportableLauncher.preExecutionComplete(ReportableLauncher.java:161)
        at com.kms.katalon.execution.launcher.ProcessLauncher.onWatchdogComplete(ProcessLauncher.java:192)
        at com.kms.katalon.execution.launcher.LaunchWatchdog.notifyProcessTerminated(LaunchWatchdog.java:136)
        at com.kms.katalon.execution.launcher.LaunchWatchdog.run(LaunchWatchdog.java:66)
        at java.lang.Thread.run(Thread.java:750)



Fri Nov 24 21:12:00 IST 2023
java.io.IOException: org.dom4j.DocumentException: C:\KatalonScripts\Test-Automation\Automation\Reports\20231124_095706\Sales\TSC01-Oppty\20231124_095706\20231124_095706.rp (The system cannot find the file specified) Nested exception: C:\KatalonScripts\Test-Automation\Automation\Reports\20231124_095706\Sales\TSC01-Oppty\20231124_095706\20231124_095706.rp (The system cannot find the file specified)
        at com.kms.katalon.execution.launcher.provider.ExportReportProvider.exportTestSuiteCollection(ExportReportProvider.java:85)
        at com.kms.katalon.execution.launcher.TestSuiteCollectionLauncher.prepareReport(TestSuiteCollectionLauncher.java:240)
        at com.kms.katalon.execution.launcher.TestSuiteCollectionLauncher.access$17(TestSuiteCollectionLauncher.java:208)
        at com.kms.katalon.execution.launcher.TestSuiteCollectionLauncher$1.run(TestSuiteCollectionLauncher.java:190)
        at java.lang.Thread.run(Thread.java:750)
Caused by: org.dom4j.DocumentException: C:\KatalonScripts\Test-Automation\Automation\Reports\20231124_095706\Sales\TSC01-Oppty\20231124_095706\20231124_095706.rp (The system cannot find the file specified) Nested exception: C:\KatalonScripts\Test-Automation\Automation\Reports\20231124_095706\Sales\TSC01-Oppty\20231124_095706\20231124_095706.rp (The system cannot find the file specified)
        at org.dom4j.io.SAXReader.read(SAXReader.java:266)
        at com.kms.katalon.execution.launcher.provider.ExportReportProvider.exportTestSuiteCollection(ExportReportProvider.java:47)
        ... 4 more



Fri Nov 24 21:12:00 IST 2023
java.lang.NullPointerException
        at com.kms.katalon.execution.setting.EmailVariableBinding.getVariablesForTestSuiteCollectionEmail(EmailVariableBinding.java:47)
        at com.kms.katalon.execution.launcher.TestSuiteCollectionLauncher.sendReportEmail(TestSuiteCollectionLauncher.java:393)
        at com.kms.katalon.execution.launcher.TestSuiteCollectionLauncher.access$19(TestSuiteCollectionLauncher.java:387)
        at com.kms.katalon.execution.launcher.TestSuiteCollectionLauncher$1.run(TestSuiteCollectionLauncher.java:197)
        at java.lang.Thread.run(Thread.java:750)



Fri Nov 24 21:12:00 IST 2023
java.lang.NullPointerException
        at com.kms.katalon.execution.launcher.TestSuiteCollectionLauncher.uploadReportToIntegratingProduct(TestSuiteCollectionLauncher.java:344)
        at com.kms.katalon.execution.launcher.TestSuiteCollectionLauncher.access$20(TestSuiteCollectionLauncher.java:338)
        at com.kms.katalon.execution.launcher.TestSuiteCollectionLauncher$1.run(TestSuiteCollectionLauncher.java:200)
        at java.lang.Thread.run(Thread.java:750)

I am running it on windows 10 with 16gb of ram and enough memory space.

Pls help to resolve the issue.

Thanks in advance.

1 Like

Recently there as a topic

This topic seems to be related to your case: a null in the execution0.log file caused Exceptions.

I suppose there is a bug in Katalon Studio and KRE.

@vu.tran @Elly_Tran

Hi,

I want to highlight this error line:

java.io.IOException: org.dom4j.DocumentException: C:\KatalonScripts\Test-Automation\Automation\Reports\20231124_095706\Sales\TSC01-Oppty\20231124_095706\20231124_095706.rp (The system cannot find the file specified)

In my case, I checked it and the .rp file was not present there. Only JUnit_report was there.

I want to know why this .rp file not generated. Where and how can i check this?

Thanks,
Hritik

Hi,

Thank you for letting us know your issue. Can you please help provide more details about the problem so that I can create ticket for my team to investigate and define whether it is bug or not?

Hi,

What more details can i give you?
Any specifics?

Thanks,
Hritik

Please follow this guide:

User information
In case of License issue, please provide : accountID, account owner email address

*Summary
Summary of bug log you have faced

*Steps to reproduce
Step by step explanation

*Expected Results

*Actual Results

*Screenshots / Videos
(please attach screenshots or videos if necessary to reproduce the issue)

*Blocker?
Yes/No


*Operating System
e.g. Windows 10/11 or MacOS Monterey

*Katalon Studio version
e.g. version 8.x.x

*Katalon Studio logs

Thank you!