tijnn
tijnn

Reputation: 416

How to Pass Metadata Tags from Robot Framework to Azure Test Results for Priority Column?

enter image description here

I'm working with Azure DevOps pipelines and Robot Framework. In the Azure test results, there's a column called Priority. I want to use a metadata tag in my .robot files to pass the priority value so that it appears in the Azure pipeline test results.

From what I understand, the priority value should be mapped to the following location in the Azure test results:

Publish test results Azure (Priority /TestRun/TestDefinitions/UnitTest.Attributes["priority"].Value)

I found this information about halfway down the page in the Azure documentation.

Question:

How can I format the metadata tag in the .robot file to pass the priority value to the Azure test results?

Is there a specific syntax or structure I need to follow to ensure the priority value is correctly mapped and displayed in the Azure pipeline results?

Example:

Here's an example of what I've tried so far in my .robot file:

    *** Settings ***
Metadata    Priority    1

*** Test Cases ***
Example Test Case
    [Tags]    Priority-1
    Log    This is a test case with priority 1

However, this doesn't seem to reflect in the Azure test results. What am I missing?

Additional Context:

I'm using Robot Framework version 4.1>

The Azure DevOps pipeline is configured to publish test results using the "Publish Test Results" task.

The test results are in the standard JUnit XML format.

The location in the file is here

Publish test results Azure ( Priority /TestRun/TestDefinitions/UnitTest.Attributes["priority"].Value ) ( read on 50% of the page )

Upvotes: 1

Views: 109

Answers (0)

Related Questions