Forum Discussion
ejwoolley
New Contributor
Thanks for your help, storing it as a property at project level seems to be the way forward. I'll look further into that and see if I can get something working to test it out.
rupert_anderson
10 years agoValued Contributor
No problem.
You can also set/get properties as SoapUI global properties e.g.
In your first mock set the name:
import com.eviware.soapui.SoapUI
SoapUI.globalProperties.setPropertyValue( "firstName", "john" )
and then in your second mock get the name:
import com.eviware.soapui.SoapUI
def firstName = SoapUI.globalProperties.getPropertyValue( "firstName")
Whilst this works and should do you, please beware the potential issues if you start calling the mocks from multiple threads / simultaneously.
Cheers,
Rup
Related Content
- 4 years ago
- 2 years ago
Recent Discussions
- 15 years ago