| Package | Description |
|---|---|
| us.abstracta.jmeter.javadsl | |
| us.abstracta.jmeter.javadsl.core.assertions |
| Modifier and Type | Method and Description |
|---|---|
static DslJsonAssertion |
JmeterDsl.jsonAssertion(String jsonQuery)
Builds an Assertion element to check that obtained sampler result JSON is the expected one.
|
static DslJsonAssertion |
JmeterDsl.jsonAssertion(String name,
String jsonQuery)
Same as
JmeterDsl.jsonAssertion(String) 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 |
|---|---|
DslJsonAssertion |
DslJsonAssertion.equalsTo(Object value)
Specifies to check the value extracted is the given value.
|
DslJsonAssertion |
DslJsonAssertion.equalsToJson(String json)
Specifies the raw JSON value to check the extracted value is equals to.
|
DslJsonAssertion |
DslJsonAssertion.matches(String regex)
Specifies to check the value extracted with the given query to match the given regular
expression.
|
DslJsonAssertion |
DslJsonAssertion.not()
Allows to check the inverse/negated condition specified by the rest of assertion settings.
|
DslJsonAssertion |
DslJsonAssertion.not(boolean negated)
Sames as
not but allowing to enable/disable the setting with a variable. |
DslJsonAssertion |
DslJsonAssertion.queryLanguage(DslJsonExtractor.JsonQueryLanguage queryLanguage)
Allows selecting the query language to use for JSON assertion.
|
Copyright © 2024. All rights reserved.