Forum Discussion

userdanfoss's avatar
userdanfoss
Occasional Contributor
5 years ago

How can i print API response in result doc

Hi,   I want to print API response in Result. i am using script assertion Please find below code   def response = context.expand( '${GetDeviceByEID#Response#$[\'status\']}' ) log.info(response...
  • HimanshuTayal's avatar
    HimanshuTayal
    5 years ago

    userdanfoss :

     

    Instead of using log.info you can use assert command it will get printed in report.