Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
---
configuration: # This is the configuration section, you can define your locale or the mocks here
locale: en-US
---
- test: Launch request, play once with one player and stop. # Some metadata about this test sequence
- LaunchRequest: how many persons are playing today? # In the left part we have the utterance, in this case it's a reserved word
- one: please tell us your name # In the right part we have the expected result
- jordi: # If we want to test several items within the response we do it like this ...
- prompt: "let's start the game: jordi your product is Fitbit Charge 2 HR* Guess the price"
- response.card.title: "Your product is: Fitbit Charge 2 HR"
- response.card.image.largeImageUrl: "https://images-na.ssl-images-amazon.com/images/I/51NC9OeIr7L._SL1080_.jpg"
- response.card.text: "Your product description is: A wristband worn health tracker and heart rate monitor, Fitbit Charge 2 HR helps you maximize your workout, better track calorie burn, get a snapshot of your cardio fitness and track your sleep."
- 240: You said 240 , the actual price was 149 dollars. Your score for that answer is 0 points. Your next product is * Guess the price
- stop: Goodbye! # A typical YAML sentence is composed by 2 parts separated by a colon
---
- test: Launch request, play once with two players and cancel.
- LaunchRequest: how many persons are playing today
- 2: contestant one please tell us, what is your name
- jordi: Contestant 2 please tell us, what is your name
- caterina: "let's start the game: jordi your product is Fitbit Charge 2 HR* Guess the price" # Quotes because there is a colon in the right part
- 149: you said 149 , the actual price was 149 dollars. Your score for that answer is 1000 points. Now is caterina turn
- 4143: Now is jordi turn. Your next product is
- cancel: Goodbye!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment