Skip to content
freynaud edited this page Nov 16, 2011 · 10 revisions

requirement :

  • eclipse ( maven + testng plugins ) ,java, maven, git and browsers installed.

Of course, you can use the same principles without eclipse, maven or git.

checkout the code

➜ workspace git clone git://github.com/freynaud/testng-support.git

import in eclispe

import as a maven project in eclipse img.

run the first test

Setup the testNG eclipse plugin You need to specify the listeners + parameters that will be used to run yours tests.That is done by specifying the the template in the testNG plugin. Select your project, then in the menu project, properties, testNG, put the template from src/main/resources/template.xml

  1. Run a test to validate that everything is properly setup Open Demo1.java Right click on the method test(). Run a testNG.

You will see the test running.

next> User docs

Clone this wiki locally