Forum Discussion
James_Grace
17 years agoOccasional Contributor
I've gotten the context.randomId = Math.random() to return a value from a Groovy script Test Step, then Transfer the value (using a Property Transfer Test Step) to the final Test Step (Interactive Read ).
I just haven't had any luck defining the Math.random() function in the Test Case Setup Script and having the Property Expansion work properly in the XML Request.
It's probably a Scope or Syntax problem on my part. I'm still learning my way around soapUI. I'll keep poking around.
Thanks much for the assistance & very nice work on soapUI. I've convinced my group to switch from soapScope and buy a few copies of soapUI. I expect to get lots time on it in the future.
Have a good day!
~Jim
I just haven't had any luck defining the Math.random() function in the Test Case Setup Script and having the Property Expansion work properly in the XML Request.
It's probably a Scope or Syntax problem on my part. I'm still learning my way around soapUI. I'll keep poking around.
Thanks much for the assistance & very nice work on soapUI. I've convinced my group to switch from soapScope and buy a few copies of soapUI. I expect to get lots time on it in the future.
Have a good day!
~Jim
Related Content
- 8 years ago
Recent Discussions
- 15 years ago