Forum Discussion
SmartBear_Suppo
Alumni
12 years agoHi,
Create a testCase level property,
called service_endpoint
More tips and tricks on coding,
http://www.soapui.org/Scripting-Propert ... ricks.html
Thanks,
Jeshtha
Create a testCase level property,
called service_endpoint
//Create a script assertion to get the service endpoint and save it in the test case property.
testRunner.testCase.setPropertyValue( "service_endpoint", messageExchange.getEndpoint())
// Once you save the endpoint in a property you can access it using the following property
testRunner.testCase.getPropertyValue( "service_endpoint" )
//or
context.expand( '${#TestCase#service_endpoint}' )
More tips and tricks on coding,
http://www.soapui.org/Scripting-Propert ... ricks.html
Thanks,
Jeshtha