Package org.kie.perf
Class TestConfig
- java.lang.Object
-
- org.kie.perf.TestConfig
-
public class TestConfig extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTestConfig.Measurestatic classTestConfig.ReporterTypestatic classTestConfig.RunType
-
Field Summary
Fields Modifier and Type Field Description protected StringdatabaseNameprotected intdurationprotected intexpectedRateprotected intiterationsprotected org.slf4j.Loggerlogprotected List<TestConfig.Measure>measureprotected StringperfRepoHostprotected StringperfRepoPasswordprotected StringperfRepoUrlPathprotected StringperfRepoUsernameprotected intperiodicityprotected StringprojectNameprotected Propertiespropertiesprotected StringreportDataLocationprotected TestConfig.ReporterTypereporterTypeprotected TestConfig.RunTyperunTypeprotected Stringscenarioprotected StringstartScriptLocationprotected Stringsuiteprotected List<String>tagsprotected static TestConfigtcprotected StringtestUIDSuffixprotected intthreadsprotected Stringversionprotected booleanwarmUpprotected intwarmUpCountprotected intwarmUpTime
-
Constructor Summary
Constructors Modifier Constructor Description protectedTestConfig()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddTag(String tag)StringgetDatabaseName()intgetDuration()intgetExpectedRate()static TestConfiggetInstance()intgetIterations()List<TestConfig.Measure>getMeasure()StringgetPerfRepoHost()StringgetPerfRepoPassword()StringgetPerfRepoUrlPath()StringgetPerfRepoUsername()intgetPeriodicity()StringgetProjectName()PropertiesgetProperties()StringgetReportDataLocation()TestConfig.ReporterTypegetReporterType()TestConfig.RunTypegetRunType()StringgetScenario()StringgetStartScriptLocation()StringgetSuite()List<String>getTags()StringgetTestPackage()StringgetTestUIDSuffix()intgetThreads()StringgetVersion()intgetWarmUpCount()intgetWarmUpTime()booleanisWarmUp()PropertiesloadProperties()
-
-
-
Field Detail
-
log
protected final org.slf4j.Logger log
-
tc
protected static TestConfig tc
-
properties
protected Properties properties
-
projectName
protected String projectName
-
suite
protected String suite
-
scenario
protected String scenario
-
startScriptLocation
protected String startScriptLocation
-
databaseName
protected String databaseName
-
runType
protected TestConfig.RunType runType
-
duration
protected int duration
-
iterations
protected int iterations
-
expectedRate
protected int expectedRate
-
reporterType
protected TestConfig.ReporterType reporterType
-
periodicity
protected int periodicity
-
reportDataLocation
protected String reportDataLocation
-
threads
protected int threads
-
warmUp
protected boolean warmUp
-
warmUpCount
protected int warmUpCount
-
warmUpTime
protected int warmUpTime
-
perfRepoHost
protected String perfRepoHost
-
perfRepoUrlPath
protected String perfRepoUrlPath
-
perfRepoUsername
protected String perfRepoUsername
-
perfRepoPassword
protected String perfRepoPassword
-
testUIDSuffix
protected String testUIDSuffix
-
version
protected String version
-
measure
protected List<TestConfig.Measure> measure
-
-
Method Detail
-
loadProperties
public Properties loadProperties() throws Exception
- Throws:
Exception
-
getInstance
public static TestConfig getInstance()
-
addTag
protected void addTag(String tag)
-
getProperties
public Properties getProperties()
-
getProjectName
public String getProjectName()
-
getSuite
public String getSuite()
-
getVersion
public String getVersion()
-
getScenario
public String getScenario()
-
getStartScriptLocation
public String getStartScriptLocation()
-
getTestPackage
public String getTestPackage()
-
getDatabaseName
public String getDatabaseName()
-
getRunType
public TestConfig.RunType getRunType()
-
getDuration
public int getDuration()
-
getIterations
public int getIterations()
-
getExpectedRate
public int getExpectedRate()
-
getReporterType
public TestConfig.ReporterType getReporterType()
-
getPeriodicity
public int getPeriodicity()
-
getReportDataLocation
public String getReportDataLocation()
-
getThreads
public int getThreads()
-
isWarmUp
public boolean isWarmUp()
-
getWarmUpCount
public int getWarmUpCount()
-
getWarmUpTime
public int getWarmUpTime()
-
getMeasure
public List<TestConfig.Measure> getMeasure()
-
getPerfRepoHost
public String getPerfRepoHost()
-
getPerfRepoUrlPath
public String getPerfRepoUrlPath()
-
getPerfRepoUsername
public String getPerfRepoUsername()
-
getPerfRepoPassword
public String getPerfRepoPassword()
-
getTestUIDSuffix
public String getTestUIDSuffix()
-
-