alfonsolftc
6 years agoOccasional Contributor
To Write the "status response" from a REST" in a file,status different to "HTTP/1.0 200 OK".
Hi I have a script that writes me in an Excel Sheet the "status" response from a REST, for correct cases, but not the status different to "HTTP/1.0 200 OK". I would like to write this errors. W...
- 6 years agoHey alfonsolftc,
Is there a reason you're not using a Datasink step to do this? If you just need the status headers value i think a couple of lines of groovy in either a script assertion (or separate groovy step), which youve written already for the most part, along with a Datasink step will do this?
Also i'm not understanding the purpose of youre assignment of the hora variable. I can see youre specifying the datetime as the hora variable but you dont appear to use it at all in the script after assignment? Am i missing something important here?
Cheers fella,
Rich