The ramp-up period tells JMeter how long to take to "ramp-up" to the full number of threads chosen. If 10 threads are used, and the ramp-up period is 100 seconds, then JMeter will take 100 seconds to get all 10 threads up and running. Each thread will start 10 (100/10) seconds after the previous thread was begun. If there are 30 threads and a ramp-up period of 120 seconds, then each successive thread will be delayed by 4 seconds.
Ramp-up needs to be long enough to avoid too large a work-load at the start of a test, and short enough that the last threads start running before the first ones finish (unless one wants that to happen).
Start with Ramp-up = number of threads and adjust up or down as needed.
JMeter中创建CSV Data Set Config
按如下方式在Thread Group中创建CSV Data Set Config:
指定从CSV文件获取参数,指定参数名字(第一列对应变量名为eng_value, 第二列对应变量名为chn_value),默认分隔符即为逗号:
JMeter中修改HTTP Request
修改请求为POST,并设置POST请求的参数名与参数值。其中eng, chn为POST请求的参数名,而后面的{chn_value}则为相应的参数值,而这些值是从CSV文件中读取出来的(上面进行CSV Data Set Config时,就设置了每一列对应的Varaiable Names)