TestNG Testing Skill Core Patterns Basic Test with Groups Data Providers TestNG XML Suite Parallel Execution Soft Assertions Listeners Lifecycle Annotations Anti-Patterns | Bad | Good | Why | |-----|------|-----| | everywhere | Independent tests | Cascading failures | | No groups | | Can't run subsets | | Hard-coded test data | | Reusable | | Priority ordering | Independent tests | Fragile | Quick Reference | Task | Command | |------|---------| | Run suite | | | Run group | | | Run class | | | Reports | | Deep Patterns → | § | Section | Lines | |---|---------|-------| | 1 | Project Setup & Co…