Add operator support to Extractors these are used to generate an Assertion using the extracted value.
GET url "http://api.rest.org/person" assert (StatusCode === Status.Ok)
Operations
The following operations are added to all Extractors
$ - extractor === expected - the extracted value is equal to the expected value.
$ - extractor !== expected - the extracted value is not equal to the expected value.
$ - extractor in (expected1, expected2, ...) - the extracted value is in the list of expected values.
$ - extractor notIn (expected1, expected2, ...) - the extracted value is in the list of expected values.
The following operations are added to Extractors that support scala.math.Ordering.
More precisely these operations are added to Extractor[T] if there exists an implicit
Ordering[T] for any type T.
$ - extractor < expected - the extracted value is less than the expected value.
$ - extractor <= expected - the extracted value is less than or equal to the expected value.
$ - extractor > expected - the extracted value is greater than the expected value.
$ - extractor <= expected - the extracted value is greater than or equal to the expected value.
Add operator support to
Extractor
s these are used to generate anAssertion
using the extracted value.GET url "http://api.rest.org/person" assert (StatusCode === Status.Ok)
Operations
The following operations are added to all
Extractors
$ -
extractor === expected
- the extracted value is equal to theexpected
value. $ -extractor !== expected
- the extracted value is not equal to theexpected
value. $ -extractor in (expected1, expected2, ...)
- the extracted value is in the list of expected values. $ -extractor notIn (expected1, expected2, ...)
- the extracted value is in the list of expected values.The following operations are added to
Extractor
s that supportscala.math.Ordering
. More precisely these operations are added toExtractor[T]
if there exists an implicitOrdering[T]
for any typeT
.$ -
extractor < expected
- the extracted value is less than theexpected
value. $ -extractor <= expected
- the extracted value is less than or equal to theexpected
value. $ -extractor > expected
- the extracted value is greater than theexpected
value. $ -extractor <= expected
- the extracted value is greater than or equal to theexpected
value.