dynamically passing header authorization value for Request
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2016
01:57 PM
11-22-2016
01:57 PM
dynamically passing header authorization value for Request
Hello,
Here is what I need help to find solution:
- There is one endpoint which will will generate the Token in the response.
- Now this response is going to be used as a "Header" in another request.
The token gets expire in one hour and for me to keep my test alive and automatic, I am seeking to some how retrieve the token from first endpoint/testcase and then dynamically pass it to the other test's request header. But I don't see an option to take value from groovy or data source etc.
I saw one post where creating event handler is suggested but I am not sure how can the event handler take token value from a test case response.
Appreciate any help.
Thanks
Basant
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2016
12:40 AM
11-23-2016
12:40 AM
Hi Basant,
It sounds like Point And Click testing is what you need. Please refer to this online article for more information:
http://readyapi.smartbear.com/features/get_data/introduction
---------
Tanya Yatskovskaya
SmartBear Community and Education Manager
Tanya Yatskovskaya
SmartBear Community and Education Manager
