Forum Discussion
SmartBear_Suppo
Alumni
17 years agoHello,
The easiest way of doing this is to put the session ID in a context variable, and then use a property expansion in your requests. This way you just have to set the property in one place. For instance, wherever you want the session ID to appear use the property expansion like so:
This expansion will look in the current context for the variable named sessionId, so first you need to set this variable:
Regards,
Dain
eviware.com
The easiest way of doing this is to put the session ID in a context variable, and then use a property expansion in your requests. This way you just have to set the property in one place. For instance, wherever you want the session ID to appear use the property expansion like so:
<urn:SESSION>${sessionId}</urn:SESSION>
This expansion will look in the current context for the variable named sessionId, so first you need to set this variable:
holder = groovyUtils.getXmlHolder("Logon#Response");
context.sessionId = holder.getNodeValue("//ns0:SESSION");
Regards,
Dain
eviware.com