苏普伊房产转让
我正在尝试在soapui中编写并行测试,并且需要在测试步骤之间传输属性
我目前有3个测试步骤:
- 执行旧请求
- 执行新请求
- XML比较groovy脚本中的两个响应
我发现了很多关于使用 xpath 挑选值,但不传递完整响应。
我的问题是如何填写属性传输编辑器中的源框和目标框?
I'm trying to write parallel tests in soapui and need to transfer properties between the test steps
I currently have 3 tests steps:
- Execute legacy request
- Execute new request
- XML diff the two responses in a groovy script
I've found a lot of blogs about picking values out with xpaths, but nothing about passing the full response through.
My questions is how do I fill out the source and target boxes in the property transfer editor?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 groovy 中访问它们,如下所示:
def props = testRunner.testCase.getTestStepByName("属性")
def response1 = props.getPropertyValue("response1")
def response2 = props.getPropertyValue("response2")
println 响应1
println response2
Access them in groovy like so:
def props = testRunner.testCase.getTestStepByName("Properties")
def response1 = props.getPropertyValue("response1")
def response2 = props.getPropertyValue("response2")
println response1
println response2