如何将现有的 SOAP 请求消息导入到 SoapUI?
我有一堆 XML 格式的 SOAP 请求消息。有没有办法将它们导入到 SoapUI 项目中?
我想导入它们并将其作为“测试请求”测试步骤添加到现有的测试用例中。
I have a bunch of SOAP request messages in XML format. Is there a way to import them to a SoapUI project?
I want to import them and add as "Test Request" Test Step to an existing Test Case.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
一种简单且更自动的方法是使用 groovy 脚本从包含 xml 请求文件的目录自动创建 testStep 请求:
执行 groovy 代码之前的 SOAPUI 如下所示:
以及必要的 groovy 代码:
希望这有帮助,
An easy and more automatic way to do so is using a groovy script to automatically create the testStep request from a directory where you have you xml request files:
Your SOAPUI before groovy code execution looks like:
And the necessary groovy code:
Hope this helps,
将每个请求复制/粘贴到新请求中,然后右键单击每个请求并将它们添加到您的测试用例中。
Copy/paste each into a new request, then right click on each request and add them to your test case.
或者在请求视图中打开上下文菜单时选择“加载自...”。
Or select "Load from..." when opening the context menu in the request view.
另一种选择是:
Another option is: