【问题标题】:Read SOAP UI Mock service properties读取 SOAP UI Mock 服务属性
【发布时间】:2016-08-31 08:19:58
【问题描述】:

我正在尝试读取 Script Dispatcher 中的模拟服务的属性

但我总是出错

没有这样的属性[..]

阅读documentationhere

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

【问题讨论】:

    标签: groovy mocking soapui


    【解决方案1】:

    您需要执行以下操作才能在Mock Service 获得房产。

    在脚本编辑器中,有如下代码sn -p:

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

    【讨论】:

      猜你喜欢
      • 2012-03-18
      • 2015-03-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-04-02
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多