Forum Discussion

SoapUIPro's avatar
SoapUIPro
Frequent Visitor
4 years ago
Solved

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 Reply