Ask a Question

How to setup Proxy through Command Line

HarshaDevOps
Occasional Contributor

How to setup Proxy through Command Line

We want to run test cases with different end points and we are unable to pass the proxy through command line. Is there any way we can pass the proxy while running through the testrunner.sh

6 REPLIES 6
nmrao
Champion Level 3

Aren't those settings saved in settings file?


Regards,
Rao.
HarshaDevOps
Occasional Contributor

Hello nmrao

 

Yes, there are in settings file. We are running the headless Ready API in the docker container. Our QA Team Test Scripts have multiple end points and they are connected using a proxy.  We want to pass our Settings.xml file with proxy defined rather than using the newly created one which will not have proxy .

 

The below command is not working as it is not able to find the project

 

/readyapi/ReadyAPI-2.5.0/bin/testrunner.sh "-t/readyapi/ready/soapui-settings.xml" sComponent_TestSuite "-ESIT1" /readyapi/ready/*.xml 

HarshaDevOps
Occasional Contributor

Hello nmrao

Yes, there are in settings file. We are running the headless Ready API in the docker container. Our QA Team Test Scripts have multiple end points and they are connected using a proxy.  We want to pass our Settings.xml file with proxy defined rather than using the newly created one which will not have proxy .

The below command is not working as it is not able to find the project

/readyapi/ReadyAPI-2.5.0/bin/testrunner.sh "-t/readyapi/ready/soapui-settings.xml" sComponent_TestSuite "-ESIT1" /readyapi/ready/*.xml 

Olga_T
SmartBear Alumni (Retired)

 

Community, any ideas on how to accomplish this task?

 


Olga Terentieva
SmartBear Assistant Community Manager

TanyaYatskovska
SmartBear Alumni (Retired)

Hi @HarshaDevOps,

 

I'm not sure if wildcards are supported:


@HarshaDevOps wrote:

/readyapi/ready/*.xml 


Could you please specify the full path to the project?

You can find more information about command line arguments in this article:

https://support.smartbear.com/readyapi/docs/soapui/running/automating/cli.html

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager



Hi Tanya,

 

We can use wildcards as long as we call the Entry Point through shell sript. It is working now

We would like to pass the proxy through command line as it is a headless mode. How can we pass the proxy through command line for headless Ready API ?

cancel
Showing results for 
Search instead for 
Did you mean: