public class JMeterPropertiesCorrector
extends java.lang.Object
| Constructor and Description |
|---|
JMeterPropertiesCorrector() |
| Modifier and Type | Method and Description |
|---|---|
void |
configureResultFile(org.apache.jorphan.collections.ListedHashTree testPlan,
java.nio.file.Path resultCsvPath)
Sets a CSV file for writing the results and configures the stored results.
|
void |
correctPaths(org.apache.jorphan.collections.ListedHashTree testPlan,
java.nio.file.Path dir)
Sets the paths of the behavior model files in the specified JMeter test plan to the specified
dir.
|
void |
prepareForHeadlessExecution(org.apache.jorphan.collections.ListedHashTree testPlan)
Does some corrections for running the test in headless mode.
|
void |
setRuntimeProperties(org.apache.jorphan.collections.ListedHashTree testPlan,
int numUsers,
long durationSeconds,
int rampupSeconds)
Sets the number of users, the duration and the ramp up time.
|
public void correctPaths(org.apache.jorphan.collections.ListedHashTree testPlan,
java.nio.file.Path dir)
testPlan - Test plan with wrong behavior model paths.dir - The root dir where the behavior models are stored.public void configureResultFile(org.apache.jorphan.collections.ListedHashTree testPlan,
java.nio.file.Path resultCsvPath)
testPlan - The test plan that should write its results to the file.resultCsvPath - The path to the CSV.public void prepareForHeadlessExecution(org.apache.jorphan.collections.ListedHashTree testPlan)
<stringProp name="CookieManager.implementation">HC3CookieHandler</stringProp>testPlan - The test plan to be corrected.public void setRuntimeProperties(org.apache.jorphan.collections.ListedHashTree testPlan,
int numUsers,
long durationSeconds,
int rampupSeconds)
numUsers - Number of users to be executed in parallel.durationSeconds - The duration od the test in seconds.rampupSeconds - The ramp up time in seconds.