Closed raShMan777 closed 3 months ago
Hi @raShMan777
can you please confirm your subscription using below form https://www.thunderclient.com/contact
You can use the below script in Tests -> Scripting tab
const fs = require('fs');
var data = tc.response.text;
console.log(data);
fs.writeFileSync("/Users/name/Downloads/response.txt", data);
cool, thx. will test it on wednesday and give feedback but so far it look like an adequate solution.
thx, works as expected and needed. closing this.
We're currently in the process of building a GitLab CI/CD pipeline for exporting data from our monitoring system and writing them into a repo. So now I discovered that the TC CLI doesn't have the feature of saving the response body to a file. While I'm capable of piping the output of
tc
to save the response body: Is there a way to do this in a better/cleaner way e.g. with scripting in the request?We're using the paid version in our company.