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

On JIRA 7, Remote Test Step Defects aren't listed using the REST API GET Test Run/GET Test Run Step requests

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Done
    • R3.4.0
    • R3.5.2
    • None
    • OK

    Description

      Quick Setup:

      • Make an application link between a J7 and J8 instances;
      • On the J7 instance, create a Test and execute it;
      • On the execution page, add a Local Execution Defect and a Remote Execution Defect (from the J8 instance) to the Overall Execution Defects, and a Local Test Step Defect and a Remote Test Step Defect (from the J8 instance) to the First Step;
      • Perform the GET Test Run REST API request (e.g.: environment/rest/raven/1.0/api/testrun/?testExecIssueKey=J8RT-3&testIssueKey=J8RT-2)
      • Notice that all the Test Run Defects - both execution defects and test step defects - are properly listed:
        {
            "id": 4257,
            "status": "TODO",
            "color": "#A2A6AE",
            "testKey": "J8RT-2",
            "testExecKey": "J8RT-3",
            "assignee": "admin",
            "startedOn": "2019-07-05T11:05:59+01:00",
            "startedOnIso": "2019-07-05T11:05:59+01:00",
            "defects": [
                {
                    "id": 12100,
                    "key": "J8RD-1",
                    "summary": "J8 Local Execution Defect",
                    "status": "To Do",
                    "statusColor": "blue-gray",
                    "iconUrl": "/secure/viewavatar?size=xsmall&avatarId=10303&avatarType=issuetype"
                },
                {
                    "id": 10102,
                    "key": "J7RD-3",
                    "summary": "J7 Remote Execution Defect",
                    "status": "To Do",
                    "statusColor": "blue-gray",
                    "url": "http://10.60.10.28:8034/browse/J7RD-3",
                    "globalId": "appId=918d68e3-535d-373f-b160-97b336da1c8d&issueId=10102"
                },
                {
                    "id": 12101,
                    "key": "J8RD-2",
                    "summary": "J8 Local Test Step Defect",
                    "status": "To Do",
                    "statusColor": "blue-gray",
                    "iconUrl": "/secure/viewavatar?size=xsmall&avatarId=10303&avatarType=issuetype"
                },
                {
                    "id": 10103,
                    "key": "J7RD-4",
                    "summary": "J7 Remote Test Step Defect",
                    "status": "To Do",
                    "statusColor": "blue-gray",
                    "url": "http://10.60.10.28:8034/browse/J7RD-4",
                    "globalId": "appId=918d68e3-535d-373f-b160-97b336da1c8d&issueId=10103"
                }
            ],
      • Scroll to the Steps details section, and only the J7 Local Defects are listed <- THIS IS THE BUG*
        "steps": [
                {
                    "id": 33,
                    "index": 1,
                    "step": {
                        "raw": "a",
                        "rendered": "<p>a</p>"
                    },
                    "data": {
                        "rendered": ""
                    },
                    "result": {
                        "rendered": ""
                    },
                    "attachments": [],
                    "status": "TODO",
                    "comment": {
                        "rendered": ""
                    },
                    "defects": [
                        {
                            "id": 10101,
                            "key": "J7RD-2",
                            "summary": "J7 Local Test Step Defect",
                            "status": "To Do",
                            "statusColor": "blue-gray",
                            "iconUrl": "/secure/viewavatar?size=xsmall&avatarId=10303&avatarType=issuetype"
                        }
                    ],
                    "evidences": []
                },
      • Perform the GET Test Run Step REST API request (e.g.: environment/rest/raven/1.0/api/testrun/33/step/33/)
      • Notice that only the J7 Local Defects are listed <- THIS IS THE BUG*
        {
            "id": 33,
            "index": 1,
            "step": {
                "raw": "a",
                "rendered": "<p>a</p>"
            },
            "data": {
                "rendered": ""
            },
            "result": {
                "rendered": ""
            },
            "attachments": [],
            "status": "TODO",
            "comment": {
                "rendered": ""
            },
            "defects": [
                {
                    "id": 10101,
                    "key": "J7RD-2",
                    "summary": "J7 Local Test Step Defect",
                    "status": "To Do",
                    "statusColor": "blue-gray",
                    "iconUrl": "/secure/viewavatar?size=xsmall&avatarId=10303&avatarType=issuetype"
                }
            ],
            "evidences": []
        }

      Attachments

        Activity

          People

            pmmr Pedro Rodrigues
            pmmr Pedro Rodrigues
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Time Spent - 1 day, 6 hours, 8 minutes Remaining Estimate - 32 minutes
                32m
                Logged:
                Time Spent - 1 day, 6 hours, 8 minutes Remaining Estimate - 32 minutes
                1d 6h 8m