这是我的示例功能文件:
Feature: Karate expression to check if status within array of status.
Scenario: Test
* def status = "ACTIVE"
* def possibleStatus = ["ACTIVE", "INACTIVE"]
* match status contains possibleStatus ?
有没有办法使用空手道表达式检查状态是 ACTIVE 还是 INACTIVE ?
注意:绝对可以通过编写自定义 JS 函数来实现。