What is test in TestNG XML?
TestNG xml is TestSuite for Executing TestCases. You can perform parallel execution, test case archestration like inclucing ,excluting testcases, pass parameters to test cases when you execute test cases from testsuite xml file. Also when you want to execute test automation code from CI/CD pipelines you can add this xml in maven pom file and can trigger test from maven