Contributions
Re: using Groovy to retrieve "Access Token" from "Resource Owner Password Credentials Grant"
I got it working using the code from https://stackoverflow.com/questions/54895148/soapui-unable-to-resolve-class-tokentype-while-automating-token-retrieval Still would be interested why the example code did not work.1.2KViews0likes0Commentsusing Groovy to retrieve "Access Token" from "Resource Owner Password Credentials Grant"
Hi, i am able to retrieve an OpenID-token by using "Resource Owner Password Credentials Grant". In the TestCase i would like to store the token using the code from https://support.smartbear.com/readyapi/docs/requests/auth/types/oauth2/tutorial.html def authEntry = testRunner.testCase.getTestStepByName("getToken").getAuthRepository().getEntry("OpenID"); results in an error message groovy.lang.MissingMethodException: No signature of method: com.eviware.soapui.impl.wsdl.teststeps.RestTestRequestStep.getAuthRepository() is applicable for argument types: () values: [] How can i retrieve the "Access Token"? thanks Robert1.2KViews0likes1Comment