匹配空手道列表的值?

Matching values of a list in karate?

在使用 html table 时,我以列表的形式获取了行数据。 例如:table 有 5 列,其中两列的值是空白,剩下的三列有一些文本值。

因此列表如下所示: ["12.5"," ","22","test"," "] 现在,虽然提供与预期列表相同的列表,但断言在完全匹配中失败并且无法接受空白作为理想情况下需要的匹配目的值。

在此分享部分报告:

如何在比较两个列表的情况下进行精确匹配。请帮助,提前致谢!

我尝试了这个并且成功了:

* def response = ["12.5"," ","22","test"," "]
* match response == ["12.5"," ","22","test"," "]

所以我不知道你在说什么。所以请遵循这个过程:https://github.com/intuit/karate/wiki/How-to-Submit-an-Issue