Forum Discussion

gtaub's avatar
gtaub
Occasional Contributor
2 years ago

ReadyAPI oAuth2 Token handoff to testcomplete

We have automated the OAuth2 token retrieval and we use Implicit grant method. 

 

We are wanting to execute this token retrieval api from testcomplete. we are able to create the link to this api via testcomplete.

 

The ask here is how can we retrieve this access token in testcomplete? This token needs to be put into a gui field on the mobile device app we created internally.

 

The key is to retrieve the token into a variable. If you have any suggestions please share them.

2 Replies

  • nmrao's avatar
    nmrao
    Champion Level 3
    Is there any endpoint or rest service method to retrieve the token? Does Test complete allow to call rest call? Otherwise, create a separate test i ReadyAPI to retrieve token and call it from Testcomplete.
    • gtaub's avatar
      gtaub
      Occasional Contributor

      Rao,

      thank you for your response. Let me be more clear.

      Create test in readyapi to make the call to get the access token needed. - Done and confirmed working.

      Create test in testcomplete that calls ReadyAPI test case to execute - Done and confirmed working.

       

      Next step needing help with :

      1) How do we capture the access token to a parameter in readyapi?

      2) How can we capture that stored parameter in testcomplete?