views:

30

answers:

3

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).

+2  A: 

Put a full path and filename into your 'CSV Data Set Config' component, eg. c:\loadtest\config.csv and ensure that you put the CSV file in the place that is specified.


The components manual also states the following:

Relative file names are resolved with respect to the path of the active test plan.

So it should be possible to put the file in the same directory as the test plan file. This ought to work in both Linux and Windows.

ar
And what about Ubuntu? Is it possible to make testing on machines with different OSs at the same time?
Roman
You know, I've just tried to set absolute path as you adviced and yes, it works. But there's a problem with Linux/Windows differences.
Roman
I've added an extra bit about relative paths.
ar
Wait, I don't get it. As I understand from this manual, it's not even necessary to put test plan anywhere on remote nodes because it'll be sent over the net from the master node anyway.
Roman
Hmm, you could try adding two 'CSV Data Set Config' components, the first with the Windows style path and the second with the Linux based path.
ar
A: 

Any reference to data file assumes that such a file exists in respective nodes in the specified path. For example, if you have your CSV files in C:\data, then when you execute the test plan in a distributed fashion, the testplan would look for the data file in C:\data of the node (the slave).

In effect, if you are using 10 slave machines, you need to have c:\data folder in all those 10 machines.

There is no need to copy test plan.

Bala
+1  A: 

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.

BlackGaff