Groovy 读取SOAP UI模拟服务属性
我正在尝试读取Groovy 读取SOAP UI模拟服务属性,groovy,mocking,soapui,Groovy,Mocking,Soapui,我正在尝试读取脚本调度程序中模拟服务的属性 但我总是犯错误 没有此类财产[……] 阅读和 你知道我怎么把它存档吗? 谢谢以下是您需要做的事情,以便在模拟服务中获取属性 在脚本编辑器中,具有以下代码段: //Assuming that you want integer value, otherwise ignore 'as Integer' in below statement def contatoreValue = context.mockService.getPropertyValue(
脚本调度程序中模拟服务的属性
但我总是犯错误
没有此类财产[……]
阅读和
你知道我怎么把它存档吗?
谢谢以下是您需要做的事情,以便在模拟服务
中获取属性
在脚本编辑器中,具有以下代码段:
//Assuming that you want integer value, otherwise ignore 'as Integer' in below statement
def contatoreValue = context.mockService.getPropertyValue('contatore') as Integer
assert 1 == contatoreValue
以下是在模拟服务
中获取属性所需执行的操作
在脚本编辑器中,具有以下代码段:
//Assuming that you want integer value, otherwise ignore 'as Integer' in below statement
def contatoreValue = context.mockService.getPropertyValue('contatore') as Integer
assert 1 == contatoreValue