Forum Discussion

moolsan's avatar
moolsan
New Contributor
14 years ago

How to define properties for the soapui-maven-plugin ?

I've tried to use the configuration-section of the plugin to pass properties into SoapUI, but it isn't documented how properties should be defined in the
<projectProperties>
or
<globalProperties>
section. I've tried several ways, e.g.


<name>value</name>
<projectProperty>name=value</projectProperty>


but none of them worked. Any help is highly appreciated.
  • This works for me:

    ...
    <configuration>
    <!--The location of your soapUI setting file-->
    <projectFile>XYZproject.xml</projectFile>

    <projectProperties>
    <projectProperty>key=value</projectProperty>
    <projectProperty>key2=value</projectProperty>
    ...

    </projectProperties>
    ...

    Have a look here: http://www.soapui.org/Test-Automation/maven-2x.html

    Alexander Pietsch
  • moolsan's avatar
    moolsan
    New Contributor
    Thanks. I did try that, but it didn't work because I tried to use it with ${#project#name} instead of ${#Project#name}. Now it works perfectly.
    I've been on the page you posted, but there was no documentation on how to define proprties inside of <projectProperties>.
  • bmgriner's avatar
    bmgriner
    Frequent Contributor
    The example mentioned above does not line up with the example in the documentation. It is probable that the documentation needs to be updated.