简体   繁体   English

如何使用不同的帖子请求运行JMeter

[英]How to run JMeter with different post requests

i want to put my web application to stress test. 我想将我的Web应用程序进行压力测试。 I can do it with "Http Request Sampler" but we want our post data have different values which can be read from a DB or a file. 我可以使用“ Http Request Sampler”来实现,但是我们希望我们的帖子数据具有不同的值,可以从数据库或文件中读取这些值。

How can i accomplish working with different data? 如何完成使用不同数据的工作?

Thanks in advance... 提前致谢...

To do this, use: 为此,请使用:

  • CSV Data Set , this will export as variables the columns in each row of your CSV CSV数据集 ,这会将CSV每行中的列导出为变量

  • Then you just use variables this way ${var1} in Http Request sampler 然后,您只需在Http Request采样器中以这种方式使用变量$ {var1}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM