How to reuse same HTTP body for different requests

HI ,

I have a situation where I need to send same HTTP Body and header to 2 different POST calls . Can anyone tell how to place the body at one place and reuse it for both of these calls

Use Global variables.

  1. In TC build headers and body.
  2. Store headers and body in global variables.
  3. Set headers and body for 1st and 2nd request from global variables (use local variables do transfer values from global variables). You can call local variables in HTTP Headers and HTTP Body, just use ${MyVariableName}.
  4. Send 1st and 2nd request.

Thanks for the reply. But I have a large set of API’s. Not efficient to use so many variables .

Is there any way, I can store them in excel and read it at test case level ?