In Selenium you have to use some Unit testing framework like JUnit or TestNG. I will guide you on how you can install TestNG in eclipse using simple steps.
TestNG provides different features that reduce enough time for automation tester while automating the script. TestNG provides different methods and collection of classes which we can consume to write an effective test.
Few features of TestNG which I personally use in my framework.
Parallel Execution, Variety of annotations, Reports, Running test as TestSuite, Assertion method, easy integration with Maven and other tools, Handling thread internally using a Thread pool, support of Data-Driven using @DataProvider annotations, support of parameters and many more.
I have dedicated videos on the TestNG tutorial.
There are 2 ways to install this but I generally prefer using Marketplace of Eclipse.
Install TestNG in eclipse for Selenium
- Start eclipse
- Go to help section
- Click on Eclipse Marketplace
- Search for TestNG
- Hit Enter or click on Search Option
- Click on install
- It will start downloading and It will ask to restart the Eclipse.
- Now you can use TestNG feature in Eclipse.
Note- Once you install the TestNG plugin it will store testng.jar so once you start Selenium then you don’t have to use or import jar again in your project.
Leave a Reply