com.github.automatedowl:allure-environment-writer

Java library which allows to write environment.xml file into allure-results directory.

Лицензия

Лицензия

Категории

Категории

Auto Библиотеки уровня приложения Code Generators
Группа

Группа

com.github.automatedowl
Идентификатор

Идентификатор

allure-environment-writer
Последняя версия

Последняя версия

1.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

com.github.automatedowl:allure-environment-writer
Java library which allows to write environment.xml file into allure-results directory.
Ссылка на сайт

Ссылка на сайт

https://github.com/AutomatedOwl
Система контроля версий

Система контроля версий

https://github.com/AutomatedOwl/allure-environment-writer

Скачать allure-environment-writer

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.github.automatedowl/allure-environment-writer/ -->
<dependency>
    <groupId>com.github.automatedowl</groupId>
    <artifactId>allure-environment-writer</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.automatedowl/allure-environment-writer/
implementation 'com.github.automatedowl:allure-environment-writer:1.0.0'
// https://jarcasting.com/artifacts/com.github.automatedowl/allure-environment-writer/
implementation ("com.github.automatedowl:allure-environment-writer:1.0.0")
'com.github.automatedowl:allure-environment-writer:jar:1.0.0'
<dependency org="com.github.automatedowl" name="allure-environment-writer" rev="1.0.0">
  <artifact name="allure-environment-writer" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.automatedowl', module='allure-environment-writer', version='1.0.0')
)
libraryDependencies += "com.github.automatedowl" % "allure-environment-writer" % "1.0.0"
[com.github.automatedowl/allure-environment-writer "1.0.0"]

Зависимости

compile (3)

Идентификатор библиотеки Тип Версия
org.testng : testng jar 6.14.3
io.qameta.allure : allure-testng jar 2.8.1
com.google.guava : guava jar 27.0-jre

Модули Проекта

Данный проект не имеет модулей.

allure-environment-writer

Java library which allows to write environment.xml file into allure-results directory. Currently, the library supports Allure report with either JUnit or TestNG. It would allow you:

  • Easily write the environment.xml file to allure-results directory in any stage of your test.
  • Flexible path of 'allure-results' directory.
  • Use ImmutableMap to create immutable set of values for the environment to contain.

Example of common usage (default path is target/allure-results):

import static com.github.automatedowl.tools.AllureEnvironmentWriter.allureEnvironmentWriter;

public class SomeTests {

    @BeforeSuite
    void setAllureEnvironment() {
        allureEnvironmentWriter(
                ImmutableMap.<String, String>builder()
                        .put("Browser", "Chrome")
                        .put("Browser.Version", "70.0.3538.77")
                        .put("URL", "http://testjs.site88.net")
                        .build());
    }

    @Test
    void sanityOneTest() {
        Assert.assertTrue(true);
    }

    @Test
    void sanityTwoTest() {
        Assert.assertTrue(true);
    }
}

Example of usage with customized allure-results path:

import static com.github.automatedowl.tools.AllureEnvironmentWriter.allureEnvironmentWriter;

public class SomeTests {

    @BeforeSuite
    void setAllureEnvironment() {
        allureEnvironmentWriter(
                ImmutableMap.<String, String>builder()
                        .put("Browser", "Chrome")
                        .put("Browser.Version", "70.0.3538.77")
                        .put("URL", "http://testjs.site88.net")
                        .build(), System.getProperty("user.dir")
                        + "/allure-results/");
    }

    @Test
    void someTest() {
        Assert.assertTrue(true);
    }
}

Sanpshot of received environment data in Allure report:

Bandwidth Logging

Maven dependencies

    <dependency>
        <groupId>com.github.automatedowl</groupId>
        <artifactId>allure-environment-writer</artifactId>
        <version>1.0.0</version>
    </dependency>

Версии библиотеки

Версия
1.0.0