jmeter-gradle-plugin icon indicating copy to clipboard operation
jmeter-gradle-plugin copied to clipboard

Added default jmeter.properties to the plugin

Open foragerr opened this issue 10 years ago • 4 comments

  1. Closes #38 Added default jmeter.properties from jmeter 2.13 into plugin.
    • If user sets jmeterPropertyFile, this value is used as jmeter properties
    • If user does not set , the jmeter.properties in $projectDir/build/jmeter is used
  2. Closes #45 Set property jmeter.save.saveservice.output_format=xml in jmeterRun task, so results files are in xml format and can be transformed to HTML files for reports.

foragerr avatar Apr 12 '15 13:04 foragerr

I assume that a jmeter.properties file that you put in $srcDir/jmeter.properties will get copied into $projectDir/build/jmeter at runtime? If so, this sounds correct.

djangofan avatar Apr 12 '15 15:04 djangofan

@djangofan no, if plugin user does not set jmeterPropertyFile, then I'm defaulting to using the jmeter.properties that ships with jmeter version 2.13.

Should I expect that there is always a jmeter.properties in srcDir?

foragerr avatar Apr 12 '15 16:04 foragerr

Ok, made another change based on what you said. Which jmeter.properties to use is now determined in this order:

  1. Is jmeterPropertyFile defined in build.gradle? Then use it
  2. Otherwise, look in $srcDir/test/jmeter and use jmeter.properties from there, if it exists
  3. If neither, use default jmeter.properties - same as the one shipped with jmeter 2.13

foragerr avatar Apr 13 '15 00:04 foragerr

@kulya can you please accept this pull-req or suggest any changes you want made?

foragerr avatar Apr 30 '15 10:04 foragerr