Under Project Structure module, PART 2, Getting error message - java.lang.String cannot be cast to com.aventstack.extent | Selenium Forum
A
Anurag S Posted on 26/07/2020

Team,

Getting error message - java.lang.String cannot be cast to com.aventstack.extentreports.ExtentTest
java.lang.NullPointerException

Note: In the report folder, index HTML document is not getting generated.

 

(See screenshot below in the body)

Steps:

1. Executing the testng.xml

2. CustomerListener.java is present and coded as per the video.

3. The error seems to be of (Extent Type).

4. Please assist in resolving this error. (See below)

5. TestNG version installed after Ashish sir guidance. See below screenshot

Thank you

 

 

 

 

 

 


A
Ashish Thakur Replied on 27/07/2020

The error is in your custom listener class line 20

You are assinging a string variable to extent object


Related Posts