Overview

You can add additional metadata to your test cases and test results using Allure Labels mechanism. Allure Labels is a set of key-value pairs that can be used to store metadata in Allure Results. Allure Enterprise can use that metadata in order to add additional attributes to test cases and test results and UI. And such fields can be used to filter results, group test cases and so on.

Allure Enterprise supports different types of attributes in order to construct different flows

Attributes

Supported types

How it works?

There are three simple steps:

  1. Add label in your test code
    1. @allure.label.<key>:<value> - simple scenario formatted tag
    2. Allure.label("<key>", "<value>") - static method call in any place inside your test: preparation, step, etc...
  2. Create new attribute in Allure at Administration page: Custom Field, Member, Issue, Test Layer, etc...
  3. Add schema for attribute mapping for your Project
    1. Key: label key from first step
    2. Attribute: attribute name from second step

Real world examples

Custom Filed

Examples: Epic, Feature, Story, Component, Microservice, etc.

Let's add new custom field to your test. For example, Microservice: Report

Instructions:

  1. Go to Administration settings page

  2. Navigate to Custom Fields section and create new fields named Microservice