codeforequity-at / botium-bindings

The Selenium for Chatbots
http://www.botium.at
MIT License
108 stars 33 forks source link

Test case failing due to :Error: No Mock online #51

Closed kamrinkazi closed 6 years ago

kamrinkazi commented 6 years ago

`kamrink@kamrink-ub:~/Desktop/Projects/orange_gassistant_bot$ npm test

gassistant-bot@1.0.0 test /home/kamrink/Desktop/Projects/orange_gassistant_bot jasmine

Started (node:21088) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: No Mock online got Message: undefined FF

Failures: 1) TestMyBot Sample Conversation Test Suite should answer to hello Message: Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL. Stack: Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL. at ontimeout (timers.js:365:14) at tryOnTimeout (timers.js:237:5) at Timer.listOnTimeout (timers.js:207:5) Message: Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL. `

codeforequity-at commented 6 years ago

TestMyBot seems to lack configuration. How does your testmybot.json look like ?

kamrinkazi commented 6 years ago

{ "botium": { "Capabilities": { "PROJECTNAME": "gassistant-bot", "FACEBOOK_API": true, "FACEBOOK_WEBHOOK_PORT": 3000, "FACEBOOK_WEBHOOK_PATH": "webhook", "CLEANUPTEMPDIR": false, "STARTCMD": "node index.js" }, "Envs": { "NODE_TLS_REJECT_UNAUTHORIZED": 0, "NODE_ENV": "dev" } } }

kamrinkazi commented 6 years ago

I have tried with both 5000,3000 port

codeforequity-at commented 6 years ago

Please enable logging ("export DEBUG=botium,testmybot") and attach the log output

codeforequity-at commented 6 years ago

Any news?