Forum Discussion

dev16's avatar
dev16
Contributor
7 years ago
Solved

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 ...
  • nmrao's avatar
    nmrao
    7 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.

     

     

  • nmrao's avatar
    nmrao
    7 years ago
    Re-iterating that you angular brackets needs to be removed.