Closed tikolakin closed 11 months ago
It was implemented but not publish to the latest reporter version Wait when PR is merged!
@TetianaKhomenko
please try this on beta with a new reporter
@testomatio/reporter@1.1.0-beta.label-assign
Docs
https://github.com/testomatio/reporter/blob/master/docs/pipes/testomatio.md#assign-label-to-run
the feature was implemented
Is your feature request related to a problem? Please describe. Atm, there is no programatic way to assign labels to test runs. It means automated test reports missing necessary test execution information, ex. versions
Describe the solution you'd like I would like to be able to add metadata to a test run when running automated test. Currently there are two types of metadata possible in testomatio - environment and labels As of now, the environment can be passed with
TESTOMATIO_ENV
variable It would be good to make a similar approach and introduceTESTOMATIO_LABEL
variable which can accept a human friendly text values, ex. 1) label string value:labelTitle:labelStringValue
if label with such title doesn't exist - log warning message. Otherwise assignlabelTitle
label to a test run withlabelStringValue
2) label (boolean?):
labelTitle
if label with such title doesn't exist - log warning message otherwise assign label3) label list value:
labelTitle:labelListOptionValue
if label with such title and labelOptionValue doesn't exist - log warning. Otherwise assign label with valueexample usage
TESTOMATIO_LABEL="version:v1.2.3, regression, type:functional"
it would be great to make passed values case insensitive
Describe alternatives you've considered assign labels manually?
Additional context