Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where on a remote workstation should I put a CSV-config file for distributed JMeter testing?

I want to make JMeter distributed testing. It was said in the manual that first I should start jmeter-server on remote nodes, and then I should update jmeter.config and run jmeter on a master node.

I did all these steps. My test plan includes working with CSV-config files. If I test just from 1 (master) node - then everything works as a charm. But when I try distributed testing all tests fail. Some investigation showed that remote nodes send requests without substitution of ${..}-like parameters. Requests look like

POST data: 5|0|6|http://host.com/portal/|67D1C612DCF291DCD0F71AD15E404F37|host.ui.client.services.LoginService|login|java.lang.String/2004016611|${ADMIN_LOGIN}|1|2|3|4|3|5|5|5|6|6|1|

It's obvious that remote jmeter-server cannot find the CSV-file. Where should I put it?

P.S: I have machines with different OS (Windows 7 and Ubuntu 10.04).

like image 511
Roman Avatar asked Oct 22 '10 12:10

Roman


People also ask

Which is the JMeter config file where remote hosts setting for distributed test need to be configured?

In JMETER_HOME/bin/jmeter. properties, find the property named "remote_hosts" and add the value of your running JMeter server's IP address. Multiple such servers can be added, comma-delimited. Note that you can use the -R command line option instead to specify the remote host(s) to use.

What is CSV data set config used for in a JMeter test?

The “CSV Data Set Config” enables using CSV files as an external data source, where you can keep unique user data like names, emails and passwords. With the help of this config element, JMeter is able to read the CSV file line by line, and then use split parameters to allocate different values for different threads.

How do I run a JMeter script on a remote server?

To run JMeter in remote node, start the JMeter server component on all machines you wish to run on by running the JMETER_HOME/bin/jmeter-server (unix) or JMETER_HOME/bin/jmeter-server. bat (windows) script. Note that there can only be one JMeter server on each node unless different RMI ports are used. Since JMeter 2.3.


1 Answers

The easiest way to resolve the multiple OS issue is to put the CSV file in the Jmeter BIN directory on all test machines, and do not reference the path in the CSV Data Set Config component.

like image 179
BlackGaff Avatar answered Sep 19 '22 01:09

BlackGaff