0

Can we append custom text with match in Karate DSL like:

  • match city == 'Pune', 'City Name matching'

Here, it is trying to match whole text 'Pune City Name matching'. But I want to match only 'Pune' and need to append text like 'City Name matching'

Something like below: Assert.assertEquals(city, "Pune", "City Name Check Completed");

1 Answers1

1

No this is not supported. You can look at karate.fail() for very custom needs or contribute code. Also see: https://stackoverflow.com/a/54108755/143475

Peter Thomas
  • 54,465
  • 21
  • 84
  • 248