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

查看:26
本文介绍了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天全站免登陆