12
Archana Krushnan, Test Analyst Nihilent Technologies, Pune 1 Behaviour Driven Development along with Continuous Integration

Stc 2015 regional-round-ppt-bdd along with ci

Embed Size (px)

Citation preview

Page 1: Stc 2015 regional-round-ppt-bdd along with ci

Archana Krushnan, Test AnalystNihilent Technologies, Pune

1

Behaviour Driven Development along with Continuous Integration

Page 2: Stc 2015 regional-round-ppt-bdd along with ci

2

Introduction

BDD framework using Cucumber

Continuous integration with Jenkins

Need for BDD and its practical usage

Approach to building BDD framework with cucumber and Continuous integration with Jenkins

Pros and Cons of BDD

Conclusion

Page 3: Stc 2015 regional-round-ppt-bdd along with ci

3

Introduction to Behavior driven Development

Collaborates with both Testers and Business objectives

Bridge between business (User Stories) and automated tests

Useful in documentation of the current understanding of an existing system

Refined focus on the user's perspective

Makes tests easier to read and execute

Page 4: Stc 2015 regional-round-ppt-bdd along with ci

4

Page 5: Stc 2015 regional-round-ppt-bdd along with ci

5

Behavior Driven development with Cucumber Framework for writing and executing high level descriptions of your

software's functionality.

Used to write acceptance tests for web application

Allows automation of functional validation using Gherkin language in a understandable format (like plain English) to Business Analysts, Developers, Testers, etc.

Gherkin

extremely user-friendly like any of the human languages

feature descriptions can be written and/or understood by non-technical people involved in the project.

Gherkin serves two purposes — documentation and automated tests.

Page 6: Stc 2015 regional-round-ppt-bdd along with ci

6

Continuous integration with Jenkins Practice of accelerating commits and testing of code by software

developers

Regular schedulers which can run and execute the tests at regular intervals.

New enhancements and bug fixes can be easily tested and rolled out to production in an accelerated way.

Delay between bug reporting and fix to be rolled out is made faster.

Increases the ability of automation and makes testing just a click away

Page 7: Stc 2015 regional-round-ppt-bdd along with ci

7

Need for BDD and its practical usage Increases the ability of automation and makes testing just a click

away

Clears the specification in simple word

Communication problems and ambiguity is reduced.

Encourages better software quality

Reduces defect rejection rate

Page 8: Stc 2015 regional-round-ppt-bdd along with ci

8

Approach to BDD framework with cucumber and Jenkins

Step 1: User Story / Requirement Elicitation & Elaborationwith Customer(s) or Business Owner – Feature file output

Step 2: User Story (Feature file) Elaboration & Validation with QA

Step 3: Feature & Feature File Implementation by Developers/Testers

Step 4: Testers Test Functionality

Step 5: Acceptance by Business Owner

Step 6: Repeat (In Event of Requirement Changes)

Page 9: Stc 2015 regional-round-ppt-bdd along with ci

9

Pros and Cons of BDD

Pros

• It uses user friendly language and easy to run in case of small enhancements and changes.

• It can be easily run by BA’s , Developers, Testers.• Focus is on user scenarios, Complexity is hidden and adds value

to the project.

Cons

• It cannot be considered as replacement of unit tests and testing process.

• In case of failure, debugging is a bit complex

Page 10: Stc 2015 regional-round-ppt-bdd along with ci

10

References & Appendix

1.Beck, K. (2003). Test Driven Development by Example. Addison Wesley - Vaseem.2.North, D. (2006, March 1). Introducing BDD. Retrieved April 27, 2015, from http://dannorth.net/introducing-bdd/3.https://cucumber.io/4.https://jenkins-ci.org/

Page 11: Stc 2015 regional-round-ppt-bdd along with ci

11

Author Biography

Professional History and Credentials:

Archana Krushnan is currently working as Test Analyst at Nihilent Technologies Pvt Ltd. She has been in the field of Software Testing for 5 years and worked on several domains such as Telecom, Ecommerce and Healthcare. Her interests include exploring new things in testing and sharing on her blog. She has previous experiences of working with companies like Reliance Communications Ltd and Fab.com. She has good knowledge in Selenium, Jmeter and Soap UI. She is ISTQB Foundation Level Certified.

Page 12: Stc 2015 regional-round-ppt-bdd along with ci

12

Thank You!!!