cancel
Showing results for 
Search instead for 
Did you mean: 

Testrunner and proxy settings

SOLVED
vbisbest
New Contributor

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.

1 ACCEPTED SOLUTION

Accepted Solutions
ZDGN
Contributor

Re: Testrunner and proxy settings

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.

 

View solution in original post

2 REPLIES 2
ZDGN
Contributor

Re: Testrunner and proxy settings

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.

 

View solution in original post

vbisbest
New Contributor

Re: Testrunner and proxy settings

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.

New Here?
Join us and watch the welcome video:
Top Kudoed Authors