Forum Discussion
James_Grace
17 years agoOccasional Contributor
Thanks Ole,
I can't seem to get this to work.
I added the context.randomId = Math.random() to the Test Case setup
and set the XML request like so,${randomId}
I've tried ${randomId} and ${#TestCase#randomId}. The property expansion is not happening. soapUI sends whatever I put in the UniqueToken holder.
I tried added a def before the context.randomId = Math.random(), and creating the def other ways, but can't get the property expansion to work.
I've also tried creating a UniqueToken groovy script containing the context.randomID function and using the result ni the XML request like so,
${#UniqueToken#randomId}
What am I missing? I can't help but think it's something simple.
I can't seem to get this to work.
I added the context.randomId = Math.random() to the Test Case setup
and set the XML request like so,
I've tried ${randomId} and ${#TestCase#randomId}. The property expansion is not happening. soapUI sends whatever I put in the UniqueToken holder.
I tried added a def before the context.randomId = Math.random(), and creating the def other ways, but can't get the property expansion to work.
I've also tried creating a UniqueToken groovy script containing the context.randomID function and using the result ni the XML request like so,
What am I missing? I can't help but think it's something simple.
Related Content
- 8 years ago
Recent Discussions
- 15 years ago