I'm implementing an automated testing system the stb-tester ONE. I've been able to run tests automatically using the REST API and now I'm implementing the Test Reporting module.
I want to be able to download the test results for a test-job in CSV format so I can feed it into my reporting system. For each test I want Test run ID, test case name, start timestamp, duration, result (pass/fail/error), failure reason (that is, the exception that was raised or the assertion that failed).
Can you give me an example of how to do this from Python?
Disclaimer: I work on stb-tester and am an employee of stb-tester.com Ltd. This is a sanitised version of a question we've previously received through other support channels published here in an effort to seed a stb-tester support community on stackexchange.