M
- the application model type used by this load test modelpublic abstract class EntityLoadTestModel<M extends EntityApplicationModel> extends LoadTestModel<M>
Modifier and Type | Class and Description |
---|---|
static class |
EntityLoadTestModel.AbstractEntityUsageScenario<M extends EntityApplicationModel>
An abstract base class for usage scenarios based on EntityApplicationModel instances
|
LoadTestModel.AbstractUsageScenario<T>
LoadTest.ScenarioException, LoadTest.UsageScenario<T>
Modifier and Type | Field and Description |
---|---|
static PropertyValue<java.lang.Integer> |
LOAD_TEST_BATCH_SIZE
Specifies the initial client batch size
Value type: Integer Default value: 10 |
static PropertyValue<java.lang.Integer> |
LOAD_TEST_LOGIN_DELAY
Specifies the number which the max think time is multiplied with when initializing the clients
Value type: Integer Default value: 2 |
static PropertyValue<java.lang.String> |
LOAD_TEST_REMOTE_HOSTNAME
Specifies the hostname of the remote load test server
Value type: String Default value: localhost |
static PropertyValue<java.lang.Integer> |
LOAD_TEST_THINKTIME
Specifies the initial think time setting for the load test client
(max think time = thinktime, min think time = max think time / 2)
Value type: Integer Default value: 2000 |
DEFAULT_CHART_DATA_UPDATE_INTERVAL_MS, DEFAULT_WARNING_TIME_MS, LOG, RANDOM
Constructor and Description |
---|
EntityLoadTestModel(User user,
java.util.Collection<? extends LoadTest.UsageScenario<M>> usageScenarios)
Instantiates a new EntityLoadTestModel.
|
Modifier and Type | Method and Description |
---|---|
protected void |
disconnectApplication(M application) |
java.lang.String |
getTitle()
The title of this LoadTest
|
protected abstract M |
initializeApplication() |
static void |
selectRandomItem(EntityComboBoxModel comboBoxModel)
Selects a random non-null visible item in the given combobox model, if one is available
|
static void |
selectRandomRow(EntityTableModel tableModel)
Selects a random row in the given table model
|
static void |
selectRandomRows(EntityTableModel tableModel,
double ratio)
Selects random rows in the given table model
|
static void |
selectRandomRows(EntityTableModel tableModel,
int count)
Selects random rows in the given table model
|
addApplicationBatch, addExitListener, applicationBatchSizeObserver, applicationCountObserver, collectChartDataObserver, exit, getApplicationBatchSize, getApplicationCount, getLoginDelayFactor, getMaximumThinkTime, getMemoryUsageDataset, getMinimumThinkTime, getMinimumThinkTimeObserver, getNumberOfApplicationsDataset, getPauseObserver, getScenarioChooser, getScenarioDurationDataset, getThinkTime, getThinkTimeDataset, getUpdateInterval, getUsageScenario, getUsageScenarioDataset, getUsageScenarioFailureDataset, getUsageScenarios, getUser, getWarningTime, getWarningTimeObserver, isCollectChartData, isPaused, isScenarioEnabled, maximumThinkTimeObserver, removeApplicationBatch, resetChartData, runScenario, setApplicationBatchSize, setCollectChartData, setLoginDelayFactor, setMaximumThinkTime, setMinimumThinkTime, setPaused, setScenarioEnabled, setUpdateInterval, setUser, setWarningTime, setWeight
public static final PropertyValue<java.lang.String> LOAD_TEST_REMOTE_HOSTNAME
public static final PropertyValue<java.lang.Integer> LOAD_TEST_THINKTIME
public static final PropertyValue<java.lang.Integer> LOAD_TEST_BATCH_SIZE
public static final PropertyValue<java.lang.Integer> LOAD_TEST_LOGIN_DELAY
public EntityLoadTestModel(User user, java.util.Collection<? extends LoadTest.UsageScenario<M>> usageScenarios)
EntityApplicationModel.SCHEDULE_CONNECTION_VALIDATION
is set to false when this class is instantiateduser
- the default userusageScenarios
- the usage scenariospublic java.lang.String getTitle()
getTitle
in interface LoadTest
getTitle
in class LoadTestModel<M extends EntityApplicationModel>
public static void selectRandomRow(EntityTableModel tableModel)
tableModel
- the table modelpublic static void selectRandomRows(EntityTableModel tableModel, int count)
tableModel
- the table modelcount
- the number of rows to selectpublic static void selectRandomRows(EntityTableModel tableModel, double ratio)
tableModel
- the table modelratio
- the ratio of available rows to selectpublic static void selectRandomItem(EntityComboBoxModel comboBoxModel)
comboBoxModel
- the combobox modelprotected final void disconnectApplication(M application)
disconnectApplication
in class LoadTestModel<M extends EntityApplicationModel>
application
- the application to disconnectprotected abstract M initializeApplication()
initializeApplication
in class LoadTestModel<M extends EntityApplicationModel>