botium-bindings icon indicating copy to clipboard operation
botium-bindings copied to clipboard

Documentation should make it clear how to get started

Open juananpe opened this issue 6 years ago • 1 comments

Reading the home page of the project:

Samples. There are a couple of samples available, showing possible scenarios to use TestMyBot. For all samples, you these commands to run them:

> npm install
> npm run test

I would suggest three initial fixes:

  • Fix this typo: "For all samples, you these commands to run them:" --> "For all samples, you should type these commands to run them:"

  • What kind of test will it launch the first time? I mean, for the Facebook Messenger (fbdirect) case, if I understand correctly, you first must edit testmybot.json with your FB credentials and FB Page ID of the bot, then execute npm run emulator to create and save a conversation and finally, you type npm run test to automatically run the conversation again, this time as a test (output expected vs. output received). However, it seems that there is an already created conversation there: testmybot/samples/fbdirect/spec/convo/simplecalc.convo.txt. I think that this is for testing the sample bot provided with botium, isn't it? But I'm a little bit confused here. Could you clarify this in the markdown text?

  • The markdown for the FBdirect page links to an outdated article. For example, in "Step 2" it suggest to run node node_modules/testmybot-chat/index.js but that directory is not there anymore (it's called testmybot, not testmybot-chat) and (please, correct me if I am wrong) the emulator is not longer launched with that command but with this one:

> npm install
> npm run emulator

Could it be possible to copy the text from chatbotsmagazine.com article in a wiki page so we can propose pull requests to update it (and keep it updated)?

This kind of small documentation fixes could help onboarding project newcomers (like myself!)

juananpe avatar Apr 30 '18 10:04 juananpe

Awesome feedback, thank you. A while ago we split up the codebase, now there is not only testmybot, but testmybot, botium-core, botium-cli, botium-utterances ... and there is more to come. It is very very true that documentation and blog articles are partially outdated or not relevant anymore.

The Botium Wiki is up-to-date (but not yet comprehensive), and it is planned to be the premium source of information. As TestMyBot really is just a thin wrapper around Botium, TestMyBot documentation could be very thin as well ... by the way, the Push/Pull/Merge-Cycle doesn't apply to the Wiki

codeforequity-at avatar Apr 30 '18 16:04 codeforequity-at