| Package | Description |
|---|---|
| us.abstracta.jmeter.javadsl | |
| us.abstracta.jmeter.javadsl.core.assertions |
| Modifier and Type | Method and Description |
|---|---|
static DslResponseAssertion |
JmeterDsl.responseAssertion()
Builds a Response Assertion to be able to check that obtained sample result is the expected
one.
|
static DslResponseAssertion |
JmeterDsl.responseAssertion(String name)
Same as
JmeterDsl.responseAssertion() but allowing to set a name on the assertion, which can be
later used to identify assertion results and differentiate it from other assertions. |
| Modifier and Type | Method and Description |
|---|---|
DslResponseAssertion |
DslResponseAssertion.anyMatch()
Specifies that if any check matches then the response assertion is satisfied.
|
DslResponseAssertion |
DslResponseAssertion.anyMatch(boolean enable)
Same as
anyMatch() but allowing to enable or disable it. |
DslResponseAssertion |
DslResponseAssertion.containsRegexes(String... regexes)
Checks if the configured
fieldToTest(TargetField) contains matches for given regular
expressions. |
DslResponseAssertion |
DslResponseAssertion.containsSubstrings(String... substrings)
Checks if the specified
fieldToTest(TargetField) contains the given substrings. |
DslResponseAssertion |
DslResponseAssertion.equalsToStrings(String... strings)
Compares the configured
fieldToTest(TargetField) to the given strings for equality. |
DslResponseAssertion |
DslResponseAssertion.fieldToTest(DslResponseAssertion.TargetField fieldToTest)
Specifies what field to apply the assertion to.
|
DslResponseAssertion |
DslResponseAssertion.ignoreStatus()
Specifies that any previously status set to the request should be ignored, and request should
be marked as success by default.
|
DslResponseAssertion |
DslResponseAssertion.ignoreStatus(boolean enable)
Same as
ignoreStatus() but allowing to enable or disable it. |
DslResponseAssertion |
DslResponseAssertion.invertCheck()
Allows inverting/negating each of the checks applied by the assertion.
|
DslResponseAssertion |
DslResponseAssertion.invertCheck(boolean enable)
Same as
invertCheck() but allowing to enable or disable it. |
DslResponseAssertion |
DslResponseAssertion.matchesRegexes(String... regexes)
Checks if the configured
fieldToTest(TargetField) matches (completely, and not just
part of it) given regular expressions. |
Copyright © 2023. All rights reserved.