LaunchKit · 2026
Back to skills

testng-skill

communitytesting

Generates TestNG test classes in Java, including group annotations, data providers, parallel execution configs, XML suite files, and listener implementations.

Setup & Installation

npx skills add https://github.com/LambdaTest/agent-skills --skill testng-skill
or paste the link and ask your coding assistant to install it
https://github.com/LambdaTest/agent-skills/tree/main/testng-skill
View on GitHub

What This Skill Does

Generates TestNG test classes in Java, including group annotations, data providers, parallel execution configs, XML suite files, and listener implementations. It handles the boilerplate for common patterns like soft assertions, lifecycle hooks, and cross-browser test factories.

TestNG has a lot of XML and annotation boilerplate that's easy to get wrong, especially around parallel execution and data providers, and this generates correct configurations from a short description.

When to use it

  • Scaffolding a new TestNG test class with proper group annotations and lifecycle methods
  • Creating data provider methods from a list of test input combinations
  • Writing a testng.xml suite file with parallel execution and group filtering
  • Adding a custom listener for screenshot capture on test failure
  • Setting up a thread-safe base test class for parallel browser testing