I am using Ready! API trying to pass a custom variable from an environment into one of the Soap UI NG test cases, however when I set up the property expansion, no value is passed.
I have the following JSON structure:
{
"password":"password",
"orgName":"${#Env#orgname}",
"email":"someuser@notrealdomain.com"
}
When I run the case, the orgname comes back as an empty string, like so
{
"password":"password",
"orgName":"",
"email":"someuser@someorg.com"
}
Thinking maybe I had to move the variable into the TestSuite or something, I added a custom property into the TestSuite and did the same expansion, but again, no value is passed through.
Is this possible to do? Or is there another way to pass an environment custom property?
UPDATE
The answer to this is relatively simple and I may have missed it in the documentation.
When you add a Custom Property to an Environment, it becomes a Custom Property for the Project. So if you need to get the Environment Custom Property value, just do ${#Project#<env_cust_prop>}