public class PerfTestConfiguration
Performance test configuration of a single junit test method
| Constructor and Description |
|---|
PerfTestConfiguration(java.lang.String testId,
int warmUp,
int repeats,
long runTime,
long delay,
long maxTimeLimit,
long avgTimeLimit,
java.util.Map<java.lang.Double,java.lang.Long> percentiles,
int parallelCount,
long rampUp,
boolean isReactive,
long maxAllowedExceptionsCount,
boolean continueOnException,
TrendTestConfiguration trendConfiguration)
Performance test configuration of a single junit test method
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
component1()
Unique test id,
|
long |
component10()
Ramp-up in milliseconds.
|
boolean |
component11() |
long |
component12()
Unit test will be marked as failed,
|
boolean |
component13()
TODO implement: reactive
|
TrendTestConfiguration |
component14()
Performance trend analyzing
|
int |
component2()
Count of warm up test executions
|
int |
component3()
Test execution repeats count
|
long |
component4()
TODO
|
long |
component5()
Delay between test repeats,
|
long |
component6()
Upper limit for test execution time in milliseconds
|
long |
component7()
Upper limit for average execution time when using
|
java.util.Map<java.lang.Double,java.lang.Long> |
component8()
Upper limits for test execution time in milliseconds within defined percentiles. Defining multiple percentiles allows
to have multiple validation constraints, for instance 200ms for 75% and 500ms for 95%.
|
int |
component9()
Count of maximum parallel executions
|
PerfTestConfiguration |
copy(java.lang.String testId,
int warmUp,
int repeats,
long runTime,
long delay,
long maxTimeLimit,
long avgTimeLimit,
java.util.Map<java.lang.Double,java.lang.Long> percentiles,
int parallelCount,
long rampUp,
boolean isReactive,
long maxAllowedExceptionsCount,
boolean continueOnException,
TrendTestConfiguration trendConfiguration)
Performance test configuration of a single junit test method
|
boolean |
equals(java.lang.Object p) |
long |
getAvgTimeLimit()
Upper limit for average execution time when using
|
boolean |
getContinueOnException()
TODO implement: reactive
|
long |
getDelay()
Delay between test repeats,
|
long |
getMaxAllowedExceptionsCount()
Unit test will be marked as failed,
|
long |
getMaxTimeLimit()
Upper limit for test execution time in milliseconds
|
int |
getParallelCount()
Count of maximum parallel executions
|
java.util.Map<java.lang.Double,java.lang.Long> |
getPercentiles()
Upper limits for test execution time in milliseconds within defined percentiles. Defining multiple percentiles allows
to have multiple validation constraints, for instance 200ms for 75% and 500ms for 95%.
|
long |
getRampUp()
Ramp-up in milliseconds.
|
int |
getRepeats()
Test execution repeats count
|
long |
getRunTime()
TODO
|
java.lang.String |
getTestId()
Unique test id,
|
TrendTestConfiguration |
getTrendConfiguration()
Performance trend analyzing
|
int |
getWarmUp()
Count of warm up test executions
|
int |
hashCode() |
boolean |
isReactive() |
java.lang.String |
toString() |
PerfTestConfiguration |
valid() |
public PerfTestConfiguration(java.lang.String testId,
int warmUp,
int repeats,
long runTime,
long delay,
long maxTimeLimit,
long avgTimeLimit,
java.util.Map<java.lang.Double,java.lang.Long> percentiles,
int parallelCount,
long rampUp,
boolean isReactive,
long maxAllowedExceptionsCount,
boolean continueOnException,
TrendTestConfiguration trendConfiguration)
Performance test configuration of a single junit test method
testId - Unique test id, used to distinguish different tests. Default to testClassName#testMethodNamewarmUp - Count of warm up test executionsrepeats - Test execution repeats countrunTime - TODOdelay - Delay between test repeats, in msmaxTimeLimit - Upper limit for test execution time in millisecondsavgTimeLimit - Upper limit for average execution time when using repeats > 1, in millisecondspercentiles - Upper limits for test execution time in milliseconds within defined percentiles. Defining multiple percentiles allows to have multiple validation constraints, for instance 200ms for 75% and 500ms for 95%.
Map is rank to maxTime
parallelCount - Count of maximum parallel executions (e.g. java threads in case of base executor or coroutines/reactive executions)rampUp - Ramp-up in milliseconds. If parallel is 100, and the ramp-up period is 100000 (100 seconds),then JPut will take 100 seconds to get all 100 threads running, i.e. 1 second delay after each new threadmaxAllowedExceptionsCount - Unit test will be marked as failed, if catched exceptions count is greater than this parametercontinueOnException - TODO implement: reactive
If true, jput will catch runtime exceptions and save errored repeats with result code "500" and corresponding error message.
trendConfiguration - Performance trend analyzingpublic PerfTestConfiguration valid()
public java.lang.String toString()
public java.lang.String getTestId()
Unique test id,
used to distinguish different tests. Default to testClassName#testMethodName
public int getWarmUp()
Count of warm up test executions
public int getRepeats()
Test execution repeats count
public long getRunTime()
TODO
public long getDelay()
Delay between test repeats,
in ms
public long getMaxTimeLimit()
Upper limit for test execution time in milliseconds
public long getAvgTimeLimit()
Upper limit for average execution time when using
repeats > 1, in milliseconds
public java.util.Map<java.lang.Double,java.lang.Long> getPercentiles()
Upper limits for test execution time in milliseconds within defined percentiles. Defining multiple percentiles allows to have multiple validation constraints, for instance 200ms for 75% and 500ms for 95%.
Map is rank to maxTime
public int getParallelCount()
Count of maximum parallel executions
(e.g. java threads in case of base executor or coroutines/reactive executions)
public long getRampUp()
Ramp-up in milliseconds.
If parallel is 100, and the ramp-up period is 100000 (100 seconds),then JPut will take 100 seconds to get all 100 threads running, i.e. 1 second delay after each new thread
public boolean isReactive()
public long getMaxAllowedExceptionsCount()
Unit test will be marked as failed,
if catched exceptions count is greater than this parameter
public boolean getContinueOnException()
TODO implement: reactive
If true, jput will catch runtime exceptions and save errored repeats with result code "500" and corresponding error message.
public TrendTestConfiguration getTrendConfiguration()
Performance trend analyzing
public java.lang.String component1()
Unique test id,
used to distinguish different tests. Default to testClassName#testMethodName
public int component2()
Count of warm up test executions
public int component3()
Test execution repeats count
public long component4()
TODO
public long component5()
Delay between test repeats,
in ms
public long component6()
Upper limit for test execution time in milliseconds
public long component7()
Upper limit for average execution time when using
repeats > 1, in milliseconds
public java.util.Map<java.lang.Double,java.lang.Long> component8()
Upper limits for test execution time in milliseconds within defined percentiles. Defining multiple percentiles allows to have multiple validation constraints, for instance 200ms for 75% and 500ms for 95%.
Map is rank to maxTime
public int component9()
Count of maximum parallel executions
(e.g. java threads in case of base executor or coroutines/reactive executions)
public long component10()
Ramp-up in milliseconds.
If parallel is 100, and the ramp-up period is 100000 (100 seconds),then JPut will take 100 seconds to get all 100 threads running, i.e. 1 second delay after each new thread
public boolean component11()
public long component12()
Unit test will be marked as failed,
if catched exceptions count is greater than this parameter
public boolean component13()
TODO implement: reactive
If true, jput will catch runtime exceptions and save errored repeats with result code "500" and corresponding error message.
public TrendTestConfiguration component14()
Performance trend analyzing
public PerfTestConfiguration copy(java.lang.String testId, int warmUp, int repeats, long runTime, long delay, long maxTimeLimit, long avgTimeLimit, java.util.Map<java.lang.Double,java.lang.Long> percentiles, int parallelCount, long rampUp, boolean isReactive, long maxAllowedExceptionsCount, boolean continueOnException, TrendTestConfiguration trendConfiguration)
Performance test configuration of a single junit test method
public int hashCode()
public boolean equals(java.lang.Object p)