Members


<inner> Then its {word} to be {word}

Description

Verifies the value of the specified field in the previously obtained result

Parameters
Name Type Description
field word

name of the field to verify

value word

expected value

Examples
Then its {word} to be {word}

<inner> Then we expect to succeed

Description

Ensures there is no pending error from the previous operation

Examples
Then we expect to succeed

<inner> Then we expect to fail

Description

Ensures there is a pending error from the previous operation

Examples
Then we expect to fail

<inner> Then we expect no data returned

Description

Ensures there is no result present

Examples
Then we expect no data returned

<inner> Then we expect data returned

Description

Ensures there is a result present

Examples
Then we expect data returned

<inner> Then we expect to have {int} records

Description

Ensures the result is present as an array and contains the specified count of records

Parameters
Name Type Description
count int

specifies the count of expected records

Examples
Then we expect to have 10 records

<inner> Then we expect the count of records to be {int}

Description

Ensures the result of the count(*) operation is present and states the expected count of records. It works in combination with the "select the count of records" step.

Parameters
Name Type Description
count int

specifies the count of expected records

Examples
Then we expect the count of records to be 10

<inner> Then we expect the result to contain the following record

Description

Verifies that the present result contains the expected record provided as JSON-formatted string

Parameters
Name Type Description
JSON-formatted attachment

string representing the record

Examples
Then we expect the result to contain the following record

<inner> Then we expect the result to match

Description

Ensures the present result to match the specified structure provided as JSON-formatted string

Parameters
Name Type Description
expected attachment

specifies the expected result as JSON-formatted string

Examples
Then we expect the result to match

<inner> Then we expect the result to match partially

Description

Ensures the present result to match partially the specified structure provided as JSON-formatted string

Parameters
Name Type Description
expected attachment

specifies the expected result as JSON-formatted string

Examples
Then we expect the result to match partially

<inner> Then we expect the result to be sorted by {word}

Description

Ensures the present result is sorted by the specifield field

Parameters
Name Type Description
field word

specifies the name of the target filed

Examples
Then we expect the result to be sorted by Title

<inner> Then we expect the result to be sorted descending by {word}

Description

Ensures the present result is sorted descending by the specifield field

Parameters
Name Type Description
field word

specifies the name of the target filed

Examples
Then we expect the result to be sorted descending by Title

<inner> Then we expect the result to contain records

Description

Ensures the present result contains the specified records provided as a JSON-formatted string of an array with expected records

Parameters
Name Type Description
expected attachment

JSON-formatted string of an array with expected records

Examples
Then we expect the result to contain records
			"""
			[ { "category": 1 }, { "category": 2 } ]
			"""