Forum Discussion

Deloitte_Consul's avatar
Deloitte_Consul
Contributor
13 years ago

Maven and SoapUI Integration

Hi All,

There are couple of issues/clarifications that are required for integrating soapUi and Maven.

1) How to load global properties from external file in a maven(pom.xml) ?
2) Any run time updates to these properties will be available to other test cases in the same execution ?
3) Can we define multiple endpoints for different test suites in maven (pom.xml)? our test suite is calling test cases from another test suite which has different endpoint other than what we have specified in pom.xml.


Regards
Deepak Rawat

2 Replies

  • Hi!

    1) Global properties are normaly stored in the soapui settings file, which you could specify using the settingsFile tag (http://www.soapui.org/Test-Automation/maven-2x.html). You could also maybe use the -Dsoapui.properties system property to refer to a external properties file (http://www.soapui.org/Scripting-Propert ... mmand-line).
    2) No, external files or normally only read once (on start up). If you need to read from the file while running the maven plugin, you could probably use the Properties TestStep (http://www.soapui.org/Functional-Testin ... s-teststep) or some kind of Groovy Script to poll the external file for changes.
    3) Yes it's possible to have multiple endpoints for different TestCases, but it's preferable to have the endpoints in the soapUI project file rather than in the pom.xml. Please elaborate if this doesn't work for you by some reason.

    --
    Regards

    Erik
    SmartBear Sweden