jmeter-gradle-plugin
jmeter-gradle-plugin copied to clipboard
Added default jmeter.properties to the plugin
- 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/jmeteris used
- If user sets
- Closes #45
Set property
jmeter.save.saveservice.output_format=xmlin jmeterRun task, so results files are in xml format and can be transformed to HTML files for reports.
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 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?
Ok, made another change based on what you said. Which jmeter.properties to use is now determined in this order:
- Is jmeterPropertyFile defined in build.gradle? Then use it
- Otherwise, look in $srcDir/test/jmeter and use jmeter.properties from there, if it exists
- If neither, use default jmeter.properties - same as the one shipped with jmeter 2.13
@kulya can you please accept this pull-req or suggest any changes you want made?