File Upload support of Jmter HTTP2 sampler

北慕城南 提交于 2019-12-11 19:55:02

问题


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.

After moving to another sampler, "file path" got removed.

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:


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

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



来源:https://stackoverflow.com/questions/50568142/file-upload-support-of-jmter-http2-sampler

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!