Sunday 11 September 2016

How to Install TestNG ?

In eclipse :

1.       Launch the Eclipse IDE and from Help menu, click “Install New Software”.
2.       On the dialog window, click “Add” button.
3.       Type name as “TestNG” and type http://beust.com/eclipse/” as location. Click OK.
4.       You will now see TestNG option selected, if not selected select the check box and click on Next button.
5.       Click “I accept the terms of the license agreement Finish.
6.       Eclipse will prompt to restart . Click on OK.

Else 
  1. Go to Help -> Eclipse Market Place.
  2.  Search for testng.
  3.  Select testNG option and click on install.
  4. Click “I accept the terms of the license agreement Finish.
  5.  Eclipse will prompt to restart . Click on OK.


Maven dependency :
<dependency>

  <groupId>org.testng</groupId>

  <artifactId>testng</artifactId>

  <version>6.8</version>

  <scope>test</scope>


</dependency>

Next

No comments:

Post a Comment