/
Designveloper BDD Training Designveloper BDD Training

Designveloper BDD Training - PowerPoint Presentation

arya
arya . @arya
Follow
64 views
Uploaded On 2024-01-13

Designveloper BDD Training - PPT Presentation

October 2 nd October 3 rd 2014 Hung Vo CEO What is BDD Software development methodology based on TDD Benefit of BDD Easy to write test scenarios even customer can write Verbose easy to ID: 1039783

test development business write development test write business cucumber org bdd behat implement driven point http role behavior functionalities

Share:

Link:

Embed:

Download Presentation from below link

Download Presentation The PPT/PDF document "Designveloper BDD Training" is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.


Presentation Transcript

1. DesignveloperBDD TrainingOctober 2nd – October 3rd , 2014Hung Vo - CEO

2. What is BDDSoftware development methodology based on TDD

3. Benefit of BDDEasy to write test scenarios, even customer can write Verbose, easy to readFocus on behavior (business value of the app)

4. BDD vs TDDBDD (Behavior Driven Development)TDD (Test Driven Development)Acceptance testUnit testStand on user point of viewStand on developer point of viewRelated to business valueNot really related to business valueFocus on “WHAT”Focus on “HOW”Similarities:Write test, see it failed (red)Implement, make the test passed (green)Refactor and repeat above 2 steps

5. How to useTest runner: JS: Cucumber.js https://github.com/cucumber/cucumber-js PHP: Behat http://docs.behat.org/en/latest/ Ruby: Cucumber http://cukes.info/ Gherkins syntaxhttp://docs.behat.org/en/v2.5/guides/1.gherkin.htmlhttp://cukes.info/gherkin.htmlHeadless browsers: phantomjs, zombiejsReal browsers: selenium webdriver, nightwatchMixed: webdriver.ioBamboo

6. Some terms and conventionsUser storyAs a <role>, I want <some functionalities> so that <business value>In order to <business value>, as a <role>, I want <some functionalities>ScenarioScenario OutlineGiven: starting state of the scenarioWhen: some eventsThen: expected outcomesAnd: connection between multiple given, when, then statementsStep definition

7. DemoSetup:PhantomjsWebdriver.ioSelenium server standaloneChrome webdriverCucumberjsBamboo

8. Development procedureRepeat the followingStep 1: Write featuresStep 2: Write test scenariosStep 3: Implement featureStep4: Implement step definitionsNote: step 3 & 4 can be done interchangeably

9. Development procedureStep 1

10. Development procedureStep 2

11. Development produceStep 3 – 4

12. Referencehttps://bitbucket.org/designveloper/bdd-demo/srchttps://bitbucket.org/designveloper/bdd-demo/src/f6776081ed09550c01da854e1174ab9e33b075dd/packages/test-cucumber/?at=master