简体   繁体   中英

is karate support <= operator matching

i want to check length of particular array using <= operator

  • match bicCameraResponse.items.length <= 15 but it is not working getting error "syntax error, expected '==' for match"

is there any other way to check this?

Sample code:

Feature: Array Length

Scenario: Check array length
        * def a = [1,2,3]
        * match a == '#[_ <= 3]'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM