can please replay for issuse
Instructor
Ashish Thakur Replied on 05/09/2020
You have not called the init() function of base class
So property object is not initialized
Still no output
Instructor
Ashish Thakur Replied on 15/09/2020
Please look into the second Image.
I can see that the method name you are providing is in the wrong format.
You can keep the spelling the same as the class name but you cannot keep the casing the same. If you keep the same, the method will be considered as Constructor and the code won't execute.
You can specify the method name as login()
problem sloved . i need to called the init() on every method . any other way to single use
Can you help out please..
Instructor
Ashish Thakur Replied on 17/09/2020
Please share the latest complete exception stack trace.
I am facing this whenever I create new methods in a different class.Can you tell what mistake actually doing
No update regarding code
Instructor
Ashish Thakur Replied on 22/09/2020
Did you try debugging the code?
ExtentTest is not initialized.
Please make sure that BeforeTest/BeforeMethod is having this initialized.
Didn't understand why showing null pointer
can please out
Instructor
Ashish Thakur Replied on 30/09/2020
test.log -> in open browser - where have you initializzed "test"
In screenshots, I can see that you have initiallized only "prop"
test.log -> in open browser - where have you initializzed "test" ---> if I want to log then I use test.log but now not necessary for me
In screenshots, I can see that you have initiallized only "prop"----->i was extended Base Test class.i want initialize every class
attached code. I was unable to run code in src/main/java --> package (com.testcases) --> class (ShoppingSite)
Instructor
Ashish Thakur Replied on 04/10/2020
YTou have used test.log
This line is not imp for you
Thats fine. But you have to remove this line because you have not initialized test object