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

When a Test Run has only one iteration, the REST API to set the Test Steps Status is not working

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Xray DC 7.13.0
    • Continuous Delivery
    • REST API
    • None
    • DC

    Description

      Description

      When a Test Run has only one iteration, the REST API does not work to set a status to a particular Test step.

      How to reproduce

      1. Create a Test and add a dataset with only one iteration
      2. Execute this Test - Check that there is only one single iteration in the Test Run page.
      3. Use the API /rest/raven/2.0/api/testrun?testExecIssueKey=TEST-5&testIssueKey=TEST-2 and get the JSON. No information about the iteration is presented.
      4. Use the API to get some particular step /rest/raven/2.0/api/testrun/2/step/2 - This is working now due to the fix of XRAY-10742.
      5. Use the API to set a particular status to a step /rest/raven/2.0/api/testrun/2/step/2/status?status=TODO
      6. An error is thrown:

      Actual result/Attachments

      The API to get a particular Test Step cannot be directly used when having only one iteration.

      Cannot perform this operation because the Test Run has iterations. Please use another endpoint for it.
      

      Expected result

      Since a single iteration is considered a normal run, it should be possible to set the status of a particular Test Step via Test Step API.

      Version

      • 7.13.0

      Attachments

        Issue Links

          Activity

            People

              joana.fonseca Joana Fonseca
              amgt Ana Teixeira
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: