答案 0 :(得分:0)
为了获得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