Details
-
Bug
-
Status: Closed
-
Medium
-
Resolution: Not a Problem
-
Xray Cloud - 4.004.000-2
-
XRAYCLOUD 2024 Sprint 2
-
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
- Send API call to GraphQL (https://xray-staging-2.cloud.getxray.app/api/v2/graphQL)
{'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
- depends on
-
XRAYCLOUD-6799 Infinity loading after Adding a new test in test Execution
- Closed