Reputation: 415
I'm using the open source versión of SoapUI for a REST request.
I read and generate custom properties in the test case in a groovy routine for Reading certain files:
context.testCase.setPropertyValue( "appId", "_some_id_" );
I want to access this property in the request params:
Name: Value:
appid ${appId}
This gives me null values. What's the nomeclature to access the "appId"
property?
Upvotes: 1
Views: 510
Reputation: 603
I think that you have two way.
right click / Get Data/ CustomProperties / your property
.
${customPropertyName#propertyName}
Upvotes: 0
Reputation: 3538
If the property is defined at the test case level, you could use something like: ${#TestCase#appId}
There are some more details at Property Expansion if you haven't seen it already.
Upvotes: 2