Forum Discussion
Jainsoumya, probably you are right. I am not getting a full picture of your test configuration. However, from your Auth Manager snapshot it is clear that you are using an Authorization Profile to generate a token. Also, I am assuming that there is way to generate a token from Auth profile screen when it expires.
We architected our tests to use these three components of ReadyAPI - environment, AuthProfile and event handlers.
Environments comes handy if you want to run tests in different environments say QA, Dev, or Pre-PROD etc. Also, you can have different auth profiles for each environment and switching between different environments makes it easy. Finally event handlers to perform certain task based on the conditions such as authToken refresh before a service call.
please refer to attached snapshot to get an idea about event handlers usage.
Please note that you may have to run the test at testcase level or testsuite level in order to see this specific even to trigger.
Hope this helps.
New2API Can we connect over a call . If its ok with you ?
- Jainsoumya3 years agoContributor
Auth token is not getting populated in the token field please note Its and OIDC connect .
I have added all the required fields and I have added steps in automation script , but when I click on get OpenID token , token is not getting populated in the field mentioned in GetID token .
I am new to readyapi so I am not aware of groovy script too
Please help
sonya_m I didnt get any solution from the incident which I have created for the same Case #00508484: OAuth Token Automation
- New2API3 years agoFrequent Contributor
Jainsoumya, call is not a problem. but how to reach you? (do not want to put my email/ph# here 🙂 )
- Jainsoumya3 years agoContributor
New2API Check message 🙂