Skip to content

Commit 9b00bc6

Browse files
author
Rob McCauley
committed
testflow readme
1 parent 172d84f commit 9b00bc6

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

testing/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ If the test works, you should see a formatted JSON response similar to this:
3636
#### TestFlow
3737
You can run a sequence of conversation events as a local test and view formatted results in your console window.
3838

39-
Go to [TestFlow](TestFlow/README.md#title)
39+
Go to [TestFlow](TestFlow)
4040

4141
<img src="https://m.media-amazon.com/images/G/01/cookbook/testflow_default._TTH_.png" alt="TestFlow" width="411" height="245">
4242

testing/TestFlow/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#### Testing
21
## TestFlow <a id="title"></a>
32

43
You can run your skill code through a sequence of test events to see how the conversation session flows.
@@ -28,7 +27,7 @@ Another example: *staterequest.txt*
2827
```
2928
LaunchRequest
3029
StateRequestIntent usstate=Vermont
31-
StateRequestIntent usstate=California
30+
StateRequestIntent usstate=New%20Jersey
3231
ISeeIntent animal=bear color=brown
3332
AMAZON.HelpIntent
3433
AMAZON.StopIntent
@@ -39,6 +38,8 @@ RecapIntent
3938
AMAZON.StopIntent
4039
```
4140

41+
Notice that slot values with spaces need to be encoded. Just add a ```%20``` to any spaces, such as ```usstate=New%20Jersey```
42+
4243
#### Running the test
4344

4445
1. Open a Terminal prompt (DOS prompt, or cmd.exe in Windows).

testing/TestFlow/dialogs/staterequest.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
LaunchRequest
22
StateRequestIntent usstate=Vermont
3-
StateRequestIntent usstate=California
3+
StateRequestIntent usstate=New%20Jersey
44
ISeeIntent animal=bear color=brown
55
AMAZON.HelpIntent
66
AMAZON.StopIntent

0 commit comments

Comments
 (0)