September 2018
Intermediate to advanced
764 pages
20h 6m
English
Next, we must ensure that both our email and password fields are of type string and that the email address is formatted correctly. Have a go at defining a new scenario outline for this, and compare it to the following solution:
Scenario Outline: Request Payload with Properties of Unsupported Type When the client creates a POST request to /users And attaches a Create User payload where the <field> field is not a <type> And sends the request Then our API should respond with a 400 HTTP status code And the payload of the response should be a JSON object And contains a message property which says "The email and password fields must be of type string" Examples: | field | type | | email | string | | password | string |
Again, ...
Read now
Unlock full access