Forum Discussion
mini84
Occasional Contributor
If you go back 27 days before and read my question.
very simple:
i have a login-request with a property transfer of token into a testsuite property called "test".
i can see the token in "test".
i try to get the token in the second request through the property transfer, it did not retrieve the token.
JuZ0
6 months agoContributor
Could you provide example project with possibly placeholder endpoints? That would make it easier to see the possible problem.
Some thoughts:
- In first post you do mention that first token retrieval request is in testsuite1 and the second request that utilizes the token is in testsuite2 and that you are using property transfer to set token value to testsuite1 property. In my understanding it is not possible to retrieve testsuite1 property value through request2 in testsuite2 with property transfer. Property transfer can only retrieve testsuite properties that are in the testsuite where the property transfer step is belonging to. In this scenario you would have to transfer property to the project level and from there you would be able to get with property transfer that is running under testsuite2 because the project level is common between testsuite1 and testsuite2. However you may have already tried this if I interpret your another post correctly.
- You said you do get the 401 error while using property expansion in request2 authorization header. If you check the raw request that is sent, what do you see? Is the token header present and does it contain some value or is it empty?
- You mention "I even tried to put directly the token access in Value after Bearer, it returns 401 authentication problem". So the token is sent and the response is still 401? Have you gotten this same token work with postman or with another way in SoapUI? Could you compare succeeding raw http request to unsuccessfull raw http request to pinoint any possible differences?
Related Content
- 6 years ago
Recent Discussions
- 11 days ago