[Resolved] Proxy setting as None through Groovy
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2014
09:12 AM
07-29-2014
09:12 AM
[Resolved] Proxy setting as None through Groovy
Hi
How can I set Proxy setting as 'None' in the global settings through the Groovy code ?
I wrote above statement but I know it is not correct. I am not getting sufficient help from the API page.
What should be the correct statement to make Proxy Setting to set to "None" ?
How can I set Proxy setting as 'None' in the global settings through the Groovy code ?
SoapUI.settings.setString( ProxySettings.AUTO_PROXY, 'None' )
I wrote above statement but I know it is not correct. I am not getting sufficient help from the API page.
What should be the correct statement to make Proxy Setting to set to "None" ?
Regards,
LIT
This post in no way reflect any Policies of Liberty Information Technology Ltd.
LIT
This post in no way reflect any Policies of Liberty Information Technology Ltd.
5 REPLIES 5
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2014
01:45 PM
07-29-2014
01:45 PM
Hi,
You can turn off proxy with the following code snippet:
Regards,
Marcus
SmartBear Support
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
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
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2014
03:49 AM
07-30-2014
03:49 AM
That's brilliant !
Is above line necesary?
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.
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.
Regards,
LIT
This post in no way reflect any Policies of Liberty Information Technology Ltd.
LIT
This post in no way reflect any Policies of Liberty Information Technology Ltd.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2014
06:52 AM
07-30-2014
06:52 AM
Hi,
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
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
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
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2014
01:58 AM
07-31-2014
01:58 AM
Thanks. Can you close this?
Regards,
LIT
This post in no way reflect any Policies of Liberty Information Technology Ltd.
LIT
This post in no way reflect any Policies of Liberty Information Technology Ltd.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2016
08:19 AM
09-12-2016
08:19 AM
Great..! This helped me a lot
