如何在jMeter中使用不同的输入进行多个用户登录? [英] How to do multiple user logins with different inputs in jMeter?

查看:904
本文介绍了如何在jMeter中使用不同的输入进行多个用户登录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有多个登录ID.我想模拟一个用户登录. 我首先尝试选择第一行登录详细信息,还尝试使用循环控制器中的登录详细信息,但未逐行选择.

I have multiple login ids. I want to simulate a user Login. I first tried picking a first row login details and also tried it by those in a loop controller, but its not picking row by row.

如何通过多登录线程分配给每个用户选择每一行.

How to assign for each user to pick every row, through threads with multi login.

推荐答案

是的,我只是通过三个步骤完成了此操作,

Yes i have done this simply in three steps as,

1.创建一个包含用户名和密码的文本文件(或csv文件),用逗号分隔.将此与测试计划放在同一目录中,

1.Create a text file (or csv file) containing the user names and passwords, separated by commas. Put this in the same directory as your test plan as,

2.将CSV数据集配置元素添加到测试计划.将变量命名为USER和PASS.另外,在该元素的文件名中添加一个路径(我确保检查了文件路径),

2.Add a CSV DataSet configuration element to the test plan. Name the variables USER and PASS. also,Add a path to the filename in that element (I made sure to check the file path) as,

3.在登录(HTTP请求)采样器"中,用$ {USER}替换登录名,用$ {PASS}替换密码,

3.Replace the login name with ${USER} and the password with ${PASS} on the Log in (HTTP Request) Sampler as,

希望这对您有帮助,

这篇关于如何在jMeter中使用不同的输入进行多个用户登录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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