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

ru.yandex.qatools.allure.plugins.EnvironmentPlugin.groovy Maven / Gradle / Ivy

There is a newer version: 1.5.4
Show newest version
package ru.yandex.qatools.allure.plugins

import com.google.inject.Inject
import ru.yandex.qatools.allure.KeyValueWidgetItem

/**
 * @author Dmitry Baev [email protected]
 *         Date: 18.02.15
 */
@Plugin.Name("environment")
@Plugin.Priority(100)
class EnvironmentPlugin extends AbstractPlugin implements WithWidget {

    @Inject
    Environment environment

    @Override
    Object getWidgetData() {
        environment.parameters.collect {
            new KeyValueWidgetItem(key: it.key, value: it.value)
        }.sort { it.key }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy