Hi,
I use a "setUp Thread Group" with a "Bean Shell sampler"
The Bean Shell have a parameter : ${__machineName()} => computer name
In the Bean Shell i write a small code to test the computer name and set a directory corresponding to the machine like :
String computerName = Parameters ;
log.info("computerName = " + computerName);
if (computerName.contains("mycomputer1")) {
props.setProperty("K_DIR_DATA", "D:/usr/formation/JMeter/data");
}
if (computerName.contains("mycomputer2")) {
props.setProperty("K_DIR_DATA", "D:/projets_load_test/data");
}
The data directory depends on machine name.
I use this property in my CSV Data Set Config, the file name is ${__P(K_DIR_DATA)}/login.csv for example.
Regards.
Vincent D.