Forum Discussion

vbisbest's avatar
vbisbest
New Contributor
4 years ago

Testrunner and proxy settings

I cannot seem to get testrunner.sh to run through a proxy set through the command line.   It works when set in the settings.xml file, but not as an arguement.  Example:

./testrunner.sh -Dhttp.proxyHost=myproxy.com -Dhttp.proxyPort=8080 ~/Desktop/tiredful-soapui-project.xml 

 

This just ignores the proxy arguments.  Am I missing something?

Thanks.

  • Hi vbisbest 

     

    Don't think you can use this kind of arguments.

    According to the documentation, there's no parameter for proxy configuration:

    https://www.soapui.org/docs/test-automation/running-from-command-line/functional-tests/ 

     

    But you could use some custom settings file:

    t : Specifies the workspace settings filed to be used during the test run. If you skip this command-line argument, the runner will use the default file – soapui-settings.xml - that is located in your user directory.


    Use this argument to specify another settings file for the run. It helps you use different proxy, SSL, HTTP and other settings without changing them in your test project.

    Could it be a solution for you ?

    Please let us know.

     

    Regards.

     

     

    David.

     

  • ZDGN's avatar
    ZDGN
    Contributor

    Hi vbisbest 

     

    Don't think you can use this kind of arguments.

    According to the documentation, there's no parameter for proxy configuration:

    https://www.soapui.org/docs/test-automation/running-from-command-line/functional-tests/ 

     

    But you could use some custom settings file:

    t : Specifies the workspace settings filed to be used during the test run. If you skip this command-line argument, the runner will use the default file – soapui-settings.xml - that is located in your user directory.


    Use this argument to specify another settings file for the run. It helps you use different proxy, SSL, HTTP and other settings without changing them in your test project.

    Could it be a solution for you ?

    Please let us know.

     

    Regards.

     

     

    David.

     

    • vbisbest's avatar
      vbisbest
      New Contributor

      It does work via the settings.xml file.  It would be nice if you could also specify proxy via the command line, makes CI/CD a bit easier.