Skip to main content
2 of 3
edited tags
Rsf
  • 7.1k
  • 1
  • 24
  • 37

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