question

jjaquinta avatar image
jjaquinta asked

Echo Simulator!

Want to write an Echo app, but don't have hardware for each of your developers? Want to test your Echo app, but can't talk in your work environment? Want to automate your Echo testing? I have written an desktop application that simulates the Echo. After you've given it your end point, intent schema, and utterances file, you can type sentences into it as if you had spoken. It will query your application using the Echo protocol, and display the answer. It's kind of primitive right now, and the UI is atrocious. But even at a minimum-viable-product stage it's a lot more intuitive to use than curl! Please try it out, and raises problems and suggestions on the issue tracker. If you are interested in contributing, just clone the repository and have at it. You can contact me on the forum here or at jo@111george.com if you have any questions. https://github.com/jjaquinta/EchoSim/releases
alexa skills kitshowcase
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

James Chivers avatar image
James Chivers answered
Yeah! This is awesome jjaquinta; I'm going to try and make time this weekend to give it a spin on my apps and will report back - can see it becoming a really helpful dev tool. Thanks for sharing!
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

The Stig avatar image
The Stig answered
Thank you jjaquinta! I'll definitely try this out sometime this week.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

jjaquinta avatar image
jjaquinta answered
Lots of updates. The UI is much easier to use, flows better, and there aren't long pauses anymore. I've been able to get it to work with both a locally run test server and a production AWS server. Note, you need to turn off certificate authentication because, obviously, the simulator isn't running inside of Amazon! If you are using the standard help function in Java, you can do this by putting this into your servlet class: static { System.setProperty(Sdk.DISABLE_REQUEST_SIGNATURE_CHECK_SYSTEM_PROPERTY, "true"); System.setProperty(Sdk.SUPPORTED_APPLICATION_IDS_SYSTEM_PROPERTY, ""); System.setProperty(Sdk.TIMESTAMP_TOLERANCE_SYSTEM_PROPERTY, ""); } A session log may now be saved or loaded. This can be used to define how to recreate problems and attached to a defect report. Eventually I'll add in a "playback" option so that problems may be re-created from such transcripts. It also now supports a most-recently-used list which makes it easier to work with multiple applications. You can also cut and paste application definitions from the clipobard. For example you can copy the text below, paste it in, and try out my Colossal Cave app: {"Endpoint":"https:\/\/ joawstestenv-8n6ctsz8mw.elasticbeanstalk.com\/cc","IntentURI":"https:\/\/ joawstestenv-8n6ctsz8mw.elasticbeanstalk.com\/data\/cc\/ColossalCave.json","UtteranceURI":"https:\/\/ joawstestenv-8n6ctsz8mw.elasticbeanstalk.com\/data\/cc\/ColossalCave.baf","Name":"Colossal Cave"} The most recently release can be downloaded from: https://github.com/jjaquinta/EchoSim/releases/tag/v0.0.4 Please message me here or add an issue to github for any problems you find.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

D. Austin avatar image
D. Austin answered
Sweet! I can't wait to try this out. Between this and AWS Lambda I plan on writing my first "app" before my device even arrives (sometime next week!) d
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

jjaquinta avatar image
jjaquinta answered
Posted a new release 0.0.5 that now supports record and playback. You can exercise your Echo app's API through the test screen. Then, on the Script page you can import what you did, edit it, mark-up responses that were errors, and save it as a script file. You can then re-execute the same sequence of commands. It will display if all responses matched (or did not match) or original input. I've found it handy for quickly re-creating problems so I can asses if test my changes to see if they are fixed. Additionally I'm using it to build test cases for my regression suite.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

The Stig avatar image
The Stig answered
Not sure if you've seen this - http://www.twitch.tv/boardworks/ I [i]think[/i] they're running your simulator for this.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

jjaquinta avatar image
jjaquinta answered
I'm not so sure what they're doing. I don't think it's EchoSim. I'm not as fancy as all that. :-) But, just released 0.0.6, and it now supports letting you change your ApplicationID and UserID.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

indieshack avatar image
indieshack answered
Sounds great, how do I use/start it? It's Java, correct?
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

jjaquinta avatar image
jjaquinta answered
Just go to releases and download the latest jar file. You should just be able to run it. It's all Swing UI, so any Java should do. I'll be posting a new release later tonight. Mostly cleaning up the Test panel UI. Not worth waiting for.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

jjaquinta avatar image
jjaquinta answered
Just packaged a release, and wrote a proper readme: https://github.com/jjaquinta/EchoSim Test Suites let you wrap together several scripts and run them at once. I also added a way to directly call a function instead of a service. If you load up EchoSim in your development environment you can use it to test your code immediately and live. It really turbo-charges development. No more uploading anything.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.