Search code examples
karatetestcase

Karate doesn't check cases if expected number is a larger, how do I handle it?


I have given match response as #number But for a value of 15547786385661 the case just gets skipped.how do I handle it?


Solution

  • You must be making some simple mistake. Try pasting the two lines below into a fresh scenario and see it work:

    * def response = { foo: 15547786385661 }
    * match response == { foo: '#number' }