Monday 19 January 2015

Installation of TestNG in Eclipse

Installation of TestNG in Eclipse

Prerequisites for installing TestNG

1) Java JDK 1.5 or above
2) Eclipse
3) TestNG Library

1. Install java on your machine.

Java can be installed from http://www.oracle.com/technetwork/java/javase/downloads/index.html

From this site download the latest JDK version based on your computer requirement (64 bit or 32 bit).


 


2. Install Eclipse on your machine.
 
Eclipse can be installed from
http://www.eclipse.org/downloads/
From this site down load eclipse based on your computer requirement (64 bit or 32 bit)


 


3. Download TestNG libraries

 
 It is easy to install TestNG, as it comes as a plugin for Eclipse IDE.

Steps to download TestNG

a) Go to Help menu -> Install new software.


 

b) A new screen will show up. Enter the site as http://beust.com/eclipse/

c) The TestNG software will be listed. Click on Next and then install it.
 

 

d) Eclipse will be restarted and then you can add new TestNG class.