Get test results file from TC using REST API Follow Av Regule Created November 06, 2019 08:37 Is there any way to get Test Results file (in CSV) using REST API? Or any other way to get this file with results using Python?
While there isn't a way to download the CSV with the REST API alone, you could get the CSV with a Python script. The URL for the CSV file will always be in the same format:
The parameters for each build are retrievable via REST API with the help of the Build Locator. With your Python script, you could collect the parameters from REST API and download the file by constructing the URL.
Thank you Eric,
but now I can't fins a way to get
Could you please point out how to det it with REST?
The Build Configuration ID is the external name for Build Type ID. So you could use a request like this, supplying the Build ID as a locator in this case. It will return the Build ID, Build Configuration ID and the Build Number.
Using this data, the URL would be constructed like this:
Got it! Thank you for your help!