Forum Discussion
SmartBear_Suppo
11 years agoSmartBear Alumni (Retired)
Hi,
You should use an event handler such as RequestFilter.filterRequest which will modify the request before it is submitted.
In the event handler you can use groovy to put the header in the request you saved in a property in a test case.
Regards,
Marcus
SmartBear Support
You should use an event handler such as RequestFilter.filterRequest which will modify the request before it is submitted.
In the event handler you can use groovy to put the header in the request you saved in a property in a test case.
def headers = request.requestHeaders
headers.put( "uxfauthorization",testRunner.testCase.getPropertyValue( "SavedUxfToken" ) )
request.requestHeaders = headers
Regards,
Marcus
SmartBear Support
Related Content
- 2 years agoSiKing