SOAP UI - Set Proxy Settings Using -t in CMD Execution
Also posted here:
https://stackoverflow.com/questions/59102194/soap-ui-set-proxy-settings-using-t-in-cmd-execution
I am getting nowhere with the documentation on this topic.
So far, I know the execution command is "-t" for setting the proxy settings, BUT, I cannot get the proxy settings to actually be set.
In other words, the command line query looks like this:
"cmd /C CD C:\Program Files\SmartBear\SoapUI-5.2.1\bin & testrunner.bat -c""TestCase"" ""SOAP_QUERY.XML"" -S -P""UserName=UsernameTest"" -P""Password=PasswordTest"" -t""autoProxy_TrueOrFalse=False"" -t""activateProxy_TrueOrFalse=True"" -t""proxy_Host=ProxyAddress"" -t""proxy_Port=ProxyPort"" -t""proxy_Username=ProxyUsername"" -t""proxy_Username=ProxyPassword"" -P""OutPutDumpFileLocation=OutPut.XML"" -e ""https://EndPoint"" -r > ""ExecutionLog.Txt"
Obviously, the values I provided are not those text values - I put the actual details in there. Example, ProxyPort could be 8080.
I know the XML for the settings of the proxy looks like this:
<con:soapui-settings xmlns:con="http://eviware.com/soapui/config"> <con:setting id="ProxySettings@autoProxy">XYZ</con:setting> <con:setting id="ProxySettings@enableProxy">XYZ</con:setting> <con:setting id="ProxySettings@host">XYZ</con:setting> <con:setting id="ProxySettings@port">XYZ</con:setting> <con:setting id="ProxySettings@username">XYZ</con:setting> <con:setting id="ProxySettings@password">XYZ</con:setting> </con:soapui-settings>
BUT, I don't know if this goes into the query OR directly in the settings file and then you can parametrize it like this:
<con:soapui-settings xmlns:con="http://eviware.com/soapui/config"> <con:setting id="ProxySettings@autoProxy">${#Project#autoProxy_TrueOrFalse}</con:setting> <con:setting id="ProxySettings@enableProxy">${#Project#activateProxy_TrueOrFalse}</con:setting> <con:setting id="ProxySettings@host">${#Project#proxy_Host}</con:setting> <con:setting id="ProxySettings@port">${#Project#proxy_Port}</con:setting> <con:setting id="ProxySettings@username">${#Project#proxy_Username}</con:setting> <con:setting id="ProxySettings@password">${#Project#proxy_Password}</con:setting> </con:soapui-settings>
I even tried to modify the command line query like:
"cmd /C CD C:\Program Files\SmartBear\SoapUI-5.2.1\bin & testrunner.bat -c""TestCase"" ""SOAP_QUERY.XML"" -S -P""UserName=UsernameTest"" -P""Password=PasswordTest"" -t""ProxySettings@autoProxy=False"" -t""ProxySettings@enableProxy=True"" -t""ProxySettings@host=ProxyAddress"" -t""ProxySettings@port=ProxyPort"" -t""ProxySettings@username=ProxyUsername"" -t""ProxySettings@password=ProxyPassword"" -P""OutPutDumpFileLocation=OutPut.XML"" -e ""https://EndPoint"" -r > ""ExecutionLog.Txt"
Please if anyone has experience in creating this command line execution PLEASE HELP ME.