← All skills

Testng Skill

Unit testingJava

Copy and Paste in your Terminal

npx skills add https://github.com/LambdaTest/agent-skills.git --skill testng-skill

Overview

When to Apply: Reference when writing Java tests with TestNG, configuring testng.xml suites, using @DataProvider for data-driven testing, or setting up parallel execution strategies. Triggers on "TestNG", "@DataProvider", "testng.xml", "groups".

Playbook Deep Dive (13 sections): §1 Project Setup & Configuration · §2 Suite XML Configuration · §3 BaseTest & Thread-Safe Driver · §4 Data Providers (Advanced) · §5 Factory Pattern · §6 Listeners (Production Suite) · §7 Soft Assertions & Dependencies · §8 Page Object Integration · §9 Parallel Execution Strategies · §10 Reporting Integration · §11 CI/CD Integration · §12 Debugging Table · §13 Best Practices

The agent loads from 2 on-demand reference files (advanced-patterns.md, playbook.md) containing detailed implementation guides, cloud integration patterns, debugging tables, and language-specific best practices.


For full reference, implementation samples, and cloud setup, see the Documentation, Playbook, Advanced patterns tabs.