如何更改多个测试的端点地址?
我知道如何更改每个测试的端点,但我有 100 多个测试,所以我想选择项目/所有测试并说设置新端点。有可能吗?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
我知道如何更改每个测试的端点,但我有 100 多个测试,所以我想选择项目/所有测试并说设置新端点。有可能吗?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(4)
是的,这是可能的!
双击左侧导航器视图中的 WSDL 接口。
然后选择名为“服务端点”的第二个选项卡。选择所需的端点(或首先通过“+”符号添加)并单击“分配”。您可以在此处选择所有请求和测试请求。
Yes it is possible!
Double-click on your WSDL interface in the Navigator view on the left.
Then select the second tab called Service Endpoints. Select the desired endpoint (or add it first via the "+"-symbol) and click Assign. There you select All Requests and TestRequests.
您还可以设置“集中”端点前缀,如下所述:http://www.soapui.org/Functional-Testing/working-with-properties.html#4-example-n-centralized-endpoint
You could also set up a 'centralized' endpoint prefix as described here: http://www.soapui.org/Functional-Testing/working-with-properties.html#4-example-n-centralized-endpoint
据我所知,soapUI 本身无法做到这一点。但是您可以尝试以下操作:
。当然,只有当您想要更改的端点对于所有soapUI 工件都相同时,这才有效。
As far as I know there is no way to do this in soapUI itself. However you could try the following:
<con:endpoint>
which contains the URL for the endpoint.This, of course, only works if the endpoint you'd like to change is identical for all soapUI artefacts.
从soapUI 4.5开始,soapUI Pro中添加了一个名为“环境”的新功能。它非常方便,几乎可以让您在这里实现您想要实现的目标。
配置所有环境和相应端点后,只需在运行 testSuite/testCase 时从下拉列表中选择环境即可。您可以添加任意数量的环境。这样,当您想要翻转环境时,您无需更新任何内容。
From soapUI 4.5 a new feature called "Environments" has been added to soapUI Pro. It is quite handy and pretty much allows you what you are trying to achieve here.
Once you configure all your environments and corresponding endpoints it is a matter of selecting environment from the dropdown when you run testSuite/testCase. You can add as many environments you want. This way you need not to update anything when you want to flip environment.