Presentation is loading. Please wait.

Presentation is loading. Please wait.

Freshen your test cases Kausikram Krishnasayee

Similar presentations


Presentation on theme: "Freshen your test cases Kausikram Krishnasayee"— Presentation transcript:

1 Freshen your test cases Kausikram Krishnasayee kausikram@silverstripesoftware.com http://kausikram.in

2 What are we going to do ● Introduce BDD ● Introduce BDD in Python ● Understand Freshen ● Get our hands dirty with Freshen ● Write Selenium tests in Freshen

3 What is B.D.D? BDD is a second-generation, outside-in, pull- based, multiple-stakeholder, multiple-scale, high- automation, agile methodology. It describes a cycle of interactions with well-defined outputs, resulting in the delivery of working, tested software that matters.

4 What is BDD? ● An extension to T.D.D ● In which test cases are written in natural language ● With terms specific to the domain of development ● So that the developers and everyone else get a holistic idea of things.

5 So Why Should I care about it ?

6 Reason 1: Your CIO decided a change in platforms.

7 Reason 2: Your manager understands it.

8 Reason 3: Your Co Programmer understands it.

9 Reason 4: It makes maintenance of test cases easier and event driven the way acceptance tests ought to be.

10 Python BDD Frameworks ● Freshen ● Lettuce ● Pyccuracy ● Pyhistorian ● PyCukes

11 Freshen ● It is a BDD Frame work ● It is a nose Plugin ● It is open enough to play around with ● It is flexible enough to play around with.

12 Parts of a Freshen Test ●.feature File – Containing the test case ● step.py File – Defining steps involved in the test.

13 The Feature File ● Feature Part: Defines the feature going to be tested. ● Scenario: Defines each and every test case scenario.

14 Action: Lets write code!!

15 DRY: the Before and the Background

16 The context variables ● glc – Global Scope ● ftc – Feature Level Scope ● scc – Scenario Level Scope

17 Step Argument Transforms

18 Best of both worlds Selenium + Freshen

19 Thank you!!!


Download ppt "Freshen your test cases Kausikram Krishnasayee"

Similar presentations


Ads by Google