chathurad
6 years agoContributor
Assert int value in an array
As on the image my responce data contains an array like this :300, 300, 300, 305, 310, 310, 310, 315, 320.
I need to verify whether the each valu is greater than or equal to 299.
But im getting t...
- 6 years ago
int count = 0 price.each { if (it > 299) count++ } if (count > 0) assert false, "Not all price is greater than 299"