ru.yandex.qatools.allure.data.plugins.EnvironmentPlugin.groovy Maven / Gradle / Ivy
package ru.yandex.qatools.allure.data.plugins
import ru.yandex.qatools.commons.model.Environment
/**
* @author Dmitry Baev [email protected]
* Date: 18.02.15
*/
class EnvironmentPlugin implements ProcessPlugin {
public static final String ENVIRONMENT_JSON = "environment.json"
Environment environment = new Environment(id: UUID.randomUUID().toString(), name: "Allure Test Pack");
@Override
void process(Environment data) {
if (data.id) {
environment.id = data.id
environment.name = data.name
};
environment.parameter.addAll(data.parameter)
}
@Override
List getPluginData() {
[new PluginData(ENVIRONMENT_JSON, environment)]
}
@Override
Class getType() {
Environment
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy