Some functions of not working | Selenium Forum
Nandini Rawat Posted on 17/04/2020

I am using the extentreports jar verson 3.1.2. When I copied the class, it seems to having issues as in the screenshot. Is this because some of the methods in the class are not working in later jars?? how to resolve this issue. I cant move forward in DDF until this issue is resolved.

Support Team Replied on 18/04/2020

Please watch the latest video on extent reports as explained in hybrid framework


Nandini Rawat Replied on 19/04/2020

I wathched the hybrid video and after using ExtentManager from hybrid, I am getting nullpointerexception. Here is the trace, testcase, properties file, ExtentManager class. Can you please help with this?

RemoteTestNG] detected TestNG version 7.0.0
Cannot instantiate class com.qtpselenium.testcases.DummyTestC
at org.testng.internal.ObjectFactoryImpl.newInstance(
at org.testng.internal.InstanceCreator.instantiateUsingDefaultConstructor(
at org.testng.internal.InstanceCreator.createInstanceUsingObjectFactory(
at org.testng.internal.InstanceCreator.createInstance(
at org.testng.internal.ClassImpl.getDefaultInstance(
at org.testng.internal.ClassImpl.getInstances(
at org.testng.TestClass.getInstances(
at org.testng.TestClass.initTestClassesAndInstances(
at org.testng.TestClass.init(
at org.testng.TestClass.<init>(
at org.testng.TestRunner.initMethods(
at org.testng.TestRunner.init(
at org.testng.TestRunner.init(
at org.testng.TestRunner.<init>(
at org.testng.SuiteRunner$ProxyTestRunnerFactory.newTestRunner(
at org.testng.SuiteRunner.init(
at org.testng.SuiteRunner.<init>(
at org.testng.TestNG.createSuiteRunner(
at org.testng.TestNG.createSuiteRunners(
at org.testng.TestNG.runSuitesLocally(
at org.testng.TestNG.runSuites(
at org.testng.remote.RemoteTestNG.initAndRun(
at org.testng.remote.RemoteTestNG.main(
Caused by: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(
at java.base/java.lang.reflect.Constructor.newInstance(
at org.testng.internal.ObjectFactoryImpl.newInstance(
... 26 more
Caused by: java.lang.NullPointerException
at com.qtpselenium.testcases.DummyTestC.<init>(
... 32 more

test case is:

Responsive image

properties files is:

Responsive image

ExtentManager class is:

Responsive image

Support Team Replied on 21/04/2020

Which module number are you watching?

Nandini Rawat Replied on 03/05/2020

Hi sorry for the delay. I was doing module 23 part4 which is about generating extent reports. You said use the method in hybrid framework for extenet manager and use it in the data driven framework. But that doesnt seem to was shown in above error message. please help or let me know if you want to remote loginto my machine that will be a quicker way to resolve the issue

Sadhana Sontakke Replied on 04/05/2020

problem is with version of ExtentManger file 

send your email address I will send you file

Support Team Replied on 04/05/2020

New Extent Reports version has come up. New Extent Manager file has to be made.

We uploaded new video:

Nandini Rawat Replied on 04/05/2020

when you will you update the extentmanager in all the franmework?? I have been stuck due to old extenmanager for a while now.

Also have you covered listners in TestNG? Sorry if I have missed it.

Support Team Replied on 05/05/2020

1) In the above video, we have shown the new extent manager. It can be easily used in the framework by replacing file. Please watch it once

2) Listeners are covered in Testng

Related Posts