You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Zhongjie Wang <Zh...@mathworks.com> on 2009/11/19 20:57:53 UTC

How to make a dependent property file visible in Junit Sampler load testing

I am using Junit Sampler for a load test. My junit testcase has many dependent JAR files, and some of them have dependent property files.
My problem is that those dependent property files could not be found out, no matter I put them to anywhere. I've tried to put property files to search_paths and user.classpath by updating jmeter.properties. I ever put them under <jmeter-home>/lib, <jmeter-home>/bin, and <jmeter-home>/lib/junit. I also put them to their JAR files, but property files were still could not be found out, even though classes in the same JAR files were working well.

Any suggestion?

Thanks
Zhongjie

Re: How to make a dependent property file visible in Junit Sampler load testing

Posted by Deepak Shetty <sh...@gmail.com>.
It depends how the jars reference those property files (do they read it from
classpath or do they use FilePaths- in which case relative paths will cause
a problem. i suppose they have to be relative from where you ran JMeter
mostly the bin directory or if that doesnt work try relative to scripts). If
you have the source code it should be easy to check.
Jars that your testcases depend on can be in the same folder where you
copied your junit cases.

regards
deepak

On Thu, Nov 19, 2009 at 11:57 AM, Zhongjie Wang <Zhongjie.Wang@mathworks.com
> wrote:

> I am using Junit Sampler for a load test. My junit testcase has many
> dependent JAR files, and some of them have dependent property files.
> My problem is that those dependent property files could not be found out,
> no matter I put them to anywhere. I've tried to put property files to
> search_paths and user.classpath by updating jmeter.properties. I ever put
> them under <jmeter-home>/lib, <jmeter-home>/bin, and
> <jmeter-home>/lib/junit. I also put them to their JAR files, but property
> files were still could not be found out, even though classes in the same JAR
> files were working well.
>
> Any suggestion?
>
> Thanks
> Zhongjie
>