I am running programmatically an xml test file that I pass in, and would like to get the result counts programmatically after the run. Is there a way to do that?
TestNG testng = new TestNG();
List<String> testFilesList = new ArrayList<String>();
testFilesList.add(testFile);
testng.setTestSuites(testFilesList);
testng.run();
int result = testng.getStatus();
int pass = testng...?
I realize that I might have to do a little more than a single line call. The same question was asked in 2010, but the linked answer is no longer available (404 page error).