2013/07/16

Jmeter 動的 関数 function

・function:  __P
jmeter -Jgroup1.threads=7 -Jhostname1=www.realhost.edu
${__P(group1.threads)} - 7
${__P(group1.loops)} - 1
${__P(hostname,www.dummy.org)} - return value of property hostname or www.dummy.org if not defined

・__V
The V (variable) function returns the result of evaluating a variable name expression. This can be used to evaluate nested variable references (which are not currently supported).

For example, if one has variables A1,A2 and N=1:
${A1} - works OK
${A${N}} - does not work (nested variable reference)
${__V(A${N})} - works OK. A${N} becomes A1, and the __V function returns the value of A1

・test_${__Random(1,30)}

・${__counter(TRUE,count)}

・${__StringFromFile(user.txt)}

・Cookieを使いたい
「HTTP クッキーマネージャ」はスレッドグループに追加するだけで利用できます。

・jmeter.bat/jmeter file from a command line with the following parameters:
-H [proxy server hostname or ip address]
-P [proxy server port]
-N [nonproxy hosts] (e.g. *.apache.org|localhost)
-u [username for proxy authentication - if required]
-a [password for proxy authentication - if required]
・インターリーブコントローラ
ーー>ループ毎に1個、順番に実行される

・乱数コントロール
ループ毎に、ランダムに1個選択して実行する
・スループットコントローラ
スループットコントローラに指定したスループットの数まで実行してそれ以上は実行しない