Question

I have the free version of Soap UI and several different workspaces. I would like to set up several shortcuts to Soap UI with each shortcut including a start-up parameter indicating which workspace to load, but I can't find what the actual parameters are to do that. I looked over the documentation, and I saw a reference to the fact that there are start-up parameters available, but I couldn't find where they were listed.

Is there a way to do this (similar to eclipse's "-data" parameter)?

thanks.

Was it helpful?

Solution

You can do this fairly easily by creating a workspace file that references your project, and then starting soapui from the command line or a batch file. The switch you need to specify a workspace file is -w.

soapui-4.5.1 -w "c:\path to my workspace file"

All your workspace file needs, in turn, is a single node with your project name and the path to your project file.

<con:soapui-workspace xmlns:con="http://eviware.com/soapui/config" soapui-version="4.5.1" name="Projects"> <con:description/> <con:settings/> <con:project name="My Project Name">D:/path to my project.xml</con:project> </con:soapui-workspace>

I know this is old, but I had the same question, and was frustrated that I couldn't specify a startup project. I downloaded the SoapUI source code, and dug around until I found the answer.

OTHER TIPS

You can achieve this by having a different soapui-settings.xml file for each worksapce, then overwriting the SOAPUI_HOME soapui-settings.xml with the appropriate setting file when you startup Soapui.
Create a simple wrapper shell/bat script to do the copying before kicking off soapui.sh, and copy the modified version back if necessary.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top