How To Use Singleton Class to Manage Instance Variables in Automation Framework – Java
In the previous post, we have seen how maximum beginners and experienced Selenium professionals apply inheritance with TestNG annotations while setup test scripts and end up with encountering NullPointerException. We have solved NullPointerException by converting instance variables to Static variables. We can solve the above problem using a Singleton design pattern as well. Let’s learn…
Read More “How To Use Singleton Class to Manage Instance Variables in Automation Framework – Java” »