简体   繁体   中英

JMeter distributed testing from Java code - csv dependent data in slaves

I am running JMETER DISTRIBUTED test from my JAVA CODE. So far , it is working fine for the JMX files that doesn't have any dependent CSV test data. Now , I'd like to run a test with csv dependent data but it seems the csv file needs to be placed in the SLAVE machines as well. Is there a way we could execute the test without placing the dependent CSV file in SLAVE machines. I am trying to automate the tests through java code , so it would not be feasible for me to manually place the csv files in SLAVE machines. Please let me know your suggestions on this.

As of current JMeter version 5.4.1 there is no support of transferring dependent files to the slave machines, only the .jmx script is being passed from master over the network.

You could consider using a plugin like HTTP Simple Table Server or Redis Dataset or put your test data into the database and use JDBC Test Elements for fetching the data from the centralized remote storage instead of depending on local CSV files.

Alternatively you can use jCIFS or jSch libraries to copy the .CSV files to the slaves from your JAVA CODE

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM