MarcovS
9 years agoContributor
Add HTTP headerfield to Requests
Hi All, I'm using Ready API 1.5.0 for testing REST API calls. Came across this Groovy-script that seems to be useful to add a HTTP-header field to all teststeps. I'm executing it on Project-level...
- 9 years ago
def token = new File('C:/temp/SOAPUI/PmAuthenticationToken.txt').text if (token) { request.requestHeaders['PmAuthenticationToken'] = [token] } else { log.error("Token is empty or null") }