1

jMeter でエミュレートする次のシナリオがあります
。100 人のユーザーが 1 回ログインし、30 秒ごとに検索を行い、思考時間は 5 秒です。
これを実装するにはどうすればよいですか?

今、私はこのようなものを持っています:

ThreadGroup(100usrs)
+-- OnceOnlyController(LogIn)
+-- LoopControler(Search)
+-- Timer(5s)

しかし、検索インスタンス間で 30 秒の遅延を行う方法がわかりません。
それは可能ですか、それとも回避策を使用する必要がありますか?
どんな助けでも感謝します。

4

3 に答える 3

5

LoopController の子として別のタイマーを追加する必要があると思います: Timer(30)。検索リクエストはそのコントローラーの範囲内にあり、30 秒タイマーもそこにあるはずです。

http://jmeter.apache.org/usermanual/component_reference.html#timers

于 2012-09-21T14:24:44.617 に答える
3

サンプルの応答時間に関係なく、検索サンプル間に一定の遅延を持たせたい場合は、Orkito ソリューションは適切ではありません。

彼のソリューションでは、検索サンプルの前に 30 秒の遅延が追加されるため、検索に予想以上の時間がかかる場合、リクエストは 30 秒ごとに + 検索サンプルにかかる時間で実行されます。

サンプルの応答時間に関係なく、検索サンプル間に一定の遅延を持たせたい場合は、ここで解決策を説明します。

それはフランス語ですが、スクリーンショットがあり、翻訳サービスが仕事をするはずです.

注意すべきもう 1 つの重要な点:

Note that timers are processed before each sampler in the scope in which they are found; if there are several timers in the same scope, all the timers will be processed before each sampler. Timers are only processed in conjunction with a sampler. A timer which is not in the same scope as a sampler will not be processed at all. To apply a timer to a single sampler, add the timer as a child element of the sampler. The timer will be applied before the sampler is executed. To apply a timer after a sampler, either add it to the next sampler, or add it as the child of a Test Action Sampler.

于 2012-09-22T13:01:21.610 に答える
1

このタイマーはサンプル時間 (各サンプルの実行時間) も考慮するため、Constant Timer を使用する代わりに、Constant Throughput Timerを使用する必要があります。コンスタント タイマーを使用すると、サンプルの実行ごとに遅延が積み重なっていきます。

于 2015-05-15T08:11:54.960 に答える