Package org.mozilla.zest.core.v1
Class ZestAssignCalc
- java.lang.Object
-
- org.mozilla.zest.core.v1.ZestElement
-
- org.mozilla.zest.core.v1.ZestStatement
-
- org.mozilla.zest.core.v1.ZestAssignment
-
- org.mozilla.zest.core.v1.ZestAssignCalc
-
public class ZestAssignCalc extends ZestAssignment
The Class ZestAssignString assigns a string (which can include other variables) to the specified variable.
-
-
Field Summary
Fields Modifier and Type Field Description static StringOPERAND_ADDstatic StringOPERAND_DIVIDEstatic StringOPERAND_MULTIPLYstatic StringOPERAND_SUBTRACT-
Fields inherited from class org.mozilla.zest.core.v1.ZestElement
JSON_ELEMENT_TYPE
-
-
Constructor Summary
Constructors Constructor Description ZestAssignCalc()Instantiates a new zest assign random integer.ZestAssignCalc(String variableName)Instantiates a new zest assign random integer.ZestAssignCalc(String variableName, String operandA, String operation, String operandB)Instantiates a new zest assign random integer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringassign(ZestResponse response, ZestRuntime runtime)Invoke.ZestAssignCalcdeepCopy()Deep copy.StringgetOperandA()StringgetOperandB()StringgetOperation()voidsetOperandA(String operandA)voidsetOperandB(String operandB)voidsetOperation(String operation)-
Methods inherited from class org.mozilla.zest.core.v1.ZestAssignment
getVariableName, isPassive, isSameSubclass, setVariableName
-
Methods inherited from class org.mozilla.zest.core.v1.ZestStatement
getIndex, getNext, getPrevious, init, insertAfter, insertBefore, isEnabled, remove, setEnabled, setNext, setPrev
-
Methods inherited from class org.mozilla.zest.core.v1.ZestElement
getElementType, setElementType
-
-
-
-
Field Detail
-
OPERAND_ADD
public static final String OPERAND_ADD
- See Also:
- Constant Field Values
-
OPERAND_SUBTRACT
public static final String OPERAND_SUBTRACT
- See Also:
- Constant Field Values
-
OPERAND_MULTIPLY
public static final String OPERAND_MULTIPLY
- See Also:
- Constant Field Values
-
OPERAND_DIVIDE
public static final String OPERAND_DIVIDE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ZestAssignCalc
public ZestAssignCalc()
Instantiates a new zest assign random integer.
-
ZestAssignCalc
public ZestAssignCalc(String variableName)
Instantiates a new zest assign random integer.- Parameters:
variableName- the variable name
-
-
Method Detail
-
assign
public String assign(ZestResponse response, ZestRuntime runtime) throws ZestAssignFailException
Description copied from class:ZestAssignmentInvoke.- Specified by:
assignin classZestAssignment- Parameters:
response- the response- Returns:
- the string
- Throws:
ZestAssignFailException- the zest assign fail exception
-
deepCopy
public ZestAssignCalc deepCopy()
Description copied from class:ZestElementDeep copy.- Specified by:
deepCopyin classZestStatement- Returns:
- the zest element
-
getOperandA
public String getOperandA()
-
getOperandB
public String getOperandB()
-
getOperation
public String getOperation()
-
setOperandA
public void setOperandA(String operandA)
-
setOperandB
public void setOperandB(String operandB)
-
setOperation
public void setOperation(String operation)
-
-