Cucumber Step is failing with null ptr exception | Selenium Training|Java|WebDriver|TestNG|Frameworks|Videos
10% April Month Discount Avail now

Selenium Training Forum

Cucumber Step is failing with null ptr exception

S
shashank Post on 26/01/2019

Hi,

I'm having a step which is passing when I add it in a scenario.I careated a new scenario and it started failing with null ptr exception.What could be an issue :(

PFA

 

D

Instructor

Demo Reply on 04/02/2019

Please send your code

S
shashank Reply on 05/02/2019

I can't upload a zip file here and it takes only file at a time :(

 

D

Instructor

Demo Reply on 05/02/2019

You can upload a zip file.

Without the complete project, we won't be able to analyse the issue.

S
shashank Reply on 05/02/2019

I'm not kidding I'm not able to able to attach a zip file

D

Instructor

Demo Reply on 06/02/2019

The file upload issue has been noted and we're trying our best to resolve this issue at the earliest.

 

In the meantime, you can upload your file to Google Drive or One Drive or Dropbox or any file sharing platform, so that we can resolve your issue at the earliest.

D
Dilip Reply on 06/02/2019

Testing

D

Instructor

Demo Reply on 11/02/2019

Is the issue resolved?

S
shashank Reply on 11/02/2019

Hi,I've uploaded in Google drive.Upload here is still not functional.

https://drive.google.com/open?id=1FjZ1I7x3_nJmkv42vT6rtg6vdmQ1rhJa

 

D

Instructor

Demo Reply on 12/02/2019

As I debugged your code.

Your test is failing because you have not specified the navigate to URL.

S
shashank Reply on 26/02/2019

Sir I've removed the URL from properties file as it was an internal server.I'll update any other website but the issue I'm facing is when I create another scenario in a feature file

D

Instructor

Demo Reply on 06/03/2019

in feature file, you need to specify the url to be accessed.