Karate: verifying plaintext integer response - no step-definition method match found

Viewed 52

I'm testing an endpoint which returns an integer in plaintext format. I'd like to check that the response value is greater than 1. Printing the response tells me that it is indeed. However, when I try to automate this check, I keep getting the following error:

...
When method POST
Then status 200
* print response #returns 643
And response > 1

Error: no step-definition method match found for: response > 1

How can I accomplish this?

1 Answers
Related