Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Xray: Fetching the test execution does not return the correct status of tests associated with it.

Zaid Momin July 15, 2022

Hello,

Hope you are doing well!.

Issue:

I'm trying to get all the test execution statuses associated with the test execution. A few statuses of a few tests are always returned as `PASSED` when the actual test statuses in the test execution of these tests are `TO DO`, `EXECUTING` and `ABORTED`

Note: Statuses are correctly returned in the test execution response, if the test execution statues are `PASSED` , `FAILED` and `N/A`

Example

  • Assume I have a Test Execution TK-XXXX which has 6 test associated with it. (T1: Passed, T2: Failed, T3:Executing, T4: N/A, T5: Failed, T6: Aborted)
  • The below query is executed 
  • In the response the status name for test T3, T4 and T6 is always passed.

APIhttps://xray.cloud.getxray.app/api/v1/graphql and https://xray.cloud.getxray.app/api/v2/graphql

Query 

{

  getTestExecutions(jql"key=TK-XXXX"limit50) {

    total

    start

    limit

    results {

      issueId

      jira(fields: ["key"])

      projectId

      tests(limit50) {

        total

        start

        limit

        results {

          issueId

          jira(fields: ["key"])

          projectId

          testType {

              name

              kind

              id

          }

         status{

                name

                description

              }

        }

      }

    }

  }

}

Could you please help me understand what is it so ? Or am I doing something wrong?

Your response and help would be highly appreciated!

 

Thanks,

Zaid

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events