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

ru.yandex.qatools.allure.events.AddParameterEvent 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.Parameter;
import ru.yandex.qatools.allure.model.ParameterKind;
import ru.yandex.qatools.allure.model.TestCaseResult;

/**
 * @author Dmitry Baev [email protected]
 *         Date: 20.01.14
 */
public class AddParameterEvent extends AbstractTestCaseAddParameterEvent {

    public AddParameterEvent(String name, String value) {
        setName(name);
        setValue(value);
    }

    @Override
    public void process(TestCaseResult context) {
        context.getParameters().add(new Parameter()
                .withName(getName())
                .withValue(getValue())
                .withKind(ParameterKind.ENVIRONMENT_VARIABLE)
        );
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy