Forum Discussion

PaFi's avatar
New Contributor
4 years ago

Problem when setting authorization profile with Groovy script

Hi,   SoapUI 5.5.0   I want to use my test project for different environments so I have an initialization script for each environment where I set the correct endpoints and authorization profile, ...
  • PaFi's avatar
    4 years ago

    Already figured it out:


    testStep.testRequest.setSelectedAuthProfileAndAuthType("Test", com.eviware.soapui.config.CredentialsConfig.AuthType.O_AUTH_2_0)


    instead of

    testStep.testRequest.setSelectedAuthProfileAndAuthType("Test", null)