Skip to content

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

@saileshemitrr

Description

@saileshemitrr

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions