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 ClassesNested classes/interfaces inherited from class hudson.plugins.performance.constraints.AbstractConstraint
AbstractConstraint.Escalation, AbstractConstraint.Metric, AbstractConstraint.OperatorNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.plugins.performance.constraints.AbstractConstraint
ANY, NOW -
Constructor Summary
ConstructorsConstructorDescriptionRelativeConstraint(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 violatedbooleanintdoublevoidsetChoicePreviousResults(boolean choicePreviousResults) voidsetPreviousResults(int previousResults) voidsetPreviousResultsBlock(PreviousResultsBlock previousResultsBlock) voidsetPreviousResultsString(String previousResultsString) voidsetTimeframeEnd(Date timeframeEnd) voidsetTimeframeEndString(String timeframeEndString) voidsetTimeframeStart(Date timeframeStart) voidsetTimeframeStartString(String timeframeStartString) voidsetTolerance(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:
clonein classAbstractConstraint- Returns:
- clone of this object
-
evaluate
public ConstraintEvaluation evaluate(List<? extends Run<?, ?>> builds) throws AbortException, ParseExceptionDescription copied from class:AbstractConstraintEvaluates whether the constraint is fulfilled or violated- Specified by:
evaluatein classAbstractConstraint- Parameters:
builds- all builds that are saved in Jenkins- Returns:
- Throws:
AbortExceptionParseException
-
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
-