SoapUI 创建模板 SOAP 请求 - 在测试用例中重用
我是 SoapUI 的新手。我正在尝试在 SoapUI 中执行以下操作,但不知道从哪里开始: 1. 使用 SOAP 请求的内容创建 XML 文件 2. 在其他测试用例中重用步骤 1 中创建的文件作为模板
谢谢,
I am new to SoapUI. I am trying to do the following in SoapUI but don't know where to start:
1. Create a XML file with the content of a SOAP request
2. Reuse the file created in step 1 as template in other testcases
Thanks,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我找到了实现此目的的方法:
将模板 xml 的内容作为名称/值对创建到属性文件中
在请求中,使用语法“${#PROPERTY_NAME}”在适当的位置使用属性
在安装脚本中,加载属性文件
I have found a way to achieve this:
Create the content of the template xml into a property file as Name/Value pairs
In the request, use the property(s) at appropriate place using the syntax "${#PROPERTY_NAME}"
In the setup script, load the property file
xml
文件中。XML 请求
中引用为${#TestCase#templateData}
请记住,
templateData
应该是自定义的名称测试用例的变量。xml
file.groovy script
and the content in the file can be assigned to the Test variable of the test case.${#TestCase#templateData}
in theXML request
Please remember that
templateData
should be the name of the custom variable of the test case.