use of org.testng.ITestNGMethod in project gradle by gradle.
the class TestNGTestResultProcessorAdapter method onStart.
@Override
public void onStart(ITestContext iTestContext) {
TestDescriptorInternal testInternal;
Object parentId;
synchronized (lock) {
Object id = idGenerator.generateId();
testInternal = new DefaultTestSuiteDescriptor(id, iTestContext.getName());
parentId = suiteId.get(iTestContext.getSuite());
xmlTestIds.put(iTestContext.getCurrentXmlTest(), id);
testId.put(iTestContext, testInternal.getId());
for (ITestNGMethod method : iTestContext.getAllTestMethods()) {
testMethodParentId.put(method, testInternal.getId());
}
}
resultProcessor.started(testInternal, new TestStartEvent(iTestContext.getStartDate().getTime(), parentId));
}
Aggregations