Forum Discussion
nmrao
9 years agoChampion Level 3
Can you show the script from "access toke retrieve"?
By the you can save the token at test case or suite or project level and use property expansion in Access Token.
By the you can save the token at test case or suite or project level and use property expansion in Access Token.
- ranjit969 years agoContributor
Thank you for your suggestion.
I used this property expansion ${#login and update#access_token}
But error is shown :
<message>Authorization has been denied for this request.</message>
It's not retrieved access_token value. Please suggest me.
- nmrao9 years agoChampion Level 3Can you show the script from "access toke retrieve"?
- ranjit969 years agoContributor
def responseHeader=teststep.testRequest.response.contentAsString
def slurper = new JsonSlurper()
def json = slurper.parseText responseHeader
def token=json.access_token
testRunner.testCase.testSuite.testCases["login and update"].setPropertyValue("access_token",token)
Related Content
- 5 years ago
- 6 years ago
- 2 years ago
- 9 years ago