Forum Discussion

aldana's avatar
aldana
Occasional Contributor
14 years ago

dynamic property-expansion inside 'Properties' test-step?

I want to do dynamic property-expansion inside 'Properties' test-step (see http://www.soapui.org/Scripting-Properties/property-expansion.html).

But using expression like ${3+4} or ${=3+4} wouldn't work (both gets evaluated as string '{...}').

Is there a special syntax for Properties-Test-Step?

thanks
  • aldana's avatar
    aldana
    Occasional Contributor
    Sorry, tried again. Now it works (I seemed to have mistyped things)
  • aldana's avatar
    aldana
    Occasional Contributor
    Regarding this I found another problem. Is there a way to let a dynamic expansion evaluate once inside Properties-Step?

    Problem is I want to set a property once for a whole test-case (multiple test-steps), but expression ${=(int)(Math.random()*100000000)} gets reevaluated every time the property is accessed. My expectation would be that the expression is evaluated once and the copied to the respective property (which breaks the test, because id is changing for every test-step).