Forum Discussion

CXin's avatar
CXin
Frequent Contributor
13 years ago

proxy settings as CLI parameter

In our CI environment we want to pass proxy parameters as parameters to soap-ui plugin for maven. Reason is we have different environments (dev, qa etc.)

Looking at http://www.soapui.org/Test-Automation/m ... n-settings also there aren't any dedicated proxy configurations.

I can see that you can set proxy parameters through soapui-settings.xml?

    ...
<con:setting id="ProxySettings@host">localhost</con:setting>
<con:setting id="ProxySettings@port">80</con:setting>
<con:setting id="ProxySettings@enableProxy">true</con:setting>
...


Still it would be much easier if there was a CLI hook for passing as parameters, like:

    mvn test -SProxySettings.host=xxx -SProxySettings.port=yyy -SProxySettings.enableProxy=true

Unfortunately I couldn't find such thing.

1 Reply

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Sorry, there's no CLI parameter for setting proxy. We recommend you to use the -t parameter to set the soapui-settings.xml file to use (which contains proxy settings, as you've already discovered).

    Regards

    Henrik
    SmartBear Software