Dashboard > Selenium IDE > ... > Contributed Extensions and Formats > TestNG mode
Selenium IDE Log In View a printable version of the current page.
TestNG mode
Added by nebiyu, last edited by nebiyu on Mar 22, 2007  (view change)
Labels: 
(None)

Generates code for the Java - TestNG driven mode or Selenium RC with Java.

When creating a new test a new TestNG test will be generated. You can also use this script to edit existing Java TestNG tests or convert your tests between Selenium IDE and Java - TestNG driven mode.

This is a slightly modified copy of the default installed JUnit java driver.

Download Selenium IDE extension: java-testng-rc.js

Download SeleneseTest base class (a TestNG adapted version of SeleneseTestCase) that the generated output inherits from: SeleniumTest.java

Installation instructions:

  1. Download the file "java-testng-rc.js"
  2. Open Selenium IDE and select "Options" -> "Options..." -> "Formats" -> "Add"
  3. Enter a name for the Format (for example "Java - TestNG") and copy the contents of the above file into the large textfield
  4. Select "OK" -> "OK"

To run generated tests you will need to include testng-5.5-jdk15.jar on your classpath or the Selenium RC classpath.

Now you can use the menu "Options" -> "Format" to select the format or go to "Options" -> "Options..." -> "Formats" -> "Name" to adjust preferences.

Known Issues:
*There may be many right now. Only simple tests have been created with this so far. The generated output hasn't been tested extensively yet. This is provided only as an example to get other TestNG users up and running with Selenium IDE.

*Output only supports Java 5+

Hi,

would it be possible to provide an Interface for SeleniumTest.java (extracting it with Eclipse and done). This would open up a better way to create user-implemented classes with additional functionality added (compared to the evil extend).

Best regards
jak4

Site running on a free Atlassian Confluence Community License granted to OpenQA. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.6 Build:#812 Aug 06, 2007) - Bug/feature request - Contact Administrators