Forum Discussion
SmartBear_Suppo
11 years agoSmartBear Alumni (Retired)
Hi,
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
Related Content
- 2 years agoSiKing