Can't use variables in web service object in Verification script

Please let us know how would your work be affected if this issue has not been resolved?

  1. I can continue my job, but my performance is lower than expected

Operating System

MacOS Mojave

Katalon Studio Version

7.7.2

####Error:
groovy.lang.MissingPropertyException: No such property: apiEnvUrl for class: WSVerification1603049494454
at WSVerification1603049494454.run(WSVerification1603049494454:24)
at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)

apiEnvUrl Variable is defined as a String in the variables tab but it fails in the verification at line:

System.out.println(apiEnvUrl)

Not a bug.
To get the right syntax for accessing variables defined in Request Object you can use the ‘Get a variable’ snippet, see pic:

1 Like

Thanks bionel! :slight_smile:

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.