public class DistributedJmeterEngine extends EmbeddedJmeterEngine
This engine uses JMeter built-in feature to run tests from one node into remote machines.
EmbeddedJmeterEngine.EmbeddedJMeterEngineStopper, EmbeddedJmeterEngine.TestRunner| Constructor and Description |
|---|
DistributedJmeterEngine(String... hosts) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addStatsCollector(org.apache.jorphan.collections.HashTree testPlanTree,
TestPlanStats stats) |
protected EmbeddedJmeterEngine.TestRunner |
buildTestRunner(org.apache.jorphan.collections.HashTree testPlanTree,
org.apache.jorphan.collections.HashTree rootTree,
TestStopper testStopper) |
protected BaseTestStopper |
buildTestStopper() |
DistributedJmeterEngine |
localBasePort(int basePort)
Allows setting the initial port number used to calculate rest of ports to establish RMI
connections.
|
protected DistributedJmeterEngine |
localJMeterEnv(JmeterEnvironment env) |
TestPlanStats |
run(DslTestPlan testPlan)
Runs the given test plan obtaining the execution metrics.
|
DistributedJmeterEngine |
stopEnginesOnTestEnd()
Specifies to stop remote engines once a test is run and finished.
|
DistributedJmeterEngine |
stopEnginesOnTestEnd(boolean enable)
Same as
stopEnginesOnTestEnd() but allowing to enable or disable it. |
awaitAllClosedVisualizers, prop, propertiesFile, runInEnvpublic DistributedJmeterEngine(String... hosts)
public DistributedJmeterEngine localBasePort(int basePort)
This method allows to have a predefined range of ports to be used, and in consequence, properly configure firewall rules.
basePort - the port number to start creating connections from. 1 port is required for each
connection to a remote port, and ports will be assigned incrementally from the
given value.public DistributedJmeterEngine stopEnginesOnTestEnd()
public DistributedJmeterEngine stopEnginesOnTestEnd(boolean enable)
stopEnginesOnTestEnd() but allowing to enable or disable it.enable - specifies to enable or disable the setting. By default, it is set to false.stopEnginesOnTestEnd()@VisibleForTesting protected DistributedJmeterEngine localJMeterEnv(JmeterEnvironment env)
public TestPlanStats run(DslTestPlan testPlan) throws IOException
DslJmeterEngineThis method blocks execution until the test plan execution ends.
run in interface DslJmeterEnginerun in class EmbeddedJmeterEnginetestPlan - to run in the JMeter engine.IOException - when there is a problem with an IO operation.protected void addStatsCollector(org.apache.jorphan.collections.HashTree testPlanTree,
TestPlanStats stats)
addStatsCollector in class EmbeddedJmeterEngineprotected BaseTestStopper buildTestStopper()
buildTestStopper in class EmbeddedJmeterEngineprotected EmbeddedJmeterEngine.TestRunner buildTestRunner(org.apache.jorphan.collections.HashTree testPlanTree, org.apache.jorphan.collections.HashTree rootTree, TestStopper testStopper)
buildTestRunner in class EmbeddedJmeterEngineCopyright © 2024. All rights reserved.