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

查看:112
本文介绍了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 Requests参数中使用变量,例如: $ {USERNAME}和$ {PASSWORD}

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

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

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