我正在尝试在 soapui 中编写并行测试,并且需要在测试步骤之间传输属性
我目前有 3 个测试步骤:
- 执行遗留请求
- 执行新请求
- XML 区分 groovy 脚本中的两个响应
我发现了很多关于使用 xpaths 挑选值的博客,但没有关于传递完整响应的内容。
我的问题是如何在属性转移编辑器中填写源和目标框?
像这样在 groovy 中访问它们:
def props = testRunner.testCase.getTestStepByName("Properties")
def response1 = props.getPropertyValue("response1")
def response2 = props.getPropertyValue("response2")
println response1
println response2