All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.yandex.qatools.allure.events.StepStartedEvent Maven / Gradle / Ivy

There is a newer version: 1.4.0.RC9
Show newest version
package ru.yandex.qatools.allure.events;


import ru.yandex.qatools.allure.model.Status;
import ru.yandex.qatools.allure.model.Step;

/**
 * @author Dmitry Baev [email protected]
 *         Date: 11.11.13
 *         

* Using to start new step * @see ru.yandex.qatools.allure.Allure */ public class StepStartedEvent extends AbstractStepStartedEvent { /** * Constructs an new event with specified name * * @param name initial name value */ public StepStartedEvent(String name) { setName(name); } /** * Sets name, status, start time and title to specified step * * @param step which will be changed */ @Override public void process(Step step) { step.setName(getName()); step.setStatus(Status.PASSED); step.setStart(System.currentTimeMillis()); step.setTitle(getTitle()); } /** * Sets title using fluent-api * * @param title value to set * @return modified instance */ public StepStartedEvent withTitle(String title) { setTitle(title); return this; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy