0
votes

I would like to use the "File Upload" option in the HTTP2 sampler to load test a server that supports HTTP2 with different message sizes.

I have tried out the "File Upload" option in the HTTP2 sampler for this 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.enter image description here

After moving to another sampler, "file path" got removed.enter image description here

May I know how can send different files as payload of the POST request when using HTTP2 sampler?

I'm using Apache Jmeter 4.0.

Thanks in advance.

1
on second screenshot you are on different tab: first screen is on File Upload tab, while second is on Parameters tabthiscommunityistoxic
it redirects to the parameters tab, and the defined file path is missing in file upload tabSashika Wijesinghe

1 Answers

0
votes

As a workaround for this issue we can use "__FileToString" function in Jmeter.

For example : ${__FileToString(${__P(payload)},,)}