Environment

Ivan Krutov edited this page Sep 23, 2014 · 5 revisions

Allure allows you to add test environment values such as report name, browser or test server address:

Usage

There are several ways to add the environment to your report:

  • Save the file environment.xml in the following format to the Allure results directory:
<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>  
  • Add the properties file environment.properties to the Allure results directory:
my.properties.browser=Firefox
my.properties.url=http://yandex.ru

All specified properties will be shown on the Overview page.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.