Ask a Question

Prefix a property transfer in header

SOLVED
maxrussell
Contributor

Prefix a property transfer in header

I am using a property transfer to take an oAuth access_token from a response and transfer it to my next GET REST request. The header Name is "Authorization" and the value needs to be in the format "Bearer xxxxxx" ( where xxxxxx is the transferred access_token)

 

How to I add the Bearer prefix into my GET request? Do I need to add something in the property transfer target? Or is this done via test step properties?

10 REPLIES 10

@kondasamy 
Same in my case as well. In GetToken test step, I'm making an HTTP request.
GetToken.JPG


Then I have added the below property in the header of next step as suggested.
Authorization:        Bearer ${GetToken#ResponseAsXml#//Authorization}

Getlist.JPG

But when I checked the raw form of request no value is passed except Bearer .

rawform.JPG

cancel
Showing results for 
Search instead for 
Did you mean: