读取 SOAP UI 模拟服务属性

Read SOAP UI Mock service properties

我正在尝试阅读 Script Dispatcher

中的模拟服务 属性

但我总是出错

No such property [..]

正在阅读documentation and here

你知道我如何存档吗? 谢谢

这是获取 Mock Service 的属性所需执行的操作。

在脚本编辑器中,有以下代码片段:

//Assuming that you want integer value, otherwise ignore 'as Integer' in below statement
def contatoreValue = context.mockService.getPropertyValue('contatore') as Integer  
assert 1 == contatoreValue