Category: TestNG Tutorials

TestNG Tutorials 6: How To Create and Run TestNG XML Of TestNG Class

Hello Folks, In last post, we ran our testng class as a TestNG test using “Run As” option. We can run it using testng.xml which we will learn in this post. After creating testng class, we need to generate a testng.xml which is very easy. We will take same example of previous post: Right click […]

TestNG Tutorials 5: How To Create And Run A TestNG Class

Hello Folks, In this post, we will see some basics implementation of TestNG. A class is called TestNG class if it has annotations provided by TestNG. TestNG provides an annotation called “Test” which you need to use for any method which has some business logic to verify. When you add this “Test” annotation, you DON’T […]

TestNG Tutorials 4: Why TestNG Is Called A Testing Framework?

Hello Folks, You might be asked in selenium interviews, “Why TestNG is called a testing framework?”. Why TestNg is called “Testing Framework“? TestNG, where NG stands for “Next Generation”. TestNG is a testing framework to perform unit, functional, end-to-end, integration, etc testing. This library helps you in writing automated tests. Suppose, you are launching a URL […]

TestNG Tutorials 3: Installation Of TestNG In Eclipse ==> Using Eclipse Market Place And Install New Software Options

Hello Folks, In last Post, we have seen how can we directly download and use TestNG. We will see another two ways in this post. Using Eclipse Market Place Option: Steps to be followed: Steps 1: Navigate to Help-> Eclipse Marketplace.   You will see below screen. Steps 2: Type “TestNG” in “Find” test box and […]

TestNG Tutorials 2: Installation Of TestNG In Eclipse ==> Download And Add To Build Path Way

Hello Folks, In last post, we have seen the requirements of TestNG in Selenium webdriver. We will learn how can we install TestNG in eclipse. TestNG is a jar file. Any JAR file stands for Java ARchive which is a package file format typically used to aggregate many Java class files and associated metadata and resources (text, images, etc.) into one file for distribution. We […]

TestNG Tutorials 1: Why Do We Require TestNG In Selenium?

Hello Folks, We have written so many automated scripts in previous posts. We wrote those scripts inside a main method. To run that particular script, we ran main method of that particular class. Let’s assume that we have 100 test scenarios to automate and we developed 100 test scripts using typical style of writing java […]

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.