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

As system, I can obtain and update the assignee and the executedby of a Test Run using the REST API

    XporterXMLWordPrintable

Details

    • Story
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • R3.2.0
    • REST_API
    • Xray R3.2.0 S4, Xray R3.2.0 S5
    • NOTRUN

    Description

      As system, I can obtain and update the assignee and the executedby of a Test Run using the REST API.

       

      PUT /rest/raven/1.0/api/testrun/{id}/

      Example Request

      curl -H "Content-Type: application/json" -X PUT -u admin:admin --data @example.json http://yourserver / rest/raven/1.0/api/testrun/1

       

      example.json

      {
          "status": "FAIL",
          "comment": "new comment",
          "assignee": "john",
          "executedby": "rambo",
          "defects": {
              "add": [
                  "test-114",
                  "test-115",
                  "test-116"
              ]
          },
          "evidences": {
              "add": [{
                  "filename": "test1.txt",
                  "contentType": "plain/text",
                  "data": "(base64 encoding...)"
              }, {
                  "filename": "test2.txt",
                  "contentType": "plain/text",
                  "data": "(base64 encoding...)"
              }],
              "remove": ["254", "443"]
          },
          "examples": [{
              "id": "1379",
              "status": "TODO"
          }]
      }

       

       

      GET /rest/raven/1.0/api/testrun/{id}/assignee
      Example Request

      curl -H "Content-Type: application/json" -X GET -u admin:admin http://yourserver/rest/raven/1.0/api/testrun/3/assignee

       
      PUT /rest/raven/1.0/api/testrun/{id}/assignee
      Example Request

      curl -H "Content-Type: application/json" -X PUT -u admin:admin http://yourserver/rest/raven/1.0/api/testrun/3/assignee?user=admin 

       
       
      GET /rest/raven/1.0/api/testrun/{id}/executedBy
      Example Request

      curl -H "Content-Type: application/json" -X GET -u admin:admin http://yourserver/rest/raven/1.0/api/testrun/3/executedBy

       
      PUT /rest/raven/1.0/api/testrun/{id}/executedBy
      Example Request

      curl -H "Content-Type: application/json" -X PUT -u admin:admin http://yourserver/rest/raven/1.0/api/testrun/3/executedBy?user=admin 

      Attachments

        Activity

          People

            pmmr Pedro Rodrigues
            smsf Sergio Freire
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 days, 6 hours, 5 minutes
                2d 6h 5m