JMeter Test Plan的组成部分之Thread Group
来源:互联网 发布:最终幻想雷霆身材数据 编辑:程序博客网 时间:2024/05/21 19:23
JMeter Test Plan的组成部分之Thread Group
A Thread Group is the starting point of a Test Plan, and it should contain all other
JMeter elements. A thread group controls the threads that will be created by JMeter
to simulate simultaneous users。
In its Control Panel, shown in the following figure, you will be able to simulate the
"number of users", how long it takes to start each "user" (or how often the users
should send requests), the number of times to perform the test (or how many
requests they should send), and a start and stop time for each test.
Elements must beplaced under a Thread Group as they define a Test Plan. A Thread Group controls the number of threads (or "users")JMeter will use to execute your
test. If there are two or more Thread Groups in the same Test Plan, each Thread
Group will execute completely independently from each other. Multiple Thread
Groups within the same Test Plan simply simulate groups of concurrent, individual
connections to your server application. The Control Panel allows us to configure each
Thread Group to have its own set of specific "behaviors".
test. If there are two or more Thread Groups in the same Test Plan, each Thread
Group will execute completely independently from each other. Multiple Thread
Groups within the same Test Plan simply simulate groups of concurrent, individual
connections to your server application. The Control Panel allows us to configure each
Thread Group to have its own set of specific "behaviors".
Each feature of this component is described as follows:
Action to be taken after a Sampler error:In case of any error recorded in any
Sample as the test runs, you may let the test either:Continue to the next element inthe test, or Stop Thread to stop the current Thread, or Stop Test completely, in case
you want to inspect the error before continue running.
Number of Threads: Simulates the number of user(s) or connection(s) to your
server application.Ramp-Up Period: Defines how long it will take JMeter to get all threads running.
For example, if there are 10 threads and a ramp-up period of 60 seconds, then eachsuccessive thread will be delayed by 6 seconds. In 60 seconds, all threads would be
up and running. The best policy is to make your ramp-up period long enough to
avoid large workload as the test begins, but short enough to allow the last one to
start running before finishing the first one. You may set your ramp-up period to be
equal with the number of threads, and later adjust accordingly.
Loop Count: Defines the number of times to execute the test. By default, the test is
executed once but you can adjust as needed. Clicking theForever checkbox causesthe test to run repeatedly until stopped manually.
Scheduler checkbox: Once selected, the Scheduler Configuration section will appear
at the bottom of the control panel.
Scheduler Configuration: Version 1.9 and later reveals this feature, where you can
set the start and end time of running the test. Once you start the test, it will notexecute any elements until the start time is reached. After each execution cycle,
unless the end-time is reached, in which case the run is stopped, the iteration will
continue until the loop count limit. The startup delay field allows JMeter some time
before a thread is started and the duration field lets you define the duration of the
whole test. The former overrides start-time, while the latter overridesend-time.
读书笔记:Apache JMeter
0 0
- JMeter Test Plan的组成部分之Thread Group
- JMeter Test Plan的组成部分之Controllers
- JMeter Test Plan的组成部分之Listeners
- JMeter Test Plan的组成部分之Timers
- JMeter Test Plan的组成部分之Assertions
- JMeter Test Plan的组成部分之Configuration Elements
- JMeter Test Plan的组成部分之Processor Elements
- JMeter之基本概念-The Test Plan
- JMeter 线程组之Stepping Thread Group插件
- jmeter<1>--Elements of a Test Plan
- Jmeter - Elements of a Test Plan
- JMeter学习笔记4-修改Test Plan等相关操作
- 如何解决 JMeter 通过 JDBC 访问 Oracle 和 MySQL 的问题 (留言中有 Test Plan 实例下载)
- 如何解决 JMeter 通过 JDBC 访问 Oracle 和 MySQL 的问题 (留言中有 Test Plan 实例下载)
- Test Plan
- 上code之前的test plan
- 【原创】Android之应用程序的组成部分
- Test Strategy VS Test Plan
- Python图像处理之边缘检测
- 1010.一元多项式求导 (25)
- 删数问题
- J2EE的十三个标准
- BZOJ 1202: [HNOI2005]狡猾的商人
- JMeter Test Plan的组成部分之Thread Group
- 活动选择问题
- LeetCode OJ 之 GenerateParenthesis解题报告
- FFMPEG采集摄像头数据并切片为iPhone的HTTP Stream流
- 插入排序(JAVA语言描述)
- 实现京东底部添加到购物车的效果
- 最少拦截系统
- 蓝桥杯单片机设计与开发笔记(一)
- .NET设计规范————命名规范