Forum Discussion

rajs2020's avatar
rajs2020
Frequent Contributor
4 years ago
Solved

ReadyAPI Groovy script debugger - How to inspect ReadyAPI variables?

A groovy script in ReadyAPI references ReadyAPI variables like "context". For example, like this - String scriptVar = context.expand( '${#TestCase#myVariable}' ). I would like to inspect the variable...
  • TanyaYatskovska's avatar
    4 years ago

    Hi rajs2020,

    I think logging a variable value can be one of the options:

    log.info(scriptVar)
    or
    log.info (context.expand( '${#TestCase#myVariable}' ))

     

    Please take a look at all possible options in the Debugging Groovy scripts paragraph.