Sunday, November 3, 2013

Downloading TestNG



Before we can download and start using TestNG, there are certain prerequisites we need. So, let's go ahead with the prerequisites first.

Prerequisites

Before you start using TestNG please make sure that Java JDK5 or above is installed on your system. Also make sure that JDK is set in the system path. In case JDK is not available on your system, you can download it from the following link:
TestNG can be downloaded, installed, and run in multiple ways as follows:
·         Using command line
·         As an Eclipse plugin
·         As an IntelliJ IDEA plugin
·         Using ANT
·         Using Maven
In case you just want to download the TestNG JAR, you can get it from the following URL:


Installing TestNG onto Eclipse



Before we go forward with installing the TestNG plugin onto Eclipse, please make sure you have Eclipse installed on your system. You can get the latest version of eclipse fromhttp://www.eclipse.org/downloads/. At the time of writing this book, I am using Eclipse JEE Juno-SR1 version.


Time for action – installing TestNG onto Eclipse



Let's start with the installation process of TestNG onto Eclipse:
1.      Open your Eclipse application.
2.      Go to Help | Install New Software.
      
3.      Click on the Add… button next to the Work with text box.
4.      Enter TestNG site into the Name box and enter URL http://beust.com/eclipse into the Location box. Once done, click on the OK button.
5.      On clicking OK, TestNG update site will get added to Eclipse. The available software window will show the tools available to download under the TestNG site.
6.      Select TestNG and click on Next.
7.      Eclipse will calculate the software requirements to download the selected TestNG plugin and will show the Install Details screen. Click on Next on the details screen.
8.      Accept the License Information and click on Finish. This will start the download and installation of the TestNG plugin onto Eclipse.
9.      In case you get the following warning window, click on the OK button.
10.  Once the installation is complete, Eclipse will prompt you to restart it. Click on Yes on the window prompt.
11.  Once Eclipse is restarted, verify the TestNG plugin installation by going to Window | Preferences. You will see a TestNG section under the preferences window.


No comments:

Post a Comment