表11-1 JMeter内置函数列表
函数类型 |
函数名称 |
注释 |
Information |
get thread number |
|
Information |
get the local machine name |
|
Information |
return current time in various formats |
|
Information |
log (or display) a message (and return the value) |
|
Information |
log (or display) a message (empty return value) |
|
Input |
read a line from a file |
|
Input |
read an entire file |
|
Input |
read from CSV delimited file |
|
Input |
Use an XPath expression to read from a file |
|
Calculation |
generate an incrementing number |
|
Calculation |
add int numbers |
|
Calculation |
add long numbers |
|
Calculation |
generate a random number |
|
Scripting |
run a BeanShell script |
|
Scripting |
process JavaScript (Mozilla Rhino) |
|
Scripting |
evaluate a Commons Jexl expression |
|
Properties |
read a property |
|
Properties |
read a property (shorthand method) |
|
Properties |
set a JMeter property |
|
Variables |
Split a string into variables |
|
Variables |
evaluate a variable name |
|
Variables |
evaluate a variable expression |
|
Variables |
evaluate an expression stored in a variable |
|
String |
parse previous response using a regular expression |
|
String |
generate Unicode char values from a list of numbers |
|
String |
Process strings containing Java escapes (e.g. \n & \t) |
|
String |
Decode HTML-encoded strings |
|
String |
Encode strings using HTML encoding |