Class RelativeConstraint
java.lang.Object
hudson.plugins.performance.constraints.AbstractConstraint
hudson.plugins.performance.constraints.RelativeConstraint
- All Implemented Interfaces:
ExtensionPoint
,Describable<AbstractConstraint>
Compares new load test results with 1 or more load test results in the past in a dynamically
manner.
- Author:
- Rene Kugel
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.plugins.performance.constraints.AbstractConstraint
AbstractConstraint.Escalation, AbstractConstraint.Metric, AbstractConstraint.Operator
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class hudson.plugins.performance.constraints.AbstractConstraint
ANY, NOW
-
Constructor Summary
ConstructorDescriptionRelativeConstraint
(AbstractConstraint.Metric meteredValue, AbstractConstraint.Operator operator, String relatedPerfReport, AbstractConstraint.Escalation escalationLevel, boolean success, TestCaseBlock testCaseBlock, PreviousResultsBlock previousResultsBlock, double tolerance) -
Method Summary
Modifier and TypeMethodDescriptionclone()
Cloning of a RelativeConstraint Note that this is not from the Interface ClonableEvaluates whether the constraint is fulfilled or violatedboolean
int
double
void
setChoicePreviousResults
(boolean choicePreviousResults) void
setPreviousResults
(int previousResults) void
setPreviousResultsBlock
(PreviousResultsBlock previousResultsBlock) void
setPreviousResultsString
(String previousResultsString) void
setTimeframeEnd
(Date timeframeEnd) void
setTimeframeEndString
(String timeframeEndString) void
setTimeframeStart
(Date timeframeStart) void
setTimeframeStartString
(String timeframeStartString) void
setTolerance
(double d) Methods inherited from class hudson.plugins.performance.constraints.AbstractConstraint
all, checkForDefectiveParams, checkMetredValueforPerfReport, checkMetredValueforUriReport, getDescriptor, getEscalationLevel, getJunitResult, getMeteredValue, getOperator, getRelatedPerfReport, getResultMessage, getSettings, getSuccess, getTestCase, getTestCaseBlock, isSpecifiedTestCase, setEscalationLevel, setJunitResult, setMeteredValue, setOperator, setRelatedPerfReport, setResultMessage, setSettings, setSpecifiedTestCase, setSuccess, setTestCase, setTestCaseBlock
-
Constructor Details
-
RelativeConstraint
@DataBoundConstructor public RelativeConstraint(AbstractConstraint.Metric meteredValue, AbstractConstraint.Operator operator, String relatedPerfReport, AbstractConstraint.Escalation escalationLevel, boolean success, TestCaseBlock testCaseBlock, PreviousResultsBlock previousResultsBlock, double tolerance)
-
-
Method Details
-
clone
Cloning of a RelativeConstraint Note that this is not from the Interface Clonable- Specified by:
clone
in classAbstractConstraint
- Returns:
- clone of this object
-
evaluate
public ConstraintEvaluation evaluate(List<? extends Run<?, ?>> builds) throws AbortException, ParseExceptionDescription copied from class:AbstractConstraint
Evaluates whether the constraint is fulfilled or violated- Specified by:
evaluate
in classAbstractConstraint
- Parameters:
builds
- all builds that are saved in Jenkins- Returns:
- Throws:
AbortException
ParseException
-
getPreviousResults
public int getPreviousResults() -
setPreviousResults
public void setPreviousResults(int previousResults) -
getTolerance
public double getTolerance() -
setTolerance
public void setTolerance(double d) -
getChoicePreviousResults
public boolean getChoicePreviousResults() -
setChoicePreviousResults
public void setChoicePreviousResults(boolean choicePreviousResults) -
getTimeframeStartString
-
setTimeframeStartString
-
getTimeframeEndString
-
setTimeframeEndString
-
getTimeframeStart
-
setTimeframeStart
-
getTimeframeEnd
-
setTimeframeEnd
-
getPreviousResultsBlock
-
setPreviousResultsBlock
-
getPreviousResultsString
-
setPreviousResultsString
-