Я сделал, как показано ниже.
Код: Выделить всё
* def test= db.readRow("select * from testdb.col xyz where xyz.id = '")
Код: Выделить всё
match test.someCol == {"JSonValue1": null, "JSonvalue2": null, "JSonvalue3": "b", "JSonvalue4": "a"}
Код: Выделить всё
com.intuit.karate.KarateException: match failed: EQUALS
data types don't match (OTHER:MAP)
{"JSonValue1":null,"JSonValue2":null,"JSonValue3": "b", "JSonValue4": "a"}
{"JSonValue1":null,"JSonValue2":null,"JSonValue3":"b","JSonValue4":"a"}
Код: Выделить всё
match test.someCol == karate.toString({"JSonValue1": null,"JSonvalue2": null,"JSonvalue3": "b","JSonvalue4": "a"}).
Код: Выделить всё
com.intuit.karate.KarateException: match failed: EQUALS
data types don't match (OTHER:STRING)
Подробнее здесь: https://stackoverflow.com/questions/757 ... led-equals