Recent Posts

Saturday, 9 December 2017

TestNG Setup


     If you are developing your application using eclipse and want to perform unit testing, I suggest TestNG is the perfect tool. Now we will discuss how to install TestNG in eclipse.

Installing TestNG onto Eclipse
     Before we can download and start using TestNG, make sure you have Java version 5 or above is installed on your system. Also make sure that Java is set in the system path.
    Now, let’s start with the installation process of TestNG onto Eclipse. I will try to capture all steps in the process.
1. Open your Eclipse IDE.

2. Install TestNG in Eclipse directly from the Eclipse Marketplace. Go to Help and then click Eclipse Marketplace.



3. In the “Find” input field, enter “TestNG” and press enter to search. The search will land you the desired TestNG plugin listed in the result section. Then there you will see an “Install” button with every result that appears in the search. Press it to continue installing the TestNG for Eclipse.


4. Now tick on the “TestNG” item displayed in the list and click on the “Next” button present at the bottom of the popup window.

5. Soon after pressing the “Next” button, the plugin manager will check for the required components and dependencies.

6. Next, in the sequence, you’ll see a license agreement dialog, just click on the “accept” radio button. Then click on “Finish” to complete the TestNG installation process.

7. In this step, you’ll see a security warning which you ignore by clicking the OK button.


8. Once the installation is complete, Eclipse will prompt you to restart it. Click on Yes on the window prompt.

9. Once Eclipse is restarted, verify the TestNG plugin installation by going to Window and then Preferences. You will see a TestNG section under the preferences window.



     We have successfully installed the TestNG plugin into our Eclipse installation. This will help us in executing our TestNG tests or suite using Eclipse.

Next Tutorial  : Creating Java Project with TestNG

Previous Tutorial : TestNG Overview

No comments:

Post a Comment