cancel
Showing results for 
Search instead for 
Did you mean: 

How to setup Proxy through Command Line

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
Community Hero

Re: How to setup Proxy through Command Line

Aren't those settings saved in settings file?


Regards,
Rao.
Occasional Contributor

Re: How to setup Proxy through Command Line

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 

Occasional Contributor

Re: How to setup Proxy through Command Line

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 

Moderator

Re: How to setup Proxy through Command Line

 

Community, any ideas on how to accomplish this task?

 


Olga Terentieva
SmartBear Assistant Community Manager

Community Manager

Re: How to setup Proxy through Command Line

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 Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
Occasional Contributor

Re: How to setup Proxy through Command Line

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 ?

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