karate.match 包含无效
karate.match with contains is not working
我正在尝试做这个例子(https://github.com/intuit/karate/blob/master/karate-junit4/src/test/java/com/intuit/karate/junit4/demos/js-arrays.feature 第 556 行):
* def foo = { a: 1, b: 'foo' }
* def res = karate.match("foo contains { a: '#number' }")
* match res == { pass: true, message: null }
但是我收到了这个错误:
javascript evaluation failed: karate.match("foo contains { a: '#number' }"), TypeError: Can not invoke method [jdk.internal.dynalink.beans.SimpleDynamicMethod Map com.intuit.karate.core.ScriptBridge.match(Object,Object)] with the passed arguments; they do not match any of its method signatures. in <eval> at line number 1
你知道我该怎么做才能解决这个问题吗?
旧版空手道。请升级。
我正在尝试做这个例子(https://github.com/intuit/karate/blob/master/karate-junit4/src/test/java/com/intuit/karate/junit4/demos/js-arrays.feature 第 556 行):
* def foo = { a: 1, b: 'foo' }
* def res = karate.match("foo contains { a: '#number' }")
* match res == { pass: true, message: null }
但是我收到了这个错误:
javascript evaluation failed: karate.match("foo contains { a: '#number' }"), TypeError: Can not invoke method [jdk.internal.dynalink.beans.SimpleDynamicMethod Map com.intuit.karate.core.ScriptBridge.match(Object,Object)] with the passed arguments; they do not match any of its method signatures. in <eval> at line number 1
你知道我该怎么做才能解决这个问题吗?
旧版空手道。请升级。