What mistake have done?Help me out | Selenium Forum
T
tanveer Posted on 04/09/2020

 

 


T
tanveer Replied on 04/09/2020

Responsive image


T
tanveer Replied on 04/09/2020

Responsive image


T
tanveer Replied on 05/09/2020

can please replay for issuse


A
Ashish Thakur Replied on 05/09/2020

You have not called the init() function of base class

So property object is not initialized


T
tanveer Replied on 12/09/2020

Still no output

Responsive image

Responsive image

Responsive image

Responsive image


A
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()


T
tanveer Replied on 15/09/2020

problem sloved .  i need to called the init() on every method . any other way to single use  


T
tanveer Replied on 16/09/2020

Can you help out please..


A
Ashish Thakur Replied on 17/09/2020

Please share the latest complete exception stack trace.


T
tanveer Replied on 18/09/2020

Responsive image

Responsive image

Responsive image

Responsive image


T
tanveer Replied on 18/09/2020

I am facing this whenever I create new methods in a different class.Can you tell what mistake actually doing

 


T
tanveer Replied on 21/09/2020

No update regarding code 


A
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.


T
tanveer Replied on 23/09/2020

Didn't understand  why showing null pointer

Responsive image

Responsive imageResponsive image

Responsive imageResponsive imageResponsive image


T
tanveer Replied on 28/09/2020

can please out


A
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"


T
tanveer Replied on 30/09/2020

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 


T
tanveer Replied on 04/10/2020

attached code. I was unable to run code in src/main/java --> package (com.testcases) --> class (ShoppingSite)


A
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


Related Posts