ContributionsMost RecentMost LikesSolutionsRe: Problems with refresh OAuth2 token I seem to remember I had already dealt with this sometime in the past. Oh right: 5 years ago! It's a shame this shortcoming still exists in ReadyAPI. 😞 Yki Here is a slightly improved(?) version on that script: // Name: 'Forced token update' // Event: 'SubmitListener.beforeSubmit' // Target: '${=submit.request.authType.asBoolean()}' filters only test steps that have Authorization as an option // https://support.smartbear.com/readyapi/docs/requests/auth/types/oauth2/automate/index.html#on-request import com.eviware.soapui.impl.rest.actions.oauth.OltuOAuth2ClientFacade import com.eviware.soapui.support.editor.inspectors.auth.TokenType import com.eviware.soapui.model.support.ModelSupport import com.eviware.soapui.config.AccessTokenStatusConfig def project = ModelSupport.getModelItemProject(context.getModelItem()) def authProfile = project.authRepository.getEntry("!YOUR AUTH PROFILE NAME!") if(authProfile.accessTokenStatus != AccessTokenStatusConfig.RETRIEVED_FROM_SERVER) { def oAuthFacade = new OltuOAuth2ClientFacade(TokenType.ACCESS) oAuthFacade.requestAccessToken(authProfile, true, true) // Access token retrieval may take time. def stopLoop = 0 // loop counter to prevent infinite loops in case of problems while(authProfile.accessTokenStatus != AccessTokenStatusConfig.RETRIEVED_FROM_SERVER && stopLoop++ < 6) sleep(5) log.info("Set new token: ${authProfile.accessToken}") } Re: Problems with refresh OAuth2 token I just got the token manually by constructing a REST request. There is no refresh_token. 😞 This is from MS Azure. Is no refresh_token normal? How would I setup the automation to "just get a new one". Since I am using Client ID + Client Secret there is no login screen; I just need to get a new token. Re: Problems with refresh OAuth2 token I am using Client ID + Client Secret. I _believe_ that generates a refresh token, but am not certain. How would I check? Problems with refresh OAuth2 token For our service we are using OAuth2 for authorization. I have defined an OAuth2 profile in the Auth Manager. When I click the Get Access Token button manually everything works as expected: a new token is fetched and all my tests pass. When the token expires I am expecting ReadyAPI to automatically fetch a new token. However, this does not happen. What am I doing wrong? SolvedRe: Getting Unsupported Media Type in Response for REST Service What Content-Type did you provide? See HTTP Request Headers. Re: Possible to configure SOAPUI to automatically run specific test step when a Project is imported? This sounds like something that could be done using Event Handler, however that is a paid feature. The free SoapUI tool is limited, bu design. Re: I am not able to get output of remote shell script from groovy script in soapui I think you are looking for the output in the wrong place. log.info("return code: ${process.exitValue()}") log.error("standard error: ${errorStream}") log.info("standard out: ${outputStream}") Have a look here. Re: Problem for transfering licence You posted your question in the OpenSource SoapUI area, but you probably want the ReadyAPI area. You need to go to the License Manager on your old machine, and uninstall the license. Re: I am not able to get output of remote shell script from groovy script in soapui Try replacing new StringBuffer() with new StringBuilder() . Re: ReadyAPI 3.1 fonts nmraowrote: Please check in the preferences. Change font and save preferences. The only things I can find in Preferences is for "Editor Font" and "Text Field Font". Neihter of which is the Navigator pane.