Forum Discussion

ranjit96's avatar
ranjit96
Contributor
8 years ago

How to transfer TestCase properties value in Authentication(Oauth2.0) Access Token field ?

 

 

 

 

Here, In "Log in and Update" testcase custom properties present "access_token".

 I want to transfer this access token value in  "get_profile" testStep  in Authentication(Oauth 2.0) Access token field.

 

 How I do it ? Please reply me .

6 Replies

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

      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.

      • nmrao's avatar
        nmrao
        Champion Level 3
        Can you show the script from "access toke retrieve"?