Uploaded image for project: 'Xray for Jira Cloud'
  1. Xray for Jira Cloud
  2. XRAYCLOUD-8382

Error Viewing Test Run When Importing Cucumber Results with Scenario Comments

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Medium
    • Resolution: Fixed
    • Xray Cloud - v4.12.1
    • REST API
    • None
    • Cloud

    • OK

    Description

      Description
      When a cucumber test scenario has comments like #this is a comment in it, when importing test results via API and trying to view the test run details in the UI we get an error:

      Error in request 
      Unable to get data for test run with Test GNT-163 and Test Execution GNT-166 

      If the test is executed via UI we are able to view the test run without any issue.

      Pre-conditions

      • Have cucumber test with comments inside the scenario

      How to reproduce

      1. Import results for said cucumber test via the API endpoint /import/execution/cucumber

      Actual result/Attachments
      The test execution is created, but we are unable to view the test run in the testing board

      Expected result

      We should be able to view the test run like we do when it's ran manually 

      Workaround

      Run the test manually or delete the comments.

      Attachments

        1. feature file.feature
          0.5 kB
          Gonçalo André Sousa Nunes
        2. image-2025-03-11-12-03-09-455.png
          6 kB
          Gonçalo André Sousa Nunes
        3. image-2025-03-13-10-15-39-586.png
          8 kB
          david.rodriguez@consulting-for.edenred.com
        4. Results.json
          7 kB
          Gonçalo André Sousa Nunes

        Activity

          People

            nikhil.diwan Nikhil Diwan
            goncalo.nunes Gonçalo André Sousa Nunes
            Votes:
            6 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: