Jmeter-测试多个网址 [英] Jmeter - testing multiple urls

查看:361
本文介绍了Jmeter-测试多个网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Jmeter的新手;我想知道如何在负载测试中测试网站不同部分的多个URL(存储在txt/csv文件中).有什么方法可以导入该文件并运行负载测试或任何其他解决方案?

I'm new to Jmeter; I would like to know how to test multiple urls (stored in a txt/csv file) of different sections of a website in a load test ie. is there any way to import that file and run a load test or any alternative solution?

谢谢!

LP

推荐答案

使用CSV DataSet元素,它将在主循环的每次迭代中提取一行并放入您要命名的变量.

Use CSV DataSet element which will on every iteration of main loop extract one line and put in the variable you will name.

然后将var放在httpsampler的path字段中. 如果您的var命名为url,则将放置$ {url}

Then put the var in path field of httpsampler. If your var is named url, then you will put ${url}

这篇关于Jmeter-测试多个网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆