0

I am using "File Upload" option in the HTTP2 sampler to execute the load test with > 4.0 Jmeter version.

I have tried to "File Upload" option in the HTTP2 sampler and observed that the path provided for the "file path" getting removed when we move across the other samplers, therefore it's not possible to use the file upload option in the HTTP2 sampler.

Added data in File Upload

Post moving to the another thread/sampler, "file path" got removed.

Is there any another way to use in "file path" in HTTP2 sampler.

D.maurya
  • 1
  • 1

1 Answers1

1

I don't think the functionality is implemented, you can create an enhancement request in the plugin repository. If you're a BlazeMeter Customer you can ask for implementation via BlazeMeter Support channel

  1. For "normal" upload you can try using __FileToString() function
  2. For multipart/form-data upload you need to build your request manually providing all the parts of the payload separated by boundaries like it's described in Testing REST API File Uploads in JMeter article
Dmitri T
  • 159,985
  • 5
  • 83
  • 133
  • My request type is Post for HTTP2 and I am passing "Parameters" so can't use "Body Data" means in same request so this function "__FileToString() function" can't be use. – D.maurya Jan 03 '22 at 06:46