当前位置:网站首页>JMeter performance comprehensive practice - sign in and batch sign in
JMeter performance comprehensive practice - sign in and batch sign in
2022-07-23 21:55:00 【Code Xiaoyi】
Extract three aspects of performance testing : The core 、 high frequency 、 Basic function
sign To please seek Step Abrupt
1、 preparation :
Check in thread group
n HTTP Request defaults
n HTTP cookie Manager
n Home page access request
n Login request
n View the result tree
n Commissioning the samplers
l HTTP proxy server
(1) Create thread group 
(2)HTTP The proxy server recording script is saved under a thread group 
(3) The browser opens the proxy
2、 Start the proxy server recording script , Check in with the browser , After checking in, close the browser agent

3、 End recording script , Run the request again , View content request content , The figure below , Sign in request 、 Course check-in list . Make sure you catch the request you want , Then modify the request name ;


From 4 The contents to be added at the beginning of step are :CSV Data file settings 、 Regular expression extractor
4、 Single modification of check-in information —— Add a regular expression extractor to the course check-in list before check-in
Regular expressions :“bsq0h0”:“(.+?)”,"( If there are spaces in the expression , Just delete , Otherwise, the execution result may not change , Or the results may not be consistent with expectations )
5、 Modify the check-in status 
6、 Run view results ,bsq0h0 To change the value of 1, Refresh the page to show that you have checked in ;bsq0h0 To change the value of 0, Refresh the page to show that you have not checked in .
The batch operation , The first three steps are the same as the single check-in steps
The following content starts directly from step 4
7、 use CSV Sequential batch operation of files ;
8、 At the first “ Course check-in list ” Add regular expression extractor
(1) Regular expressions :“bsq0h0”:“(.+?)”,"( If there are spaces in the expression , Just delete , Otherwise, the execution result may not change , Or the results may not be consistent with expectations )
(2) Matching numbers refer to CSV Value in file ;
0、 Check in page , Call the check-in list row extracted by regular expression id, Modify check-in status
Sign in for class , Extract course id. Reference variable name :${kcqdid};
Check in , quote id,1 Sign in ,0 To be signed in ;
use CSV Document the course check-in sequence , In extracting courses according to CSV File sequential extraction course id.
10、 Modify the number of thread group cycles 
11、 Run thread group , If you sign in bsq0h0 To change the value of 1, Refresh web page , All sign in status displays
Signed in ;bsq0h0 To change the value of 0, Refresh web page , All check-in statuses show pending check-in 

Finally, thank everyone who reads my article carefully , The following online link is also a very comprehensive one that I spent a few days sorting out , I hope it can also help you in need !

These materials , For those who want to change careers 【 software test 】 For our friends, it should be the most comprehensive and complete war preparation warehouse , This warehouse also accompanied me through the most difficult journey , I hope it can help you ! Everything should be done as soon as possible , Especially in the technology industry , We must improve our technical skills . I hope that's helpful ……
If you don't want to grow up alone , Unable to find the information of the system , The problem is not helped , If you insist on giving up after a few days , You can click the small card below to join our group , We can discuss and exchange , There will be various software testing materials and technical exchanges .
Typing is not easy , If this article is helpful to you , Click a like, collect a hide and pay attention , Give the author an encouragement . It's also convenient for you to find it quickly next time .
Self study recommendation B Stop video :
Zero basis transition software testing : Self taught software testing , Got the byte test post offer, Is the B The best video station !
Advanced automation testing : Huawei has landed , Salary increase 20K,2022 Most suitable for self-study python Automated test tutorial , Spend it yourself 16800 Bought , Free sharing 
边栏推荐
- PCL出错:error C2589“(“:“::“右边的非法标记)
- 【学习笔记】树的直径,重心
- Preliminary discussion on POC compilation
- What is Kai Niu? Excuse me, is it safe to open a stock account by mobile phone?
- Compare kernelshap and treeshap based on speed, complexity and other factors
- 宇树A1机器狗手势控制
- Uniapp uses canvas to write a circular progress bar
- 给定一个以数字组成的数组,实现输出id为数字,并且从小到大排序的name
- SQL注入攻击
- pulsar开源消息队列_了解Pulsar---Pulsar工作笔记001
猜你喜欢

Yuanqi Digitalization: existing mode or open source innovation Lixia action

Cookie 和 Session

05_ UE4 advanced_ Material UV scaling

Deep learning - NLP classic papers, courses, papers and other resources sorting and sharing

A stack of digital robots were selected in Gartner's China AI market guide

Jmeter性能综合实战——签到及批量签到

Lambda learning (the use of comparator after sort and collectors.groupingby after collection)

存储结构和管理盘。有点像装win98要先分区格式化硬盘

大淘营批量采集商品,如何将未上传的宝贝保存下来等后面再导入采集上传

Why cluster chat server introduces load balancer
随机推荐
[create birthday card application]
138 - query case - knowledge points involved: foreach traversal & computed calculation attributes & V-for loop
Cluster chat server: chatservice business layer
Redis common commands correspond to redisson object operations
Improving performance with explicit rendering
&9 nodemon自动重启工具
Practice data Lake iceberg lesson 37 kakfa write the enfour, not enfour test of iceberg's icberg table
Construction and application progress of ten billion level knowledge map of meituan brain
Postgraduate entrance examination | advanced mathematics Chapter4 indefinite integral
SQL injection attack
VLAN comprehensive experiment
Golang invalid argument to intn报错的解决
How to add an operator in ONEFLOW
Still have 1 requests outstanding when connection from slaveX/X.X.X.X:33202 is closed
Programmer growth Article 26: how to hold a good daily morning meeting?
U++ events
U++ 学习笔记 控制物体Scale
Apprentissage Lambda (utilisation du comparateur après tri, regroupement après collecte avec collectors.groupingby)
Principle and implementation of hash table, unordered set and mapping
How about opening an account for Haitong Securities? Is it safe