Skip to main content
1 of 3
Babita
  • 51
  • 2
  • 4

How to send API request json body in cucumber

Can anyone help me to send json request in one line ?? Example { "benefitPlanIDs": [ { "benefitPlanID": "011748abc", "benefitPlanPlatform": "abc" } ], "clientId": "abc", "dateOfService": "2017-01-01", "language": "English", "searchPhrase": "Digital", "session": "3nopmolkgjanbe2x2ddttlua" } I need to pass this as Given User hits "/end points" When User make Search in request

Examples: 
  | searchPhrase |
  | "out"        |

Right now I am passing as When User enters request details as following, , ,,, ,

Examples: 
  | BenefitPlanPlatform | BenefitPlanID     | ClientId | Session                    | DateOfService | Language  | searchPhrase |
  | "abc"              | "0117482abc" | "abc"  | "3nopmolkgjanbe2x2ddttlua" | "2017-01-01"  | "English" | "out"        |



  
Babita
  • 51
  • 2
  • 4