ru.yandex.qatools.allure.events.TestCaseStartedEvent Maven / Gradle / Ivy
package ru.yandex.qatools.allure.events;
import ru.yandex.qatools.allure.model.*;
/**
* @author Dmitry Baev [email protected]
* Date: 11.11.13
*/
public class TestCaseStartedEvent extends AbstractTestCaseStartedEvent {
public TestCaseStartedEvent(String suiteUid, String name) {
setSeverity(SeverityLevel.NORMAL);
setSuiteUid(suiteUid);
setName(name);
}
@Override
public void process(TestCaseResult testCase) {
testCase.setStart(System.currentTimeMillis());
testCase.setStatus(Status.PASSED);
testCase.setName(getName());
testCase.setSeverity(getSeverity());
testCase.setTitle(getTitle());
testCase.setDescription(getDescription());
testCase.setLabels(getLabels());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy