Hi, how to print Rest Api request in log viewer/console, I’m using latest version of katalon.
Why do you want to print your Rest Api request in log ? If for debugging purpose, you can use the HAR file. It’s path is logged in log viewer/console when you send a request.
Hi @huynguyen Thank you i got request from har file, but i want to get text from har file can show some example
The HAR file is logged for debugging purposes only. There’s no public API to get HAR file information, so getting information from it is impossible if you want to achieve it from your script.
If you want to get information from your request in your script, consider to get it from RequestObject instance. Please refer to https://docs.katalon.com/javadoc/com/kms/katalon/core/testobject/RequestObject.html for more information.