1

My API path looks like https://google.com/search?sort_by=name&query=name=test How are we supposed to give the query param query=name=test in Karate?

Rohit R
  • 41
  • 1
  • 3

1 Answers1

0

Use param:

* url 'https://google.com/search'
* param sort_by = 'name'
* param query = 'name=test'

The = sign will get URL encoded, so refer this answer as well: https://stackoverflow.com/a/59977660/143475

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