I have defined the takeScreenshot and ITestListener interfaces in my project. when am trying to run the Test method am getting NullPointerException and .jpg file is not generating.
Can anyone please help me out.s
I have defined the takeScreenshot and ITestListener interfaces in my project. when am trying to run the Test method am getting NullPointerException and .jpg file is not generating.
Can anyone please help me out.s
Copyright © 2021 Jogjafile Inc.
FYI
NullPointerExceptioncan happen for many reasons.I would suggest you go over any simple example and double-check what was done wrong or specify the details of your implementation. For example, your
public class TestListener implements ITestListenerand how you declare it intestng.xmlIt will be much easier for us to identify what caused the problem.