Forum Discussion
SmartBear_Suppo
Alumni
14 years agoThis answer assumes that you're familiar with soapUI property expansions, if not read about them here.
So here's what you could do:
Now you can start loadUI with a custom endpoint specified from a Bat-script, Maven, Hudson or whatever, like this:
Regards!
/Your friend Henrik
eviware.com
EDIT: I've written a slightly more general and graphical explanation of this, here in the documentation.
So here's what you could do:
- Start loadUI with the command line option "-DmyCustomEndpoint=http://www.myWebSite.com". E.g. loadUI-cmd.bat "-DmyCustomEndpoint=http://www.myWebSite.com".
- Use the property expansion ${=System.getProperty("myCustomEndpoint")} wherever you want to use your custom endpoint in soapUI.
Now you can start loadUI with a custom endpoint specified from a Bat-script, Maven, Hudson or whatever, like this:
REM testAllEndpoints.bat
loadUI-cmd.bat "-DmyCustomEndpoint=http://myWebSite.com" -p my-loadui-project.xml -r c:\dev\reports -F PDF
loadUI-cmd.bat "-DmyCustomEndpoint=http://myOtherWebSite.com/admin.php" -p my-loadui-project.xml
loadUI-cmd.bat "-DmyCustomEndpoint=http://myOtherWebSite.com"-p my-loadui-project.xml
loadUI-cmd.bat "-DmyCustomEndpoint=http://twitter.com/eviware" -p testSLA1.xml -r c:\dev\reports -F PDF
REM Add more endpoints/configurations as needed...
Regards!
/Your friend Henrik
eviware.com
EDIT: I've written a slightly more general and graphical explanation of this, here in the documentation.