Forum Discussion

SiKing's avatar
Community Expert
7 years ago

automating OAuth2 token retrieval

I read through all the documentation for OAuth2, here.

My case uses the "Client Credentials Grant" method. Doing things manually - clicking the Get Access Token button - everything works fine.

In order to automate this, how do I "click" the Get Access Token button? I read through the documentation, but I do not have any "pages" to deal with. I just click the Get Access Token button and that is it.

  • SiKing's avatar
    7 years ago

    That code produces:


    groovy.lang.MissingMethodException: No signature of method: com.eviware.soapui.impl.wsdl.teststeps.DebuggableWsdlGroovyScriptTestStep.getAuthProfile() is applicable for argument types: () values: [] error at line: 6


    But I managed to get this example code to work.

6 Replies