我在我需要打印使用打印在常規腳本步驟的請求步驟響應變量
- 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}') –