oliverlloyd / jmeter-ec2

Automates running Apache JMeter on Amazon EC2
GNU General Public License v3.0
464 stars 187 forks source link

Supporting the 'Include Controller' in jmx files #15

Open erichelgeson opened 10 years ago

erichelgeson commented 10 years ago

I have a meta jmx file that uses the Include Controller that includes all scripts for individual projects. This a useful layout for when you have many projects going through a single gateway. I use the individual jmx files for testing individual APIs, then include them in the meta jmx file for the biblical, full load tests.

jmeter-ec2 doesn't recognize the Include Controller for things like thread management/etc, and thats probably ok as it may add a lot of complexity. Also since it copies the jmx file from the $project/jmx/meta.jmx to /tmp/execute.jmx on the remote host, the include controller gets confused as the layout locally is different than the layout remotely. (../data/ vs data/)

Work around is to copy the included jmx files into the data/ dir and as that layout matches the layout on the remote server. I have a simple bash script to copy the jmx files and the csv files into the data dir.

Eg:

project/
 - meta.jmx
 data/
  - foo.jmx
  - bar.jmx
  - foo.csv
  - bar.csv
 results/
 jmx/
  - meta.jmx # Same as above

Not really a feature request but more a work around if anyone has the same issue and to show how i worked around the issue.

barryperez commented 8 years ago

Thanks Eric, this is helpful. I'm just starting to look at modifying this script for my current project and this was one of the first questions which came to mind.