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

Error response for Mutation GraphQL createTest

    XporterXMLWordPrintable

Details

    • XRAYCLOUD 2024 Sprint 2
    • UNCOVERED

    Description

      env: https://xray-staging-2.atlassian.net/jira/projects

      When we create a Test by Mutation GraphQL we get the error message
      It looks like the Fix of https://jira.getxray.app/browse/XRAYCLOUD-6799 changed the creation prosses for a Test

      Preconditions

      • A project should be created

      Steps to reproduce

      {'query': ' mutation { createTest(testType: { name: "Manual"}, steps: [{action: "step action", data: "step data", result: "step result"}], jira: {fields: { summary:"Test", project: {key: "ARDTRS"} }}) {test {issueId jira(fields: ["key"])}warnings} }'}
      ---
      body=query=+mutation+%7B+createTest%28testType%3A+%7B+name%3A+%22Manual%22+%7D%2C+steps%3A+%5B%7Baction%3A+%22created+action%22%2C+data%3A+%22created+data%22%2C+result%3A+%22createdResult%22%7D%5D%2C+jira%3A+%7Bfields%3A+%7B+summary%3A%22This+is+the+Test+summary%22%2C+project%3A+%7Bkey%3A+%22TETCM%22%7D+%7D%7D%29+%7Btest+%7BissueId+testType+%7Bname%7D+jira%28fields%3A+%5B%22key%22%5D%29%7D+warnings+%7D+%7D 

      Expected result

      • Test was created, Response includes "data"
        {'data': {'createTest': {'test': {'issueId': '354790', 'testType': {'name': 'Manual'}

        , 'jira': {'key': 'TETCM-6'}}, 'warnings': []}}}

      Actual result

      • Test was created, Response has the error message:
        Unknown macro: {"errors"}

        ],"data":{"createTest":null}} 

       

      Attachments

        Issue Links

          Activity

            People

              pafp Patricia Pereira
              denys.kulykov Denys Kulykov
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: