

If your project is Maven managed, you might want to configure maven-surefire-plugin or maven-failsafe-plugin to run the test case. If you have multiple failed tests, after you've fix your test code, you can rerun the failed tests altogether to save time: Or, go to Run Configuration for better control on the launch configuration, for example, the test group to run pass system properties to the runtime test process, etc.Right clicking on the TestNG suite xml file, to run the custom test suite.Right clicking on the package, to run all the tests under the package.Right clicking on the test class or the source editor, to run that test.Here are the different ways it can be done: There are several ways to launch tests, which is very handy.

Note: There will be more templates available in TestNG Eclipse Plugin 6.10.1, e.g. To create a test method, in the editor, type test, then hit the Content Assist hot-key (' Alt+/' in my case), select the template as below: When you're authoring the TestNG test cases, the predefined templates can definitely help you be more efficient. Use TestNG Eclipse Plugin Authoring Tests TestNG for Eclipse Plugin is available on Eclipse Marketplace, please follow the installation guide. This article shares some tips about how to be efficient when authoring and running tests with TestNG Eclipse Plugin. The TestNG Eclipse plugin gives you the ability to run and debug TestNG test cases within Eclipse IDE.

And the most powerful feature, in my view, is a set of Listeners that hooks into TestNG, which allows to better control the test cases, or augment the reporting, etc. TestNG is a powerful test framework that enables developers to write flexible tests with grouping, sequencing, and data-driven features it even makes writing parallel tests easy. To Be Efficient with TestNG Eclipse Plugin
