Join 34,000+ subscribers and receive articles from our blog about software quality, testing, QA and security.

How to set content and expected result by default when results are sending via API



I sending results via API (from custom fields I send only actual result) and I get only actual result.

but if I manually write result, I have only enter actual result, because content and expected result are by default

I want to send only actual result via API, content and expected should be by default from Test case. It is possible?


Hi Vytaras,

Thanks for your post! When adding results via the API, you would always need to include the step details (content and expected results) with the API call when adding step results. This wouldn’t be included by default, however you can use the get_case API method to retrieve these details and include this when submitting results:

Hope this helps!