DMc-Cabe wrote: |
---|
ok - I have finally managed to remove all hardcoded endpoints from my tests and groovy scripts by using global properties.
i have created 3 properties in my pom.xml file
<projectProperties> <value>ServiceEndpoint=http://abc.test.com:8080</value> <value>assertEndpoint=http://xyz.test.com</value> <value>mongoHost=mongodb.test.com</value> </projectProperties>
when I run from cmd line via mvn I try the following :
mvn test -Dmaven.soapui.test.ServiceEndpoint=http://new.endpoint.com:8888
but it doesn't seem to override the setting in the pom.xml - is this the correct way to pass these properties from maven? |
anyone able to help me out with this problem please?