September 2018
Intermediate to advanced
266 pages
7h 26m
English
To test this, we need to test three things:
Testing no cart name is very simple. We expect to get a response asking for the cart name:
{ "currentIntent": { "slots": { "cartName": null } }}
To test a non-existent cart name, we need to use a name that someone isn't going to use. We expect the response to say that a cart with that name couldn't be found:
{ "currentIntent": { "slots": { "cartName": "nonsense" } }}
The last test requires us to look in the Dynamo tables again. This time, we are looking for an order with a valid name. If we completed the tests for saveCart, we should have a cart called testCartSave. This request should get a response saying that the cart ...
Read now
Unlock full access