Day: May 19, 2018

TestNG Tutorials 14: Can We Overload Methods In TestNG Class?

Hello Folks, Method overloading is an important concept in Java. Can we create overloaded method in TestNG class. Let’s give it a try. Overloaded TestNG class: Create a testng.xml and run it: Output: You will get above exception in console because TestNG does not allow you to put any type of parameters to a TestNG […]

TestNG Tutorials 13: Can An Interface have TestNG Methods? If Yes, How To Execute Them?

Hello Folks, We talked about TestNG class in previous post. Can we declare and define TestNG annotated methods in an Interface? We will learn now. As per Java 8, An interface can have abstract methods, default methods and static methods. Let’s create an Interface with TestNG annotated abstract methods and observe what happens: An interface […]

Please wait...

Subscribe to new posts to become automation expert

Want to be notified when my new post is published? Get my posts in your inbox.