apache / apache/jmeter

The Throughtput Controller Can't Take The variables Fair From CSV Data set Config maybe

Open
#5,678 0 comments 0 reactions 0 assignees View on GitHub
P2
Dominant language
Java
Stars
9.5k
Forks
2.3k
Avg merge
1d 22h
Merged PRs (30d)
5

Description

**TaoLu** ([Bug 66116](https://bz.apache.org/bugzilla//show_bug.cgi?id=66116&redirect=false)):
When there are multiple controllers, it is found that the distribution of values is uneven

the result file:
timeStamp,elapsed,label,threadName,success,URL
1655192394865,0,BeanShell Sampler3,Thread Group 1-1,true,http://2.2.2.2:22/hi
1655192394865,0,BeanShell Sampler2,Thread Group 1-1,true,http://1.1.1.1:22/hi
1655192394865,0,BeanShell Sampler1,Thread Group 1-1,true,http://2.2.2.2:22/hi
1655192394865,0,BeanShell Sampler3,Thread Group 1-1,true,http://2.2.2.2:22/hi
1655192394865,0,BeanShell Sampler2,Thread Group 1-1,true,http://2.2.2.2:22/hi
1655192394865,0,BeanShell Sampler3,Thread Group 1-1,true,http://1.1.1.1:22/hi
...

count 1.1.1.1=200
count 2.2.2.2=400

The desired result is that the sampler sends the same number of requests to both host
Is there any other good way

Created attachment [Test%20Plan.jmx](https://apache.github.io/jmeter-bugzilla-attachments/16/66116/38315/Test%2520Plan.jmx): The Jmx script
Test%20Plan.jmx

````xml




false
true
false







false

saveConfig


false
true
true
true
false
false
true
false
false
false
false
false
false
false
true
false
false
false
false
0
true


res/220614/1429



continue

false
100

10
1
false


true



,

ip.csv
false
false
true
shareMode.all
false
ip



1
false
1

ThroughputController.percentThroughput
10.0
0.0




import java.net.MalformedURLException;
import java.net.URL;
url = new URL("http", bsh.args[0], 22, "/hi");
SampleResult.setURL(url);

${ip}
false




1
false
1

ThroughputController.percentThroughput
20.0
0.0




import java.net.MalformedURLException;
import java.net.URL;
url = new URL("http", bsh.args[0], 22, "/hi");
SampleResult.setURL(url);

${ip}
false




1
false
1

ThroughputController.percentThroughput
30.0
0.0




import java.net.MalformedURLException;
import java.net.URL;
url = new URL("http", bsh.args[0], 22, "/hi");
SampleResult.setURL(url);

${ip}
false





````

Severity: major
OS:

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.