Hi again, so I finally got the latest version of Katalon and report Extent plugin installed. I’ve added the listener (copy cut pasted from the Extent Report Integration)
I did NOT add any steps to testcase because I don’t need any comments or screenshots of all the steps.
When I run the test suite, I’m getting the following error.
1 Start listener action : sampleBeforeTestCase
com.kms.katalon.core.exception.StepErrorException: java.lang.NullPointerException:
Cannot invoke method getName() on null object
at com.kms.katalon.core.main.CustomKeywordDelegatingMetaClass.throwError
(CustomKeywordDelegatingMetaClass.java:101)
at com.kms.katalon.core.main.CustomKeywordDelegatingMetaClass.
invokeStaticMethod(CustomKeywordDelegatingMetaClass.java:73)
at ExtentReportsListeners.sampleBeforeTestCase(ExtentReportsListeners.
groovy:21)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:43)
at com.kms.katalon.core.context.internal.TestHooker.invokeMethod(TestHooker.
java:111)
95)
at com.kms.katalon.core.context.internal.TestHooker.lambda$3(TestHooker.java:
at com.kms.katalon.core.context.internal.TestHooker.invokeContextMethods
(TestHooker.java:94)
at com.kms.katalon.core.context.internal.TestListenerCollector.lambda$3
(TestListenerCollector.java:88)
at com.kms.katalon.core.context.internal.TestListenerCollector.
handleListenerEvent(TestListenerCollector.java:85)
at com.kms.katalon.core.context.internal.ExecutionEventManager.publicEvent
(ExecutionEventManager.java:36)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.
java:268)
at com.kms.katalon.core.common.CommonExecutor.accessTestCaseMainPhase
(CommonExecutor.java:65)
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestSuiteMainPhase
(TestSuiteExecutor.java:161)
at com.kms.katalon.core.main.TestSuiteExecutor.execute(TestSuiteExecutor.java:
107)
176)
Method)
at com.kms.katalon.core.main.TestCaseMain.startTestSuite(TestCaseMain.java:
at TempTestSuite1733271068321.run(TempTestSuite1733271068321.groovy:35)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:43)
Caused by: java.lang.NullPointerException: Cannot invoke method getName() on null object
at com.katalon.extent.report.ExtentReport.startEReport(ExtentReport.groovy:77)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:43)
at com.kms.katalon.core.main.CustomKeywordDelegatingMetaClass.
invokeStaticMethod(Cus
I’ve two different applications that I run (Web and API). Same listener is working under Web but not under API. Anyhow, since it’s working under Web i was able to run few test suites and get the html report with the names I wanted. Problem is that the report is only showing test case names and not steps like html and pdf report katalon has, am I missing something?
I’ve the customkeyword attachLog in my testcase, still the report looks nothing like the html Katalon already has. If I needed just the list of test case names that were executed, Katalon also has that report also.
The plugin requires the Enterprise license, and I do not have one. So I can not do any more contribution to this. I hope Katalon and @mohit.kumar to provide enough support to @mqamar