Soap UI 启动参数

发布于 2024-10-02 20:19:22 字数 191 浏览 4 评论 0原文

我有免费版本的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

债姬 2024-10-09 20:19:22

您可以通过创建引用您的项目的工作区文件,然后从命令行或批处理文件启动soapui来相当轻松地完成此操作。指定工作区文件所需的开关是 -w。

soapui-4.5.1 -w "c:\path to my workspace 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>

我知道这已经很旧了,但我也有同样的问题,并且因无法指定启动项目而感到沮丧。我下载了 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.

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.

和影子一齐双人舞 2024-10-09 20:19:22

您可以通过为每个工作空间使用不同的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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文