Skip to content
This repository has been archived by the owner on Jan 14, 2019. It is now read-only.

Environment

baev edited this page Sep 11, 2014 · 5 revisions

You can add to the allure report some test environment such as report name, browser or test stand address:

How to add environment to your report

There are few ways to add environment to your report.

Provide file with name matching .*environment\\.xml regexp in the following format:

<qa:environment xmlns:qa="urn:model.commons.qatools.yandex.ru">
    <id>2a54c4d7-7d79-4615-b80d-ffc1107016a1</id>
    <name>Allure sample test pack</name>
    <parameter>
        <name>Browser</name>
        <key>my.properties.browser</key>
        <value>Firefox</value>
    </parameter>
    <parameter>
        <name>Test stand</name>
        <key>my.properties.url</key>
        <value>http://yandex.ru</value>
    </parameter>
</qa:environment>  

Also you can use properties file matches .*environment\\.properties

my.properties.browser=Firefox
my.properties.url=http://yandex.ru