Fuczi Fuczi
Fuczi Fuczi

Reputation: 415

Access property in Soap UI Rest Parameter field

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

Answers (2)

Roberto Ramos
Roberto Ramos

Reputation: 603

I think that you have two way.

  • In the field request message right click / Get Data/ CustomProperties / your property. SoapUI Steps for add properties
  • In the field write this data ${customPropertyName#propertyName}

Upvotes: 0

craigcaulfield
craigcaulfield

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

Related Questions