Uploading screenshot to Testrail test cases

Ask general questions here.
magarwal19
Posts: 12
Joined: Thu Mar 07, 2019 2:04 pm

Uploading screenshot to Testrail test cases

Post by magarwal19 » Wed Feb 19, 2020 6:26 pm

Hi Team,

We have a API in Testrail (add_attachment_to_result) which can be used to upload the attachment to a test case after executing.
Can we use this API or something other to upload the screenshots proof captured by my automation suite to Testrail while executing.

User avatar
N612
Posts: 128
Joined: Mon Jul 11, 2016 4:01 pm

Re: Uploading screenshot to Testrail test cases

Post by N612 » Thu Feb 20, 2020 10:29 pm

I have never used the TestRail API directly, but if this functionality exists in the TestRail API, then it should be possible to utilize it in a Ranorex project just like any other API. The screenshots are stored in the output folder. You can also grab them during runtime if easier with Ranorex.Imaging.CaptureImage method.