Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

I cant add summary and description via rest Xray API with "import execution result"

Benny
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 21, 2020

Hi,

Im using xray rest API to create tests executions with import option.

(from here:  https://docs.getxray.app/display/XRAY31/Import+Execution+Results+-+REST#ImportExecutionResultsREST-XrayJSONresul

Xray JSON results
on the second option (on existing test execution).

)

it work good so far , then suddenly the summary and description fields not change ..

Im creating the test execution before with "tmp summary" then i call post requests with updated summary (and description) and its works grate (till now ...)

the other fields like:

  • version
  • testPlanKey
  • tests (list)

added successfully

 

example for my json:

{  "testExecutionKey""SECDEV 40639""info" : {"summary" : "my summary","description" : "my description","version" : "123(0.0.0)","testPlanKey" : "SECDEV-40638"},"tests" : [{"testKey" : "E2ETEST-401","status" : "TODO"}]}

 

 

i can try to add with a different post function, but its dose not make any scene

can someone please try to explain me why this filed are ignored ?
thanks
Benny

 

1 answer

0 votes
Sergio Freire - Xblend
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 23, 2020

Hi @Benny ,

can you please check if the Test Execution has transitioned to a read-only state?

If that's the case, you can reopen it in Jira UI and try again.

I suspect that you may have Xray configured to resolve the Test Execution whenever all its Test Runs are in a final status (configuration here).

 

If that's not the case, then probably the best is to reach out Xray support and the team will be glad to help you out. You'll probably need to provide more information to figure out what is happening.

Regards

Sergio

 

=======================================

A personal blog on testing, Agile, and software development: https://sergiofreire.com

Follow me on Twitter: https://twitter.com/darktelecom

Suggest an answer

Log in or Sign up to answer