September 2018
Intermediate to advanced
764 pages
20h 6m
English
First, add a new entry to the list of features in the Cucumber specification:
...And the payload of the response should be a stringAnd the payload object should be added to the database, grouped under the "user" typeAnd the newly-created user should be deleted
Next, define the corresponding step definition for this step. But first, we are going to modify the step definition that indexed the document, and change it to persist the document type in the context:
Then(/^the payload object should be added to the database, grouped under the "([a-zA-Z]+)" type$/, function (type, callback) { this.type = type; client.get({ index: 'hobnob' type: type, id: this.responsePayload }) ...});
Then, add a new step definition that uses ...
Read now
Unlock full access