Forum Discussion

ChristianB's avatar
ChristianB
Contributor
12 years ago

Nested Properties Example

Hi everyone,

on http://soapui.org/Scripting-Properties/ ... nsion.html the following example "code" is given:
test = "value"
testexp = "${test}"

-> "${testexp}" evaluates to "value"

testexp = "value"
exp = "${exp}"

-> "${test${exp}}" evaluates to "value"

testxml = "hello"
testxpath = "//value[@id=${id}]/text()"
id = "123"

-> "${#testxml#${testxpath}}" evaluates to "hello"


I don't quite understand how the
exp = "${exp}"
bit works. Isn't that variable (property) referencing itself?

Also, do I have to enter the quotes (") in the value boxes for the properties?
No RepliesBe the first to reply