Forum Discussion
awsgamdocs
11 years agoOccasional Contributor
1. I was able to get the token in a property, but it is contained in "[]", how can I select it without them?
example of what I have now:-
2. Using the second event to add the header in the REST's request it's missing the value, the actual token, as shown here:-
code used as suggested:-
def headers = request.requestHeaders
headers.put( "authorization",context.testCase.getPropertyValue( "SavedUxfToken",SavedUxfToken ) )
request.requestHeaders = headers
What is missing?
example of what I have now:-
2. Using the second event to add the header in the REST's request it's missing the value, the actual token, as shown here:-
code used as suggested:-
def headers = request.requestHeaders
headers.put( "authorization",context.testCase.getPropertyValue( "SavedUxfToken",SavedUxfToken ) )
request.requestHeaders = headers
What is missing?