当前位置:网站首页>Two ways to simulate multi-user login in Jmeter
Two ways to simulate multi-user login in Jmeter
2022-08-03 04:33:00 【Programmer Ah Chang】
Reader Questions:
『Hello Ah Chang, using Jmeter for performance testing, how to simulate multiple different users logging in at the same time, there are several methods in total?』
A Chang replied:
There are two methods that Ah Chang knows:
1. CSV Data Set Config
Create a file locally, save it in csv format, and save the username and password in it.

CSV Data Set Config Select the file created locally and set the variable name.
(Subsequently, in the request that needs to pass parameters, refer to the variables ${username},${password})

2, Create a JDBC request to get the login password
Jmeter creates a JDBC request to obtain the login account and password, stores the result in a variable, and passes it to the login interface in turn.
具体可以查看阿常之前写过的文章,jmeter creates a JDBC request, returns multiple fields to pass to the login interface.
A Chang's thoughts:
The first method above is quite simple, and it should also be the method that everyone uses more in their work. There are also many tutorials on the Internet. If you want to know more, you can check it yourself.
The second method above is slightly more complicated, but actually more convenient.You can experience both ways and see which one suits you better.
Is it inspiring to you after reading today's sharing? If you have any ideas, you are welcome to privately message Ah Chang in the background to discuss and communicate together

.
边栏推荐
猜你喜欢
随机推荐
直播|StarRocks 技术内幕 :低基数全局字典优化
【精讲】利用原生js实现todolist
c语言结构体中的冒泡排序
DC-3靶场搭建及渗透实战详细过程(DC靶场系列)
"Obs" start pushing flow failure: the Output. The StartStreamFailed call process
计网试卷概念
接口测试框架实战 | 流程封装与基于加密接口的测试用例设计
rosbag工具plotjuggler无法打开rosbag的问题
接口测试框架实战(二)| 接口请求断言
那些让电子工程师崩溃瞬间,你经历了几个呢?
Mysql如何建立索引实现语句优化
path development介绍
Test drive: project management module - curd development project
【Harmony OS】【ArkUI】ets开发 图形与动画绘制
【生物素叠氮化物|cas:908007-17-0】价格_厂家
Assembly answers
2022 Henan Mengxin League Game (4): Zhengzhou University of Light Industry E - Sleep Well
install ambari
关于#sql#的问题,如何解决?
中断系统需要解决的问题









