TestNG Framework Basics: TestNG is a test framework usually for large scale end-to-end testing needs. Also, it uses Java, and test methods are written using @Test annotation. Furthermore, functional TestNG tests and suites are mainly driven using suite XML testng.xml file.
TestNG handles many things needed for test case automation and management. It acts as a test engine for running test cases and providing the test results.
We can install TestNG in eclipse in an easy way. Also, find detailed step-to-step instructions here: Working with Eclipse: Installing TestNG
Tests and suites are specified using configuration “testng.xml” file.
It can be run in multiple ways like from the command line, IDE plugins, or using build tools like maven in continuous integration tools like Jenkins, etc. TestNG has a better reporting structure and it provides XML and HTML default reports.
TestNG can be run in multiple ways like from the command line, IDE plugins, or using build tools like Maven and ant. TestNG tests and suites are specified using configuration “testng.xml” file.
Some TestNG Annotations
@BeforeSuite / @AfterSuite
@BeforeTest / @AfterTest
@BeforeGroups / @AfterGroups
@BeforeClass / @AfterClass
@BeforeMethod / @AfterMethod
You can find more information on TestNG Official website: http://testng.org/doc/documentation-main.html