Forum Discussion
SmartBear_Suppo
Alumni
12 years agoHi,
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