public PerformanceTest
Mark the test as a JPut performance test, allowing to assert test execution time and analyze execution time trends
| Modifier and Type | Method and Description |
|---|---|
long |
averageTimeLimit()
Upper limit for average execution time when using
|
boolean |
continueOnException()
If true,
|
long |
delay()
Delay between test repeats,
|
boolean |
isReactive() |
long |
maxAllowedExceptionsCount()
Unit test will be marked as failed,
|
long |
maxTimeLimit()
Upper limit for test execution time in milliseconds
|
int |
parallel()
Tests will run in parallel if threads count is greater than 1
|
Percentile[] |
percentiles()
Upper limits for test execution time in milliseconds within defined percentiles.
|
long |
rampUp()
Ramp-up in milliseconds.
|
int |
repeats()
Count of test execution repeats
|
java.lang.String |
testId()
Unique test id,
|
PerformanceTrend[] |
trends()
Performance trend analyzing
|
int |
warmUp()
Count of warm up test executions
|
java.lang.String testId()
Unique test id,
used to distinguish different tests. Default to testClassName#testMethodName
int warmUp()
Count of warm up test executions
int repeats()
Count of test execution repeats
long delay()
Delay between test repeats,
in ms
long maxTimeLimit()
Upper limit for test execution time in milliseconds
long averageTimeLimit()
Upper limit for average execution time when using
repeats > 1, in milliseconds
Percentile[] percentiles()
Upper limits for test execution time in milliseconds within defined percentiles.
Defining multiple percentiles allowsto have multiple validation constraints, for instance 200ms for 75% and 500ms for 95%
int parallel()
Tests will run in parallel if threads count is greater than 1
long 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 thread
boolean isReactive()
long maxAllowedExceptionsCount()
Unit test will be marked as failed,
if catched exceptions count is greater than this parameter
boolean continueOnException()
If true,
jput will catch runtime exceptions and save errored repeats with result code "500" and corresponding error message.
PerformanceTrend[] trends()
Performance trend analyzing