当前位置:网站首页>2.2 basic elements of JMeter
2.2 basic elements of JMeter
2022-07-27 16:12:00 【FD vacation fish】
2.2 JMeter Basic elements
Components : Containers of multiple similar functional components are collectively referred to
Components : A general term for realizing an independent function ( It's like a function )
Sampler : Components implemented by different protocols
2.2.1 JMeter Element type
Basic elements :
Thread group : Simulate the user's
The configuration element : Initialize the test environment and test data . Similar to in customization script setup
Preprocessor : Preprocess the request to be sent . Similar to parameterization in automated scripts
Sampler : Send a request to the server . It is similar to sending request code in automation script
Post Processors : Extract data from the response received from the server . It is similar to the statement of getting a specific field in the response in an automated script
Assertion : Compare the received response results with the expected results . Similar to assertions in automated scripts
Monitor : View the results and logs of the test script run , Similar to test reports in automated scripts
Timer : Wait for a certain time . Similar to... In automated scripts sleep
Test piece : Encapsulate basic functions , Not executed separately , Script calls are required to execute . Similar to functions encapsulated in automated scripts .


(2.2.1 Basic elements )
2.2.2 JMeter The scope of the component
stay JMeter in , The scope of components is determined by the parent-child relationship of components in the test plan tree structure
Tips : The core is “ Sampler ”, Other components operate with the sampler as the core , Components are added in different locations , The effective sampler is also different .
The principle of scope
1. Sampler : Components do not interact with other components , So there's no scope problem ;
2. Logic controller : The component only acts on the sampler and logic controller in its child nodes ;
3. The other six components : Except sampler and logic controller , If it is a child node of a sampler , Then the component acts on its parent and child nodes ;
4. If the node sampler is not its parent , Then its scope is all other descendant nodes under the parent node of the component ( Include child nodes , Sub nodes of sub nodes, etc )
Tips : The above components have not started to learn , For understanding jmeter This tree structure affects the scope .

(2.2.2 The scope of the component )
The original scope :
The core : It is determined according to the parent-child nodes of the tree structure in the test plan
principle :
. The sampler has no scope
. Logic controller : Only for all components under its child nodes, there are small
. Other components
If its parent node is a sampler , Only for parent nodes ( Sampler ) It works
If the parent node is a non sampler , Valid for all child nodes and child nodes under the parent node
2.2.3 JMeter Component execution sequence
1. The configuration element (config elements)
2. Preprocessor program (Per-processors)
3. Timer (timers)
4. Sampler (Sampler)
5. Postprocessor (Post-processors)
6. Assertion (Assertions)
7. Monitor (listenres)
Be careful :
. The configuration element 、 Preprocessor 、 Post processors rely on samplers to run
. In the same scope , The execution sequence of components of the same type is from top to bottom
Tips :
. Preprocessor 、 Post Processors 、 Assertion and other component functions function on the sampler ( If there are no samplers in their scope , It won't be implemented )
. If there are multiple components of the same type in the same scope , Then these components are executed in the order they are in the test plan
(2.2.3 The execution sequence of the components )
边栏推荐
- Servlet基础知识点
- Mapreduce实例(三):数据去重
- webRTC中的coturn服务安装
- Content ambiguity occurs when using transform:translate()
- Enable shallow and deep copies+
- Short video mall system, system prompt box, confirmation box, click blank to close the pop-up box
- DRF学习笔记(二):数据反序列化
- 2.2 JMeter基本元件
- 新版jmeter函数助手不在选项菜单下-在工具栏中
- 微信小程序个人号开通流量主
猜你喜欢

First acquaintance with MySQL database
![[sword finger offer] interview question 54: the k-largest node of the binary search tree](/img/13/7574af86926a228811503904464f3f.png)
[sword finger offer] interview question 54: the k-largest node of the binary search tree

Pychart imports the existing local installation package

Understand │ what is cross domain? How to solve cross domain problems?

判断数据的精确类型
![[sword finger offer] interview question 50: the first character that appears only once - hash table lookup](/img/72/b35bdf9bde72423410e365e5b6c20e.png)
[sword finger offer] interview question 50: the first character that appears only once - hash table lookup

Embedded development: tips and techniques -- seven techniques to meet the real-time deadline

Excel提取重复项

解决flink启动后无法正常关闭

企业运维安全就用行云管家堡垒机!
随机推荐
使用transform:translate()出现内容模糊问题
C language realizes the conversion between byte stream and hexadecimal string
Brief description of tenant and multi tenant concepts in cloud management platform
flink打包程序提交任务示例
Scratch crawler framework
[sword finger offer] interview question 55 - Ⅰ / Ⅱ: depth of binary tree / balanced binary tree
C language programming (Third Edition)
Openwrt增加对 sd card 支持
JSP Foundation
Single machine high concurrency model design
[sword finger offer] interview question 54: the k-largest node of the binary search tree
渗透测试-干货 | 80篇+网络安全面试经验帖(面试篇)
[sword finger offer] interview question 51: reverse pairs in the array - merge sort
Mapreduce实例(一):WordCount
Samsung closes its last mobile phone factory in China
Leetcode 226 翻转二叉树(递归)
新版jmeter函数助手不在选项菜单下-在工具栏中
For enterprise operation and maintenance security, use the cloud housekeeper fortress machine!
三星关闭在中国最后一家手机工厂
接连取消安富利/文晔/世平代理权,TI到底打的什么算盘?