subhaD
7 years agoContributor
Oauth 2 - Script to fetch oauth profile name
I am trying to fetch the auth profile name that is selected for this environment at the test sutie level.
I am using below code, please help me debug the issue on first line
String oAuthProfile = testRunner.testCase.getTestStepByName("Groovy Script").getSelectedAuthprofile()
def oAuthProfile = context.getCurrentStep().testCase.testSuite.project.getAuthRepository().getEntry(oAuthProfile)
Also am newbie, how do i figure out various classes and methods available in readyapi to use in groovy script