Testing our Lambda
With the last skill, the Lambda was simple enough that we could get away with not testing it. This Lambda is more complicated, with multiple places where we could have an error, so we're going test it properly.
In the Lambda console, find your function and open it up. Once inside, click on the dropdown next to Test and choose Configure test events. Make sure that the Create new test event option is selected and we can use a template of Alexa Intent - GetNewFact.
Most of the template can be left as default, but we need to change the slots and intentName (lines 20 and 21) as well as the application IDs (lines 10 and 35). Start by changing intentName to equal the intent that we created (whichCar). Next, we can add the slots ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access