alexa-skill-test-framework icon indicating copy to clipboard operation
alexa-skill-test-framework copied to clipboard

Use AlexaSKill Test Framwork in Case of custom webhook (hosted in my server)

Open saileshemitrr opened this issue 6 years ago • 0 comments

Hello everyone, wanted to know what to pass for index for

alexaTest.initialize(index, appId, userId, deviceId)`

I am using my custom webhook using NodeJS. app.js -> router using alexa-verifer-middleware app.use('/alexa', require('./routes/alexa'));

routes/alexa router.post('/podcast', function(req, res) { const handlers = require('../handlers/alexaHandler'); if (!skill) { skill = Alexa.SkillBuilders.custom() .addRequestHandlers( handlers.LaunchRequestHandler, handlers.HelpHandler..... ).create();

handler/alexaHandler -> where all the functions are maintained like LaunchRequestHandlers and HelpIntent.

Please advice. Code is working fine but as it is becoming more complex planning to use a testing framework.

saileshemitrr avatar May 11 '19 06:05 saileshemitrr