Forum Discussion
nmrao
10 years agoCommunity Hero
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.
- ranjit9610 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.
- nmrao10 years agoCommunity HeroCan you show the script from "access toke retrieve"?
- ranjit9610 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)