demus1
10 years agoNew Contributor
Retrieve request content with property subs
Is it possible to use an Event Listener to retrieve the outgoing request details AFTER any property substitutions have been applied. I need to generate an auth header, the algorithm for which requir...
- 10 years ago
I have solved my own problem, albeit via a clunky workaround
def request = testStep.getTestRequest()
String requestName = "\${" + request.getName() + "#Request}"
def requestBody = context.expand( requestName )By using context.expand(), all embedded property substitutions are applied and it appears to work