Forum Discussion
- SmartBear_SuppoSmartBear Alumni (Retired)Hi,
You can turn off proxy with the following code snippet:
import com.eviware.soapui.SoapUI
import com.eviware.soapui.settings.ProxySettings
log.info "PROXY OFF!"
SoapUI.settings.setString( ProxySettings.ENABLE_PROXY, "false")
SoapUI.updateProxyFromSettings();
Regards,
Marcus
SmartBear Support- jjsudharsanOccasional Contributor
Great..! This helped me a lot
- Liberty_InformaRegular ContributorThat's brilliant !
SoapUI.updateProxyFromSettings();
Is above line necesary?SoapUI.settings.setString( ProxySettings.ENABLE_PROXY, "false")
Merely having above line gives desired result.
I am asking because we do apply lot of other settings as part of the setup however we do not call any update method. - SmartBear_SuppoSmartBear Alumni (Retired)Hi,
SoapUI.updateProxyFromSettings()
Should only apply to the proxy, but if the proxy is being updated without calling that method then don't call it.
Regards,
Marcus
SmartBear Support - Liberty_InformaRegular ContributorThanks. Can you close this?
Related Content
- 2 years ago