22 Oct 2018.

An end-to-end test for your Alexa integration is easy to automate with Stb-tester. In this short video we issue commands to Alexa by playing pre-recorded audio files (“Alexa, play Mr. Robot”). Then we validate that the command was successful by looking at the video output from the set-top box (in this video, a Fire TV Stick).

For example:

Command Validation
Alexa, play Mr. Robot Wait for the player to launch; read the episode title from the player’s control overlay and check that it says “Mr. Robot”.
Alexa, next episode Read the episode number from the overlay, and check that it is one greater than the previous episode.
Alexa, jump forward 20 minutes Check the playhead position.