How to pass authtoken dynamically from Post request's response to other post requests in ReadyAPITes
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to pass authtoken dynamically from Post request's response to other post requests in ReadyAPITes
Hello -
Did anyone try passing authtoken dynamically from one request to other requests in ReadyAPI? First request is a Post request. Need to pass authtoken from this post request response to other Post requests. It seems Property transfer is not working.
Please let me know.
Thanks!
Solved! Go to Solution.
- Labels:
-
Automation Environments
-
REST
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@ramaG : Property transfer should work to transfer the auth code, could you please send any error screenshot
1 more thing you can do is write custom groovy code and add it either in new groovy Test Step or add it in script assertion.
Let me know if you need help in writing that stuff 🙂
Click "Accept as Solution" if my answer has helped,
Remember to give "Kudos" 🙂 ↓↓↓↓↓
Thanks and Regards,
Himanshu Tayal
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Regards,
Rao.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you so much for the reply. This approach didn't work.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How are you sending token in the following requests? As a header?
Regards,
Rao.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you. it worked. followed the code from here .https://stackoverflow.com/questions/34645069/trasfer-properties-from-api-responses-in-soapui
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I understand that you can't share the any details (may be because of your policies), but it is difficult to suggest any without knowing the details.
In such cases, you can still show with different property names and values but the same structure.
Glad to know my answer on stakcoverflow helped. If you look at question and answer, there is some code details are provided in the answer based on the user provided response in the question.
If you look at the above replies, the same was told except the coding part.
Regards,
Rao.
