//从Response def slurper = new groovy.json.JsonSlurper()获取策略ID
def result = slurper.parseText(response.getResponseBodyContent())
def result_value = result.PolicyID
GlobalVariable.Policyid = result_value
//现在要在Verificaton上使用策略ID
WS.verifyElementPropertyValue(res, 'Hist[0].Gltran.**S-HO1-20-PPHO-3820501**JV-SON-PRE-PPHO-2010-11.Cr', 20)
所以请帮我如何在验证级别的json路径中传递变量值
试试看
WS.verifyElementPropertyValue(res, GlobalVariable.Policyid, 20)
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句