我有一個執行一次簡單操作的JMeter測試計劃。從設置線程組(jmeter)獲取線程組中的線程數
我遇到的問題是我的測試設置需要知道線程組將具有多少個線程。爲了讓事情更清晰,這裏是測試計劃的簡單表示:
setUp Thread Group
needs to know the number of threads in the below thread group
Thread Group
The number of threads for this thread group is determined via the "Number of Threads (users)" Thread Property.
我可以動態地從線程組中獲得的線程數,但我不能找到讓內這個數字的任何方式而不是設置線程組。
任何想法?
理想情況下,我希望能找到像${__groovy(ctx.getTestPlan().getThreadGroupByIndex(1).getNumThreads())}
這樣的東西,但是我找不到這樣的東西。
爲了清楚起見,我正在尋找在線程組屬性中直接在JMeter中分配的線程數。這個問題有絕對無關,與BlazeMeter,因此不的Get number of threads (defined via BlazeMeter) in a thread group from the setup thread group (jmeter)
的[獲取線程數從設置線程組(JMeter的)線程組中(經由BlazeMeter定義)]可能的複製(http://stackoverflow.com/questions/43500371 /線程數定義 - 通過火焰原子線程定義 - 線程組 - 從設置) –
它不是重複的,另一個問題是關於找到線程數爲由BlazeMeter分配,而這一個涉及將其直接分配給JMeter – Shawn
你如何運行你的測試?通過CMD提示或從UI? –