Uploaded image for project: 'Xray for Jira'
  1. Xray for Jira
  2. XRAY-11284

Error message not displayed when importing Cucumber JSON results via API

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • Xray DC 8.1.1
    • None
    • REST API
    • Data Center

    • UNCOVERED

    Description

      Description:
      When importing JSON results via the Cucumber endpoint (.../rest/raven/2.0/import/execution/cucumber), the error_message argument passed in the results object is not displayed in the test run.
      However, when importing the same file via the UI, the error message appears as expected.

      Preconditions:

      1. Import the feature file provided in this ticket using the Cucumber test endpoint (.../rest/raven/2.0/import/feature?projectKey=).
      2. Create a test execution.
      3. Assign the correct issue keys in the result file for both the test execution and the test key from the imported feature.

      Steps to Reproduce:

      1. Import the result file via API using the endpoint /rest/raven/2.0/import/execution/cucumber.

      Actual Result / Attachments:

      • The error message provided in the results file is not displayed in the test run.

      Expected Result:

      • The error message should be displayed in the test run as it is when imported via the UI.

      Version:
      8.1.1-j10

      Workaround:
      Import the results via the UI.

      Attachments

        1. API.png
          API.png
          31 kB
        2. Results.json
          7 kB
        3. Test.feature
          0.5 kB
        4. UI.png
          UI.png
          53 kB

        Activity

          People

            joana.fonseca Joana Fonseca
            goncalo.nunes Gonçalo Nunes
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: