below is the sample request. One parameter I have managed to pass it as example and other is a son array.
{request;{ first:value1, second:[value1,value2] }}
below is the sample request. One parameter I have managed to pass it as example and other is a son array.
{request;{ first:value1, second:[value1,value2] }}
Read the docs: https://github.com/intuit/karate#embedded-expressions
* def v1 = 'value1'
* def arr = [ 'value1', 'value2' ]
* def body = { first: '#(v1)', second: '#(arr)' }
* match body == { first: 'value1', second: [ 'value1', 'value2' ] }
EDIT - yes you can use JSON in examples: https://github.com/intuit/karate#scenario-outline-enhancements