I have a requirement to update the test run custom fields value using xray cloud API.
I want to know what will be the request payload for updating custom fields, currently, I am using the below request payload, but it's not working. I have been blocked for this issue for a week, please let me know what should be the request payload.
Getting error as "error": "Result is not valid Xray Format".
Please help, can custom field be updated at Junit xml report at testsuite block into Jira test execution instance.
For ex - here i listed in bold and it should update the Jira test execution field which corresponds to field customfield_12345
Sampe jira XMl report
<?xml version='1.0' encoding='UTF-8' ?>
<testsuite name="com.xyz.RegressionTests" tests="40" failures="10" errors="0" skipped="1" time="8152.546" timestamp="2025-03-24T02:59:04" hostname="localhost">
<properties>
<property name="testrun_customfield:customfield_12345" value="Stocks"/>
<property name="device" value="Pixel" />
<property name="flavor" value="" />
<property name="project" value=":app" />
</properties>
<testcase name="verify_HSADetailsAllActivityOnlyPendingTransactionsETEFlow" classname="com.xyz.RegressionTests" time="39.257">
</testcase>
</testsuite>
At this moment when i try with this sample then everything works fine including uploading the test report from junit xml file into test execution instance of Jira with no error
The only problem remains - the custom field values are not getting updated
i referred this doc to come up with the approach
Appreciate if any one share more details around to identify the missing pieces
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.