asyrjasalo / RESTinstance

Robot Framework library for RESTful JSON APIs
https://asyrjasalo.github.io/RESTinstance
GNU Lesser General Public License v3.0
204 stars 84 forks source link

Allow suppress of console output for output keywords #120

Closed kivipe closed 2 years ago

kivipe commented 2 years ago

I want to save the output of some responses but don't want them to spam console. Log keyword already has also_console variable but it is not used by output keywords.

asimell commented 2 years ago

You can redirect output into a file to reduce spam to terminal: Output | response body | file_path=/path/to/some_file

See keyword documentation: https://asyrjasalo.github.io/RESTinstance/#Output

kivipe commented 2 years ago

I want to keep a copy of the output in the RF log to get any values from a reply. If I redirect output to a file, output is not saved into the log file. I think also_console argument would be a good addition, and I can make a PR.

Atihinen commented 2 years ago

This is now implemented in the eficode fork.