jmeter-maven-plugin: Directory structure is not preserved when copying test files to the build directory
In our src/test/jmeter
directory we have a structure like the following:
src/test/jmeter
├── MyTestSuite.jmx
├── MyTestSuiteResources
└── resource.csv
Since 2.x when running the tests through the plugin, files from the test directory are copied by ignoring sub-directories. So the files end up in a flat structure:
target/jmeter/testFiles
├── MyTestSuite.jmx
└── MyTestSuiteResources_resource.csv
That’s a problem since our tests are referring to the resource files using a relative path and thus the file can’t be found when running the tests.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 19 (9 by maintainers)
At the moment I haven;t really had time to investigate it. When i get a free moment I will have a look and try and work out what to do.
It should have been but we were not copying files across to the target directory (something you should be doing).
Basically we fixed a bug where we were running the source files rather than copying the source files across to the target directory to then run them.
YES!!! I have the same problem and I have to give up this plugin because of this problem, I hope the team can resolve it as soon as possible~ : )
My jmeter files like this : A.jmx |-----Include Controller |---------./…/…/folder1/folder2/B.jmx