Logo: Relish

  1. Sign in

Project: Gavel 3.0.0

Body - text example

  • @javascript
  • @stable
Background
Given
you define expected HTTP body using the following "textual example":
One, two, three, four.
Orange, strawberry, banana?
Dog, cat, mouse!
Scenarios
Line is missing in real payload body
When
real HTTP body is following:
One, two, three, four.
Orange, strawberry, banana?
Then
field "body" is NOT valid
And
Request or Response is NOT valid
Extra line in real payload textual body
When
real HTTP body is following:
Red, green, blue...
One, two, three, four.
Orange, strawberry, banana?
Dog, cat, mouse!
Then
field "body" is NOT valid
And
Request or Response is NOT valid
Line is changed in real textual body
When
real HTTP body is following:
Red, green, blue...
Orange, strawberry, banana?
Dog, cat, mouse!
Then
field "body" is NOT valid
And
Request or Response is NOT valid
Text in body equals defined example
When
real HTTP body is following:
One, two, three, four.
Orange, strawberry, banana?
Dog, cat, mouse!
Then
field "body" is valid
And
Request or Response is valid

Last published 1 day ago by honzajavorek.