Skip to main content
Tweeted twitter.com/StackSQA/status/1270188889546915841
Became Hot Network Question

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

{
  "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"        |



  

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"        |



  

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"        |



  
edited tags
Link
Rsf
  • 7.1k
  • 1
  • 24
  • 37
Source Link
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"        |