1

I am passing the request as in my feature file and i am trying to do assert from request to response.

I have tried must contains queries but i am not sure if i am doing it correct, could you please help.

**Background:**
*  configure headers = read('classpath:merchantServiceheaders.js')

Given url MservUrl 
And path '/spapis/rest/sp-ms-engine/sp/ms/v1/engine/scanandredact'

Scenario Outline: ACH Low Value Payment Rips Services Summary

] }***

What i would like to do is assert what i have in my request to what i will get back in response.

Since i am passing subject in request the same subject should be present in response

Sadiq K
  • 192
  • 8

1 Answers1

1

Possible in 0.9.3: https://github.com/intuit/karate#scenario-outline-enhancements

First change the Examples: column header to data!

And request data
When method post
Then status 200 
And match response contains data 

In 0.9.2 and earlier, with the Examples: column header as data

* def data = <data>
And request data
When method post
Then status 200 
And match response contains data 
Peter Thomas
  • 54,465
  • 21
  • 84
  • 248