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
 *         

* Using to add parameters to TestCase. Parameters will be shown * at Allure report. * @see ru.yandex.qatools.allure.events.TestCaseEvent */ public class AddParameterEvent extends AbstractTestCaseAddParameterEvent { /** * Constructs an new event with specified name and value * * @param name of parameter to add * @param value of parameter to add */ public AddParameterEvent(String name, String value) { setName(name); setValue(value); } /** * Add parameter to testCase * * @param context which can be changed */ @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