Forum Discussion
SmartBear_Suppo
Alumni
12 years agoHi,
You can use an event filter SubmitListener.afterSubmit, and grab the authorization token from the header and save to a property.
Regards,
Marcus
SmartBear Support
You can use an event filter SubmitListener.afterSubmit, and grab the authorization token from the header and save to a property.
if( submit.response == null )
{
return
}
def headers = submit.response.responseHeaders
context.testCase.setPropertyValue( "uxfToken", headers.get("uxfauthorization").toString() )
Regards,
Marcus
SmartBear Support