Soap UI 启动参数
我有免费版本的 Soap UI 和几个不同的工作区。我想设置多个 Soap UI 快捷方式,每个快捷方式都包含一个指示要加载哪个工作区的启动参数,但我找不到执行此操作的实际参数。我查看了文档,发现有一个参考,指出有可用的启动参数,但我找不到它们的列出位置。
有没有办法做到这一点(类似于 eclipse 的“-data”参数)?
谢谢。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以通过创建引用您的项目的工作区文件,然后从命令行或批处理文件启动soapui来相当轻松地完成此操作。指定工作区文件所需的开关是 -w。
反过来,您的所有工作区文件需要的是一个包含项目名称和项目文件路径的单个节点。
我知道这已经很旧了,但我也有同样的问题,并且因无法指定启动项目而感到沮丧。我下载了 SoapUI 源代码,并进行了深入研究,直到找到答案。
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.
All your workspace file needs, in turn, is a single node with your project name and the path to your project file.
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.
您可以通过为每个工作空间使用不同的soapui-settings.xml 文件来实现此目的,然后在启动 Soapui 时使用适当的设置文件覆盖 SOAPUI_HOMEsoapui-settings.xml。
创建一个简单的包装 shell/bat 脚本以在启动soapui.sh 之前进行复制,并在必要时将修改后的版本复制回来。
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.