TestNG plugin - plugin detail

Basic support for TestNG testing framework

Plugin owner: jungi
Website: http://wiki.netbeans.org/TestNG
Added: 2011-05-15
License: The Common Development and Distribution License (CDDL) and GNU Public License v.2 w/Classpath Exception
Category: Testing
Downloaded: 12,432 times
 3.73, by 1 users

Plugin Log Show log

Versions available

Download plugin   Download size: 0.62 MB   Last Update: 2011-05-15

This plugin is also available on the NetBeans Plugin Portal Update Center. Use 'Tools > Plugins' action from the NetBeans IDE main menu for convenient installation of this plugin

What's new in this version

Verifications for NetBeans versions

7.0 verification PASSED See verification details


Plugin provides support for creating, running and debugging tests based on TestNG testing framework.

[ You have to be logged in to be able to comment. ]

User Comments


Continued support of TestNG plugin?

Seems like development/maintenance of this plugin has stopped a long time ago.
Will there be a testng plugin for netbeans under the Apache umbrella (incubator-netbeans)?

There are a few issues with testng in netbeans 8.1/8.2 which are reported in bugzilla.

Is there another testng plugin under active development?
Posted by guitarboogie on Jan 10, 2018

re: Template fails to fill in and generates invalid source file


For some reason the plugin was improperly enabled. I found that out as I was playing around in the Plugins dialog box. When I went to the Installed tab and checked the Show Details checkbox it shows much more info and all the TestNG entries were unchecked. They don't even show without that checkbox being selected. Enabling them made everything work.

I ended up doing a reinstall just to be certain there weren't other issues and found that it now had a newer version of the TestNG framework (6.0.1 versus 5.11), and that also worked fine. I am not sure why my earlier install was in such a strange state, but it is working now.

I still need to grok how to configure it to run tests both within and outside of the IDE, as this is all new to me, but thanks for providing this support in Netbeans.
Posted by lvskiprof on Jun 30, 2011

re: Template fails to fill in and generates invalid source file


can you provide some more info, please? ie project type for which this happens, os, jdk, nb version... I'm asking because it works fine for me.

Posted by jungi on Jun 17, 2011

Template fails to fill in and generates invalid source file

When I do a "New File..." and select TestNG as the type I get this for a source file (obviously this is supposed to get filled in during creation, but it is not):

<#assign licenseFirst = "/*">
<#assign licensePrefix = " * ">
<#assign licenseLast = " */">
<#include "../Licenses/license-${project.license}.txt">

<#if packagecurrent?? && package

!= "">
package $

import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;

* @author ${user}
public class ${


public void setUp()
// code that will be invoked before this test starts

public void aTest()

public void cleanUp()
// code that will be invoked after this test ends
Posted by lvskiprof on Jun 16, 2011