We will now start the part that every test automation developer should know, that is, the TestNG framework. TestNG is a framework similar to JUnit and has many useful annotations. In this chapter, we will be using the @Test annotation. First, we will install the TestNG plugin for Eclipse.
Introducing the TestNG framework
Installing the TestNG plugin for Eclipse
Follow these steps to install the TestNG plugin for Eclipse:
- Select Help | Eclipse Marketplace
- Search for TestNG Eclipse
- Install TestNG for Eclipse
The plugin's installation will take some time. Eventually, after the installation, we can right-click on the project and will see the various options that are available, as shown in the following screenshot:
Click...