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

As system, step and attachment ids must be provided in the response of the REST API for Test step update

    XporterXMLWordPrintable

Details

    • Story
    • Status: Closed
    • Major
    • Resolution: Done
    • None
    • R3.3.0
    • REST_API
    • None
    • R3.3.0 S1
    • OK

    Description

      As system, step and attachment ids must be provided in the response of the REST API for Test step update.

       

       

      POST /rest/raven/1.0/api/test/{testKey}/step/{id}

       

      Example input

      {
          "step": "example step",
          "data": "example data",
          "result": "example result",
          "attachments": {
              "add": [{
                  "data": "gsddfgdsfg...(base64) ",
                  "filename": "example1.txt",
                  "contentType": "plain/text"
              }, {
                  "data": "gsddfgdsfg...(base64) ",
                  "filename": "example2.txt",
                  "contentType": "plain/text"
              }],
              "remove": [
                  141,
                  105
              ]
          }
      }

      Example of response

      {
        "id": 123,
        "attachmentIds": [11, 12]
      }

       

       

      ACs:

      • the id of the step must always be returned
      • the attachment ids returned will be only the ones corresponding to the added ones in the request
      • it shall be possible to just add/remove attachments (i.e. without passing the step/data/result attributes)

       

      Attachments

        Activity

          People

            ipvm Isabel Moreira [X] (Inactive)
            smsf Sergio Freire
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 3 days
                3d
                Remaining:
                Time Spent - 1 day, 5 hours, 10 minutes Remaining Estimate - 1 day, 2 hours, 50 minutes
                1d 2h 50m
                Logged:
                Time Spent - 1 day, 5 hours, 10 minutes Remaining Estimate - 1 day, 2 hours, 50 minutes
                1d 5h 10m