'How can I post my test reports to an API?

I've created a test using the samples. It works great. Test works really nice.

But I couldn't find about how can I send reports to an API after each test.

I want to post the reports like "Test Successfull and these are passed" or "Test Failed and these are failed things" + maybe upload also the screenshot it generates".

How can I do this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source