{"id":15524447,"url":"https://github.com/codeforequity-at/botium-bdd-samples","last_synced_at":"2026-07-04T14:31:54.586Z","repository":{"id":91176266,"uuid":"131124127","full_name":"codeforequity-at/botium-bdd-samples","owner":"codeforequity-at","description":"Botium BDD Samples","archived":false,"fork":false,"pushed_at":"2018-04-27T09:11:14.000Z","size":48,"stargazers_count":1,"open_issues_count":2,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-02T20:01:58.761Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codeforequity-at.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-26T08:25:51.000Z","updated_at":"2020-09-01T09:32:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"5e7f30e1-26c7-4981-894e-b8e2832aafe6","html_url":"https://github.com/codeforequity-at/botium-bdd-samples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codeforequity-at/botium-bdd-samples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeforequity-at%2Fbotium-bdd-samples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeforequity-at%2Fbotium-bdd-samples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeforequity-at%2Fbotium-bdd-samples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeforequity-at%2Fbotium-bdd-samples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codeforequity-at","download_url":"https://codeload.github.com/codeforequity-at/botium-bdd-samples/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeforequity-at%2Fbotium-bdd-samples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35125718,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-04T02:00:05.987Z","response_time":113,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T10:51:21.328Z","updated_at":"2026-07-04T14:31:54.571Z","avatar_url":"https://github.com/codeforequity-at.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Botium BDD Samples\n\nRepository contains sample code for testing a chatbot with [Cucumber](https://cucumber.io/)\n\n_Repository is using the [Calculator Chatbot Sample](https://github.com/codeforequity-at/testmybot-sample-calculator)_\n\n## Usage instructions\n\n* Pull repository from Github or download and unpack\n* Install/Configure [Docker](https://www.docker.com/) - see [Botium Wiki](https://github.com/codeforequity-at/botium-core/wiki) for possible other configurations and use cases\n* Install/Configure [Node.js](https://nodejs.org) (\u003e 6.0)\n* Open command line window to install dependencies and run the feature tests\n\n```\n\u003e npm install\n\u003e npm run test\n```\n\nOutput will show passed scenarios:\n```\n[xxx@ip-xx-xx-xx-xxx botium-bdd-samples]$ npm run test\n\n\u003e botium-bdd-samples@1.0.0 test /home/xxx/botium-bdd-samples\n\u003e cucumber-js\n\n..............................\n\n5 scenarios (5 passed)\n20 steps (20 passed)\n1m11.328s\n```\n\n## Insights\n\nFeature files are written in [Gherkin](https://github.com/cucumber/cucumber/wiki/Gherkin):\n\n```\nFeature: User feedback\n  Getting feedback from the user after calculation\n\n  Scenario: User confirms correctnes\n    When bot does a calculation\n\tAnd bot asks for feedback\n\tAnd user accepts result\n    Then bot should accept\n\n  Scenario: Bot shows self confidence\n    When bot does a calculation\n\tAnd bot asks for feedback\n\tAnd user declines result\n    Then bot should insist\n```\n\nStep definitions are written in Javascript with [Botium](https://www.botium.at) - see [Botium Wiki](https://github.com/codeforequity-at/botium-core/wiki/) for more information\n\n```\nWhen('bot does a calculation', function () {\n  global.driverFluent\n    .UserSaysText('start')\n    .WaitBotSaysText((text) =\u003e assert.equal(text, 'I can do a very advanced scientific calculations for you (\"Addition\").'))\n    .WaitBotSaysText((text) =\u003e assert.equal(text, 'Please tell me the first number!'))\n    .UserSaysText('1')\n    .WaitBotSaysText((text) =\u003e assert.equal(text, 'Please tell me the second number!'))\n    .UserSaysText('1')\n    .WaitBotSaysText((text) =\u003e assert.equal(text, '1 + 1 = 2'));\n  return Exec();\n});\nWhen('bot asks for feedback', function () {\n  global.driverFluent\n    .WaitBotSaysText((text) =\u003e assert.equal(text, 'Is this correct ?'));\n  return Exec();\n});\nWhen('user accepts result', function () {\n  global.driverFluent\n    .UserSaysText('yes')\n    .WaitBotSaysText((text) =\u003e this.botResponse = text);\n  return Exec();\n});\nWhen('user declines result', function () {\n  global.driverFluent\n    .UserSaysText('no')\n    .WaitBotSaysText((text) =\u003e this.botResponse = text);\n  return Exec();\n});\nThen('bot should accept', function () {\n  assert.equal(this.botResponse, `I know.`);\n});\nThen('bot should insist', function () {\n  assert.equal(this.botResponse, `You are wrong. I know that this is correct!`);\n});\n```\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeforequity-at%2Fbotium-bdd-samples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeforequity-at%2Fbotium-bdd-samples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeforequity-at%2Fbotium-bdd-samples/lists"}