Write your test's business logic and include TestNG annotations in your code.
In a testng. xml file or in build. xml, provide information about your test (e.g., the class name, the groups you want to execute, etc.).
TestNG should be run.
Test scripts can be written in a well-known programming language (such as C++, C#, Tcl, Expect, Java, PHP, Perl, Powershell, Python, or Ruby) or in a particular automated functional GUI test tool (such as HP QuickTest Professional, Borland SilkTest, IBM TPNS, and Rational Robot).