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
There are three simple steps:
@allure.label.<key>:<value>
- simple scenario formatted tagAllure.label("<key>", "<value>")
- static method call in any place inside your test: preparation, step, etc...Administration
page: Custom Field, Member, Issue, Test Layer, etc...label key
from first stepattribute name
from second stepExamples: Epic, Feature, Story, Component, Microservice, etc.
Let's add new custom field to your test. For example, Microservice
: Report
Instructions:
Go to Administration
settings page
Navigate to Custom Fields
section and create new fields named Microservice