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

GraphQL API returns error on fetching DataSet ID and is showing incorrect Test ID

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Open
    • Medium
    • Resolution: Unresolved
    • Xray Cloud 6.12.0 | release/6.12.0
    • None
    • Dataset, REST API
    • None
    • Postman, Jira Cloud, windows OS

    • UNCOVERED

    Description

      Description:

      When we use GraphQL API to get the Dataset, the following error is shown :

      String cannot represent value: new ObjectId(\"691ae5225df491b43244a061\")

      The TestIssueID returns an incorrect value, while testExecIssueId does not return anything.

      Pre-conditions: 

      Having the Dataset on for the given Test, where a Test Execution is added to the Test.

      How to reproduce

      1. Run the following GraphQL query:
        {    getTestExecutions(jql: "key = JN2-124", limit: 10) { 
                results {            issueId            tests(limit: 10) {                total                start                limit                results {                    issueId                    testType {                        name                    }                    dataset {                       id testIssueId testExecIssueId testPlanIssueId callTestIssueId parameters { name type projectListId combinations listValues } rows { order Values } }                }            }        }    }}

         

      Expected result:

      Dataset ID should return the ID of the Dataset and testIssueID should show the valid Test issue ID.

      Version:

      • Xray Cloud 6.12.0

      Attachments

        Activity

          People

            bernardo.cottim Bernardo Cottim
            jayanthi.murthi Jayanthi Murthi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: