cancel
Showing results for 
Search instead for 
Did you mean: 

SoapUI Pro headless using property file

SOLVED
SoapUIPro
Frequent Visitor

SoapUI Pro headless using property file

Basic Info: Pro version - Headless - Linux RHEL 7  

 

What happend(/s)? We have a SoapUI project which one tester always ran. However since our company (Rabobank) wants to automate everything we have setup Azure DevOps with 1 build machine which contains SoapUI Pro license that is able to run SoapUI tests. We are using the 'testrunner.sh' (attached as.pdf) to run the builds. 
To automate the SoapUI tests on multiple environments we want to override the properties of the SoapUI project. To do so we thought we could use -Dsoapui.properties=/path/to/file. 

We are aware there is already a '-Dsoapui.properties=soapui.properties' in the testrunner.sh but we send it as parameter when starting the script to override it.

 

The problem? The properties are not being overriden, we tried to read the new properties by '${#Project#propertyName}' AND '${#System#propertyName}' but System is blank and Project is the default property we would like to override. 

 

What we would like? We would like to be able to run the 'testrunner.sh' script and override the soapui standard (PROJECT) properties we have given by giving 1 file with all properties in it. (Ye we know you can set properties with the -P flag.)

1 ACCEPTED SOLUTION

Accepted Solutions
sonya_m
Community Manager

Re: SoapUI Pro headless using property file

Hi @SoapUIPro , If under 'multiple environments' you mean several sets of project property values, you can use Environments for this: https://support.smartbear.com/readyapi/docs/testing/environments/index.html#create?sbsearch=environm...

 

>>

 

In ReadyAPI, an environment is a set of parameters that match certain configuration for your tests. An environment includes API endpoints, authentication profiles for REST, SOAP, and GraphQL services, database connection settings, custom project properties, and parameters of connection to JMS servers.

 

<<


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

View solution in original post

1 REPLY 1
sonya_m
Community Manager

Re: SoapUI Pro headless using property file

Hi @SoapUIPro , If under 'multiple environments' you mean several sets of project property values, you can use Environments for this: https://support.smartbear.com/readyapi/docs/testing/environments/index.html#create?sbsearch=environm...

 

>>

 

In ReadyAPI, an environment is a set of parameters that match certain configuration for your tests. An environment includes API endpoints, authentication profiles for REST, SOAP, and GraphQL services, database connection settings, custom project properties, and parameters of connection to JMS servers.

 

<<


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

View solution in original post

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