You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I am writing a python script which will parse the results xml and create a dict for all test case names mapped to their "PASSED" or "Failed" status.
I want to send request in jira xray to update execution status of these test cases?
is there any api in xray cloud that supports this or any other method to do that?
Xray provides an API.
See the documentation around importing test execution results here
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is there a way that we can update same test execution rather than creating new one?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What do you currently have in Jira?
Do you use the xray issue types Test and test execution?
You need to create a test, and a test has test executions. in the test execution the referenced test is set to passed via the API.
Based on the field configuration in your project it seems that the component field is required on creating an issue.
Edit:
Yes, specify in the API call the key of the test execution
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In JIRA, i have test execution and test cases added to it. I am also passing component field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
another way i tried:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Tried every way, but it gives me "Failed to import test execution results. Status code: 400
Response: {"error":"Error creating issues in Jira! - components: Components is required."}"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That means that the component field is mandatory on creating an issue in the project where you want to create the test execution issue.
You will need to check the configuration of the Jira project.
Check the Field Configuration Scheme or Workflow
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
But why it is trying to create the Test execution issue, when i am already passing the key.
And also, same component field i am using to create Test Cases and that is working.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I am able to update existing test execution using this
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.