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

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

    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 creation.

       

      PUT /rest/raven/1.0/api/test/{testKey}/step

       

      Example input

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

      Example of response

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

       

       

      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 - 1 day
                1d
                Remaining:
                Time Spent - 7 hours Remaining Estimate - 1 hour
                1h
                Logged:
                Time Spent - 7 hours Remaining Estimate - 1 hour
                7h