jmeter中的多个用户登录 [英] multiple user logins in jmeter

查看:39
本文介绍了jmeter中的多个用户登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 jmeter 来测试一个 php 应用程序.我需要为每个用户创建一个具有唯一会话的不同线程.因为在我的应用程序中,每个用户一次只能登录一次,因此将同一用户放入 100 次,我不会得出任何结论.我已经用相同的密码创建了 40 个用户 user0,user1....user39 有没有办法自动为每个用户创建并发线程?

I am using jmeter to test a php application. I need to create a different thread with a unique session for each user. Because in my application you can only have one login per user at a time so putting 100 times the same user I will not get to any conclusion. I have created 40 users user0,user1....user39 with the same password is there a way to automatically create simultaneous threads for each of them?

谢谢

推荐答案

您可以使用 CSV 数据集配置.此控件将允许您使用外部变量源.添加 -> 配置元素 -> CSV 数据集配置您必须设置变量名称,例如:变量名(逗号分隔):USERNAME,PASSWORD

You can use a CSV Data Set Config. This control will allow you to use an external source of variables. Add -> Config Element -> CSV Data Set Config You must set the variable names, something like: Variable Names (comma-delimited): USERNAME,PASSWORD

然后您可以在 HTTP 请求参数中使用变量,例如:${USERNAME} 和 ${PASSWORD}

Then you can use the variables in your HTTP Requests parameters like: ${USERNAME} and ${PASSWORD}

这篇关于jmeter中的多个用户登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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