2017-09-28 7 views
1

応答時間を取得する必要があります。サンプルAとサンプルBの合計応答時間。Jmeter:1つのトランザクションコントローラのすべてのサンプラ(合計)の応答時間を取得するBeanshellコード

prev.getTime()の代わりに、Transactioncontrollerのトランザクション応答時間を返す関数があります。その下のすべての個々のサンプラーの合計。私はあなたの要件を理解していない場合を除きenter image description here

私はトランザクション・コントローラツリーの下prev.getTime()を与える現在ならば、それはあなたがドン、サンプルAとサンプルB

答えて

0
//Get Sample name 
TransactionName = sampleResult.getSampleLabel(); 
// Response Time 
responseTime = sampleResult.getTime(); 
// Response Size 
size = sampleResult.getBytesAsLong(); 
//Status in true or false 
isSuccessful =sampleResult.isSuccessful(); 
0

の個々の応答時間を表示しますそれを行うにはビンシェルが必要です。

Transaction Controllerで計算されます。

+0

各トランザクションの応答時間をデータベースに送信する必要があります –

関連する問題