Search in sources :

Example 16 with ITestNGMethod

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));
}
Also used : TestDescriptorInternal(org.gradle.api.internal.tasks.testing.TestDescriptorInternal) ITestNGMethod(org.testng.ITestNGMethod) TestStartEvent(org.gradle.api.internal.tasks.testing.TestStartEvent) DefaultTestSuiteDescriptor(org.gradle.api.internal.tasks.testing.DefaultTestSuiteDescriptor)

Aggregations

ITestNGMethod (org.testng.ITestNGMethod)16 ITestResult (org.testng.ITestResult)5 ITestClass (org.testng.ITestClass)4 TestDescriptorInternal (org.gradle.api.internal.tasks.testing.TestDescriptorInternal)3 TestStartEvent (org.gradle.api.internal.tasks.testing.TestStartEvent)3 Method (java.lang.reflect.Method)2 ArrayList (java.util.ArrayList)2 Properties (java.util.Properties)2 TestCompleteEvent (org.gradle.api.internal.tasks.testing.TestCompleteEvent)2 IMethodInstance (org.testng.IMethodInstance)2 DB (com.cloud.utils.db.DB)1 TransactionLegacy (com.cloud.utils.db.TransactionLegacy)1 GroupByException (com.qaprosoft.carina.core.foundation.dataprovider.core.groupping.exceptions.GroupByException)1 BaseDataProvider (com.qaprosoft.carina.core.foundation.dataprovider.core.impl.BaseDataProvider)1 IRule (com.qaprosoft.carina.core.foundation.rule.IRule)1 Annotation (java.lang.annotation.Annotation)1 Collection (java.util.Collection)1 HashMap (java.util.HashMap)1 HashSet (java.util.HashSet)1 Map (java.util.Map)1