我在我需要打印使用打印在常规脚本步骤的请求步骤响应变量
- SOAP请求测试步骤的名称被许可在
Groovy Script
测试步骤XML响应的要求
当我写
log.info context.expand('${Licensed#Response}')
我马上响应
但是我有一个要求,其中用户不知道该代码
def requestname=Licensed //user will enter request name here
log.info context.expand($'{requestname"#Response}')
的我没有得到有效的响应
我要声明一个变量,使用和打印XML响应
log.info上下文。 ($'{requestname'+#Response“}') –
此外,我试图def requestfull = Licensed#响应log.info context.expand($'{requestfull}),这也不起作用 –
早些时候正确的响应代码是日志。 info context.expand('$ {Licensed#response}') –