Uploaded image for project: 'Xray for Jira Cloud'
  1. Xray for Jira Cloud
  2. XRAYCLOUD-11123

GraphQL getTestExecutions returns the Test Run count but results as "null" after creating the Test Execution from UI.

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Waiting Approval
    • Medium
    • Resolution: Unresolved
    • Xray Cloud 17.0.0
    • None
    • Automation, GraphQL, REST API
    • None
    • Cloud

    • UNCOVERED

    Description

      Description

      When querying getTestExecutions { getTestRuns() {} } after creating a Test Execution through the UI, the GraphQL should return an empty results list instead of a total count with "null" results until the Test Run data is available.

      Steps to Reproduce

      1. Create a Test Plan with multiple Tests.
      2. Create a Test Execution under the Test Plan.
      3. Add Tests to the Test Execution through the Xray UI.
      4. Trigger the GraphQL query getTestExecutions { getTestRuns() {} } using Jira Automation.
      5. Observe that the API sometimes returns null for Test Runs with Test Run count.
      6. Observe total count and the results for Test Runs are returned.

      Actual Result

      The GraphQL returns total Test Run count with results as "null".

      "testRuns": {
              "total": 11,
              "start": 0,
              "limit": 50,
              "results": [null, null, null, null, null, null, null, null, null, null, null]
             

      Expected Results

      The GraphQL should return a consistent response while the Test Run data is being created.

      Instead of returning a total count with null results, the API should return an empty results list until the Test Run data is available.

      Attachments

        Issue Links

          Activity

            People

              bernardo.cottim Bernardo Cottim
              sandeep.gurram Sandeep Gurram
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: