Enum DslResponseAssertion.TargetField
- java.lang.Object
-
- java.lang.Enum<DslResponseAssertion.TargetField>
-
- us.abstracta.jmeter.javadsl.core.assertions.DslResponseAssertion.TargetField
-
- All Implemented Interfaces:
Serializable,Comparable<DslResponseAssertion.TargetField>,EnumParam.EnumPropertyValue
- Enclosing class:
- DslResponseAssertion
public static enum DslResponseAssertion.TargetField extends Enum<DslResponseAssertion.TargetField> implements EnumParam.EnumPropertyValue
Identifies a particular field to apply the assertion to.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description REQUEST_BODYApplies the assertion to the request body.REQUEST_HEADERSApplies the assertion to the set of request headers.REQUEST_URLApplies the assertion to the requested URL.RESPONSE_BODYApplies the assertion to the response body.RESPONSE_BODY_AS_DOCUMENTApplies the assertion to the text obtained through Apache Tika from the response body (which might be a pdf, excel, etc.).RESPONSE_CODEApplies the assertion to the response code (eg: the HTTP response code, like 200).RESPONSE_HEADERSApplies the assertion to the set of response headers.RESPONSE_MESSAGEApplies the assertion to the response message (eg: the HTTP response message, like OK).
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringpropertyValue()static DslResponseAssertion.TargetFieldvalueOf(String name)Returns the enum constant of this type with the specified name.static DslResponseAssertion.TargetField[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RESPONSE_BODY
public static final DslResponseAssertion.TargetField RESPONSE_BODY
Applies the assertion to the response body.
-
RESPONSE_BODY_AS_DOCUMENT
public static final DslResponseAssertion.TargetField RESPONSE_BODY_AS_DOCUMENT
Applies the assertion to the text obtained through Apache Tika from the response body (which might be a pdf, excel, etc.).
-
RESPONSE_CODE
public static final DslResponseAssertion.TargetField RESPONSE_CODE
Applies the assertion to the response code (eg: the HTTP response code, like 200).
-
RESPONSE_MESSAGE
public static final DslResponseAssertion.TargetField RESPONSE_MESSAGE
Applies the assertion to the response message (eg: the HTTP response message, like OK).
-
RESPONSE_HEADERS
public static final DslResponseAssertion.TargetField RESPONSE_HEADERS
Applies the assertion to the set of response headers. Response headers is a string with headers separated by new lines and names and values separated by colons.
-
REQUEST_HEADERS
public static final DslResponseAssertion.TargetField REQUEST_HEADERS
Applies the assertion to the set of request headers. Request headers is a string with headers separated by new lines and names and values separated by colons.
-
REQUEST_URL
public static final DslResponseAssertion.TargetField REQUEST_URL
Applies the assertion to the requested URL.
-
REQUEST_BODY
public static final DslResponseAssertion.TargetField REQUEST_BODY
Applies the assertion to the request body.
-
-
Method Detail
-
values
public static DslResponseAssertion.TargetField[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DslResponseAssertion.TargetField c : DslResponseAssertion.TargetField.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DslResponseAssertion.TargetField valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
propertyValue
public String propertyValue()
- Specified by:
propertyValuein interfaceEnumParam.EnumPropertyValue
-
-