REST API - Requirement Test Coverage

Thursday, September 22, 2022

I am trying to connect testcases to requirements, using the post API:

The call itself is succesfull but  test coverage / requirement coverage in spiraplan remain empty. 


Using the association Post API can link them but this is not used in test coverage:

Is there some issue with the API call or perhaps a prerequisite im missing? The API calls are done from c# using HttpClient.

4 Replies
Friday, September 23, 2022
re: jgeerligs Thursday, September 22, 2022

I think you are using the wrong endpoint. You are using the Requirement -> Test Steps one, not test cases.

Please use this one:

Friday, September 23, 2022
Saturday, September 24, 2022
re: jgeerligs Friday, September 23, 2022

OK then please log a support ticket with the exact payload you are using:

Tuesday, September 27, 2022
re: inflectra.david Friday, September 23, 2022

Thanks for the help, I made a ticket and got the answer.

It seems the postasjsonasync method of the httpclient in c# sets the content-type to "text/html", which caused the issue. After making sure the content-type is set to "application/json" it works.

Spira Helps You Deliver Quality Software, Faster and With Lower Risk

And if you have any questions, please email or call us at +1 (202) 558-6885


  • Started: Thursday, September 22, 2022
  • Last Reply: Tuesday, September 27, 2022
  • Replies: 4
  • Views: 713