Test Run Results Request JSON Payload - Attach document

Saturday, July 25, 2020
Avatar

How does one record test run results that includes attachment(s) such as images and other document types? Currently one has to make 2 separate API requests to achieve this outcome. 

E.g.

  1. https://science37.spiraservice.net/services/v5_0/RestService.svc/projects/%7Bproject_id%7D/test-runs/record
  2. https://api.inflectra.com/Spira/Services/v5_0/RestService.svc/projects/%7Bproject_id%7D/documents/file?filename={filename}&tags={tags}&folder_id={folder_id}&document_type_id={document_type_id}&artifact_type_id={artifact_type_id}&artifact_id={artifact_id}

I wish to make use of a single request payload to record test run results and attach documents for the same test run. 

1 Replies
Saturday, July 25, 2020
Avatar
re: Lehlohonolo D Letaoana Saturday, July 25, 2020

That is not possible I am afraid, you need to make two separate API requests.

That is normal behavior.

Regards

David

Statistics
  • Started: Saturday, July 25, 2020
  • Last Reply: Saturday, July 25, 2020
  • Replies: 1
  • Views: 236