dev16
8 years agoContributor
how to use token id in second request
i am using soapui 5.2.1 where in first login request i am getting token id and this token id i want to use in second request so how to automated this token id and this token id will expire in 24 hrs ...
- 8 years agoPlease see if the below thread is helpful. Provide your raw response otherwise.
https://stackoverflow.com/questions/39757652/soapui-rest-response-session-token/39761209#39761209 - 8 years ago
AreN'T you supposed to get a json response? Just getting only token as response? A screen shot of raw response would help better.
If you just getting only token, then script needs to changed to handle that.
If you have multiple users to test, then save them as : <USERNAME>_TOKEN at project level and use appropriately.
for example, testuser token is fetched, save it as TESTUSER_TOKEN and its value at project level and use it as ${#Project#TESTUSER_TOKEN} where needed in the rest of the project.
Hope this clear.
- 8 years agoRe-iterating that you angular brackets needs to be removed.