Automated Test Framework with Cucumber

Automated Test Framework
with Cucumber
PROJECT WORK PRESENTATION
Ramesh Krishnan G
2014HT12514
Agenda
 Objective
 Existing Problem
 Proposed Solution
 Why this Project ?
 Cucumber Automation Tool
 Cucumber Testing Stack
 Framework Architecture
 Cucumber Workflow
 Test Reports
 Summary and Conclusion
 Directions for the future
Objective
The Objective of Automated Test Framework with Cucumber are as follows:
 To reduce the gap between software developers and stakeholders
 To overcome the disadvantages of existing automation tool QTP
 To reduce Testing Cost and Time
 To improve Test Coverage
 To reduce Redundancy
 To gain confidence in the system
 To reduce the number of defects found by users
 To run regression test overnight and weekends
Existing Problem
 Producer Gap - Difference between what is specified vs what is delivered
 Customer Gap - Difference between what the producers actually delivered vs
what the customer wanted
Proposed Solution
 Cucumber is a software tool based on Behavior Driven Development (BDD)
model which is used to write acceptance tests for web application
 Allows automation of functional validation in easily readable and
understandable format (like plain English) to Stakeholders, Business Analysts,
Developers, Testers, etc.
 The test suites are then translated into the programming language by
Cucumber, which supports multiple programming and scripting languages.
Why this Project ?
 Need to deliver the project using a good reliable tool which is open source
 Management should understand what the project does. Using Cucumber a
layman can understand what the test case is.
 Deliver quickly with a high standard compared to QTP
 In agile development process, cucumber is more useful to validate the
requirements
 Software Testers with less coding knowledge can use this framework to develop
the test suites
Cucumber Automation Tool
 Tool that executes plain text functional descriptions as automated test
 Runs automated acceptance test on Web applications
 Language that Cucumber understands is called “Gherkin”
 Cucumber Test are written in a file called Feature
 Feature file contains list of test scenarios
 Each line in a scenario is called step which are defined with the help of “Given”,
“When”, “Then” and “And” keywords
 Step Defintion is a place where the automation codes are written for steps
 Steps in the feature file are directly mapped to step definitions
 Step definition is a block of code written with any one of the programming
language such as Java or Ruby
Simple Cucumber Test
Feature: E-Commerce Application
Scenario: Users should see sign out button once signed in
Given I open the Login page of the application
When I enter valid credentials and click sign-in button
Then I verify the application Home Page is displayed
And I verify the sign out button is displayed at bottom of home page
Cucumber Testing Stack
Setting up Environment
Step 1: Download and Install Java and Java Development Kit
Step 2: Setup Java Runtime Environment
Step 3: Install and Configure Maven
Step 4: Download and Configure Eclipse IDE
Step 5: Install Plugins for Eclipse IDE
Step 6: Create New Maven Project
Step 7: Configure Cucumber and Selenium with Maven Project
Cucumber Framework Architecture
Folder Structure
Cucumber Workflow
Key Feature of Framework
 Page Object Model is used as design pattern to capture the object repository for
web elements
 Reusable step definitions can be developed and used for any web applications
 Extent Report is used to for Report Generation
 Test Reports will be placed in target folder
 If test scenario fails, the screen for each failed scenario will be taken and placed in
Screenshots folder
 Email will be delivered to mail ids with test report
 Integrated with Jenkins, a Continuous Integration Tool which is used to schedule
test and separate cucumber reports also be generated
 Cross Browser Testing
Extend Report
Jenkins Workflow
Jenkin Cucumber Report
Summary & conclusion
 Automated Testing with cucumber minimizes the software quality gap and
reduces the communication gap between the developers and stakeholders
 The Functional and Unit testing for the web applications has become easy
with this framework which minimizes the human effort involved in testing
and to overcome the disadvantages of testing made with UFT/QTP tool
 Automation team can be formed with Software Testers with less coding
knowledge or no coding knowledge
Directions for the future
 This automation framework can be enhanced to do automation in multiple
browsers and parallel execution with help of Selenium Grid
 Selenium Grid provides the flexibility to distribute the test cases for
execution. It reduces the batch processing time.
 Further, this project can be enhanced by deploying the automation test
source code in a common server which is accessible by all the team
members and integrated with the help of Source tree
Demo
Questions?
Thank you 
1 de 22

Recomendados

Automation test framework with cucumber – BDD por
Automation test framework with cucumber – BDDAutomation test framework with cucumber – BDD
Automation test framework with cucumber – BDD123abcda
1.1K visualizações17 slides
Cucumber ppt por
Cucumber pptCucumber ppt
Cucumber pptQwinix Technologies
18K visualizações17 slides
BDD with Cucumber por
BDD with CucumberBDD with Cucumber
BDD with CucumberKnoldus Inc.
15.8K visualizações15 slides
Introduction to Bdd and cucumber por
Introduction to Bdd and cucumberIntroduction to Bdd and cucumber
Introduction to Bdd and cucumberNibu Baby
3K visualizações26 slides
Test Automation Framework with BDD and Cucumber por
Test Automation Framework with BDD and CucumberTest Automation Framework with BDD and Cucumber
Test Automation Framework with BDD and CucumberRhoynar Software Consulting
4.4K visualizações21 slides
Cucumber presenation por
Cucumber presenationCucumber presenation
Cucumber presenationOussama BEN WAFI
3.2K visualizações20 slides

Mais conteúdo relacionado

Mais procurados

Cucumber Tool por
Cucumber ToolCucumber Tool
Cucumber ToolSohail Ahmed
976 visualizações17 slides
Cucumber & gherkin language por
Cucumber & gherkin languageCucumber & gherkin language
Cucumber & gherkin languageselvanathankapilan
3.9K visualizações19 slides
Cucumber BDD por
Cucumber BDDCucumber BDD
Cucumber BDDPravin Dsilva
2.6K visualizações30 slides
Test automation por
Test automationTest automation
Test automationXavier Yin
1.4K visualizações24 slides
Test Automation and Selenium por
Test Automation and SeleniumTest Automation and Selenium
Test Automation and SeleniumKarapet Sarkisyan
2.4K visualizações21 slides
Selenium test automation por
Selenium test automationSelenium test automation
Selenium test automationSrikanth Vuriti
2.1K visualizações20 slides

Mais procurados(20)

Cucumber Tool por Sohail Ahmed
Cucumber ToolCucumber Tool
Cucumber Tool
Sohail Ahmed976 visualizações
Cucumber & gherkin language por selvanathankapilan
Cucumber & gherkin languageCucumber & gherkin language
Cucumber & gherkin language
selvanathankapilan3.9K visualizações
Cucumber BDD por Pravin Dsilva
Cucumber BDDCucumber BDD
Cucumber BDD
Pravin Dsilva2.6K visualizações
Test automation por Xavier Yin
Test automationTest automation
Test automation
Xavier Yin1.4K visualizações
Test Automation and Selenium por Karapet Sarkisyan
Test Automation and SeleniumTest Automation and Selenium
Test Automation and Selenium
Karapet Sarkisyan2.4K visualizações
Selenium test automation por Srikanth Vuriti
Selenium test automationSelenium test automation
Selenium test automation
Srikanth Vuriti2.1K visualizações
What Is Cucumber? por QATestLab
What Is Cucumber?What Is Cucumber?
What Is Cucumber?
QATestLab565 visualizações
Test Automation Framework using Cucumber BDD overview (part 1) por Mindfire Solutions
Test Automation Framework using Cucumber BDD overview (part 1)Test Automation Framework using Cucumber BDD overview (part 1)
Test Automation Framework using Cucumber BDD overview (part 1)
Mindfire Solutions2.4K visualizações
Selenium por Batch2016
SeleniumSelenium
Selenium
Batch2016438 visualizações
Introduction to selenium por Archana Krushnan
Introduction to seleniumIntroduction to selenium
Introduction to selenium
Archana Krushnan7.1K visualizações
Selenium ppt por Aneesh Rangarajan
Selenium pptSelenium ppt
Selenium ppt
Aneesh Rangarajan2.4K visualizações
Introduction to Selenium Web Driver por Return on Intelligence
Introduction to Selenium Web DriverIntroduction to Selenium Web Driver
Introduction to Selenium Web Driver
Return on Intelligence48.8K visualizações
Automated Testing vs Manual Testing por Directi Group
Automated Testing vs Manual TestingAutomated Testing vs Manual Testing
Automated Testing vs Manual Testing
Directi Group33.4K visualizações
TestComplete – A Sophisticated Automated Testing Tool by SmartBear por Software Testing Solution
TestComplete – A Sophisticated Automated Testing Tool by SmartBearTestComplete – A Sophisticated Automated Testing Tool by SmartBear
TestComplete – A Sophisticated Automated Testing Tool by SmartBear
Software Testing Solution1.6K visualizações
Selenium por Kalyan ch
SeleniumSelenium
Selenium
Kalyan ch6.4K visualizações
Web automation using selenium.ppt por Ana Sarbescu
Web automation using selenium.pptWeb automation using selenium.ppt
Web automation using selenium.ppt
Ana Sarbescu2.1K visualizações
Postman por Igor Shubovych
PostmanPostman
Postman
Igor Shubovych7.5K visualizações
Selenium ppt por Naga Dinesh
Selenium pptSelenium ppt
Selenium ppt
Naga Dinesh506 visualizações

Similar a Automated Test Framework with Cucumber

HP Software Testing project (Advanced) por
HP Software Testing project (Advanced)HP Software Testing project (Advanced)
HP Software Testing project (Advanced)Lokesh Singrol
520 visualizações32 slides
Automation Testing with Test Complete por
Automation Testing with Test CompleteAutomation Testing with Test Complete
Automation Testing with Test CompleteVartika Saxena
12.3K visualizações44 slides
Testing project (basic) por
Testing project (basic)Testing project (basic)
Testing project (basic)Lokesh Singrol
198 visualizações19 slides
Upstream testing. por
Upstream testing.Upstream testing.
Upstream testing.Mindtree Ltd.
730 visualizações4 slides
Getting Started With QA Automation por
Getting Started With QA AutomationGetting Started With QA Automation
Getting Started With QA AutomationGiovanni Scerra ☃
271 visualizações25 slides
Mohseen Ali por
Mohseen AliMohseen Ali
Mohseen AliMohseen Ahemad
95 visualizações7 slides

Similar a Automated Test Framework with Cucumber(20)

HP Software Testing project (Advanced) por Lokesh Singrol
HP Software Testing project (Advanced)HP Software Testing project (Advanced)
HP Software Testing project (Advanced)
Lokesh Singrol520 visualizações
Automation Testing with Test Complete por Vartika Saxena
Automation Testing with Test CompleteAutomation Testing with Test Complete
Automation Testing with Test Complete
Vartika Saxena12.3K visualizações
Testing project (basic) por Lokesh Singrol
Testing project (basic)Testing project (basic)
Testing project (basic)
Lokesh Singrol198 visualizações
Upstream testing. por Mindtree Ltd.
Upstream testing.Upstream testing.
Upstream testing.
Mindtree Ltd. 730 visualizações
Getting Started With QA Automation por Giovanni Scerra ☃
Getting Started With QA AutomationGetting Started With QA Automation
Getting Started With QA Automation
Giovanni Scerra ☃271 visualizações
Mohseen Ali por Mohseen Ahemad
Mohseen AliMohseen Ali
Mohseen Ali
Mohseen Ahemad95 visualizações
Open Source Software Testing Tools por Varuna Harshana
Open Source Software Testing ToolsOpen Source Software Testing Tools
Open Source Software Testing Tools
Varuna Harshana14.5K visualizações
CucumberSeleniumWD por Vikas Sarin
CucumberSeleniumWDCucumberSeleniumWD
CucumberSeleniumWD
Vikas Sarin275 visualizações
Resume 2 year por pawan kumar
Resume  2 yearResume  2 year
Resume 2 year
pawan kumar299 visualizações
[DevDay 2017] Automation Testing - Speaker: Nghia Khuong - Project Manager at... por DevDay.org
[DevDay 2017] Automation Testing - Speaker: Nghia Khuong - Project Manager at...[DevDay 2017] Automation Testing - Speaker: Nghia Khuong - Project Manager at...
[DevDay 2017] Automation Testing - Speaker: Nghia Khuong - Project Manager at...
DevDay.org392 visualizações
Future of QA por amitagarwal2006
Future of QAFuture of QA
Future of QA
amitagarwal2006479 visualizações
Futureofqa por amitagarwal2006
FutureofqaFutureofqa
Futureofqa
amitagarwal2006260 visualizações
Automation testing por Arta Doci
Automation testingAutomation testing
Automation testing
Arta Doci1.2K visualizações
Webapp Automation Testing of performance marketing and media platform por Knoldus Inc.
Webapp Automation Testing of performance marketing and media platformWebapp Automation Testing of performance marketing and media platform
Webapp Automation Testing of performance marketing and media platform
Knoldus Inc.15 visualizações
Unit Testing Essay por Dani Cox
Unit Testing EssayUnit Testing Essay
Unit Testing Essay
Dani Cox2 visualizações
SELENIUM or QTP Which is a Best Automation Tool for Your Business ? por JanBask Training
SELENIUM or QTP Which is a Best Automation Tool for Your Business ?SELENIUM or QTP Which is a Best Automation Tool for Your Business ?
SELENIUM or QTP Which is a Best Automation Tool for Your Business ?
JanBask Training103 visualizações
Software Testing: History, Trends, Perspectives - a Brief Overview por Softheme
Software Testing: History, Trends, Perspectives - a Brief OverviewSoftware Testing: History, Trends, Perspectives - a Brief Overview
Software Testing: History, Trends, Perspectives - a Brief Overview
Softheme7.2K visualizações
Improving ROI with Scriptless Test Automation por Mindfire LLC
Improving ROI with Scriptless Test AutomationImproving ROI with Scriptless Test Automation
Improving ROI with Scriptless Test Automation
Mindfire LLC64 visualizações

Último

[2023] Putting the R! in R&D.pdf por
[2023] Putting the R! in R&D.pdf[2023] Putting the R! in R&D.pdf
[2023] Putting the R! in R&D.pdfEleanor McHugh
38 visualizações127 slides
.conf Go 2023 - Data analysis as a routine por
.conf Go 2023 - Data analysis as a routine.conf Go 2023 - Data analysis as a routine
.conf Go 2023 - Data analysis as a routineSplunk
93 visualizações12 slides
AI: mind, matter, meaning, metaphors, being, becoming, life values por
AI: mind, matter, meaning, metaphors, being, becoming, life valuesAI: mind, matter, meaning, metaphors, being, becoming, life values
AI: mind, matter, meaning, metaphors, being, becoming, life valuesTwain Liu 刘秋艳
35 visualizações16 slides
Empathic Computing: Delivering the Potential of the Metaverse por
Empathic Computing: Delivering  the Potential of the MetaverseEmpathic Computing: Delivering  the Potential of the Metaverse
Empathic Computing: Delivering the Potential of the MetaverseMark Billinghurst
470 visualizações80 slides
Perth MeetUp November 2023 por
Perth MeetUp November 2023 Perth MeetUp November 2023
Perth MeetUp November 2023 Michael Price
15 visualizações44 slides
Uni Systems for Power Platform.pptx por
Uni Systems for Power Platform.pptxUni Systems for Power Platform.pptx
Uni Systems for Power Platform.pptxUni Systems S.M.S.A.
50 visualizações21 slides

Último(20)

[2023] Putting the R! in R&D.pdf por Eleanor McHugh
[2023] Putting the R! in R&D.pdf[2023] Putting the R! in R&D.pdf
[2023] Putting the R! in R&D.pdf
Eleanor McHugh38 visualizações
.conf Go 2023 - Data analysis as a routine por Splunk
.conf Go 2023 - Data analysis as a routine.conf Go 2023 - Data analysis as a routine
.conf Go 2023 - Data analysis as a routine
Splunk93 visualizações
AI: mind, matter, meaning, metaphors, being, becoming, life values por Twain Liu 刘秋艳
AI: mind, matter, meaning, metaphors, being, becoming, life valuesAI: mind, matter, meaning, metaphors, being, becoming, life values
AI: mind, matter, meaning, metaphors, being, becoming, life values
Twain Liu 刘秋艳35 visualizações
Empathic Computing: Delivering the Potential of the Metaverse por Mark Billinghurst
Empathic Computing: Delivering  the Potential of the MetaverseEmpathic Computing: Delivering  the Potential of the Metaverse
Empathic Computing: Delivering the Potential of the Metaverse
Mark Billinghurst470 visualizações
Perth MeetUp November 2023 por Michael Price
Perth MeetUp November 2023 Perth MeetUp November 2023
Perth MeetUp November 2023
Michael Price15 visualizações
Uni Systems for Power Platform.pptx por Uni Systems S.M.S.A.
Uni Systems for Power Platform.pptxUni Systems for Power Platform.pptx
Uni Systems for Power Platform.pptx
Uni Systems S.M.S.A.50 visualizações
Architecting CX Measurement Frameworks and Ensuring CX Metrics are fit for Pu... por NUS-ISS
Architecting CX Measurement Frameworks and Ensuring CX Metrics are fit for Pu...Architecting CX Measurement Frameworks and Ensuring CX Metrics are fit for Pu...
Architecting CX Measurement Frameworks and Ensuring CX Metrics are fit for Pu...
NUS-ISS37 visualizações
STPI OctaNE CoE Brochure.pdf por madhurjyapb
STPI OctaNE CoE Brochure.pdfSTPI OctaNE CoE Brochure.pdf
STPI OctaNE CoE Brochure.pdf
madhurjyapb12 visualizações
DALI Basics Course 2023 por Ivory Egg
DALI Basics Course  2023DALI Basics Course  2023
DALI Basics Course 2023
Ivory Egg14 visualizações
Report 2030 Digital Decade por Massimo Talia
Report 2030 Digital DecadeReport 2030 Digital Decade
Report 2030 Digital Decade
Massimo Talia14 visualizações
.conf Go 2023 - How KPN drives Customer Satisfaction on IPTV por Splunk
.conf Go 2023 - How KPN drives Customer Satisfaction on IPTV.conf Go 2023 - How KPN drives Customer Satisfaction on IPTV
.conf Go 2023 - How KPN drives Customer Satisfaction on IPTV
Splunk88 visualizações
Black and White Modern Science Presentation.pptx por maryamkhalid2916
Black and White Modern Science Presentation.pptxBlack and White Modern Science Presentation.pptx
Black and White Modern Science Presentation.pptx
maryamkhalid291614 visualizações
Beyond the Hype: What Generative AI Means for the Future of Work - Damien Cum... por NUS-ISS
Beyond the Hype: What Generative AI Means for the Future of Work - Damien Cum...Beyond the Hype: What Generative AI Means for the Future of Work - Damien Cum...
Beyond the Hype: What Generative AI Means for the Future of Work - Damien Cum...
NUS-ISS34 visualizações
Business Analyst Series 2023 - Week 3 Session 5 por DianaGray10
Business Analyst Series 2023 -  Week 3 Session 5Business Analyst Series 2023 -  Week 3 Session 5
Business Analyst Series 2023 - Week 3 Session 5
DianaGray10209 visualizações
Future of Learning - Yap Aye Wee.pdf por NUS-ISS
Future of Learning - Yap Aye Wee.pdfFuture of Learning - Yap Aye Wee.pdf
Future of Learning - Yap Aye Wee.pdf
NUS-ISS41 visualizações
TouchLog: Finger Micro Gesture Recognition Using Photo-Reflective Sensors por sugiuralab
TouchLog: Finger Micro Gesture Recognition  Using Photo-Reflective SensorsTouchLog: Finger Micro Gesture Recognition  Using Photo-Reflective Sensors
TouchLog: Finger Micro Gesture Recognition Using Photo-Reflective Sensors
sugiuralab15 visualizações
Attacking IoT Devices from a Web Perspective - Linux Day por Simone Onofri
Attacking IoT Devices from a Web Perspective - Linux Day Attacking IoT Devices from a Web Perspective - Linux Day
Attacking IoT Devices from a Web Perspective - Linux Day
Simone Onofri15 visualizações
handbook for web 3 adoption.pdf por Liveplex
handbook for web 3 adoption.pdfhandbook for web 3 adoption.pdf
handbook for web 3 adoption.pdf
Liveplex19 visualizações
RADIUS-Omnichannel Interaction System por RADIUS
RADIUS-Omnichannel Interaction SystemRADIUS-Omnichannel Interaction System
RADIUS-Omnichannel Interaction System
RADIUS15 visualizações

Automated Test Framework with Cucumber

  • 1. Automated Test Framework with Cucumber PROJECT WORK PRESENTATION Ramesh Krishnan G 2014HT12514
  • 2. Agenda  Objective  Existing Problem  Proposed Solution  Why this Project ?  Cucumber Automation Tool  Cucumber Testing Stack  Framework Architecture  Cucumber Workflow  Test Reports  Summary and Conclusion  Directions for the future
  • 3. Objective The Objective of Automated Test Framework with Cucumber are as follows:  To reduce the gap between software developers and stakeholders  To overcome the disadvantages of existing automation tool QTP  To reduce Testing Cost and Time  To improve Test Coverage  To reduce Redundancy  To gain confidence in the system  To reduce the number of defects found by users  To run regression test overnight and weekends
  • 4. Existing Problem  Producer Gap - Difference between what is specified vs what is delivered  Customer Gap - Difference between what the producers actually delivered vs what the customer wanted
  • 5. Proposed Solution  Cucumber is a software tool based on Behavior Driven Development (BDD) model which is used to write acceptance tests for web application  Allows automation of functional validation in easily readable and understandable format (like plain English) to Stakeholders, Business Analysts, Developers, Testers, etc.  The test suites are then translated into the programming language by Cucumber, which supports multiple programming and scripting languages.
  • 6. Why this Project ?  Need to deliver the project using a good reliable tool which is open source  Management should understand what the project does. Using Cucumber a layman can understand what the test case is.  Deliver quickly with a high standard compared to QTP  In agile development process, cucumber is more useful to validate the requirements  Software Testers with less coding knowledge can use this framework to develop the test suites
  • 7. Cucumber Automation Tool  Tool that executes plain text functional descriptions as automated test  Runs automated acceptance test on Web applications  Language that Cucumber understands is called “Gherkin”  Cucumber Test are written in a file called Feature  Feature file contains list of test scenarios  Each line in a scenario is called step which are defined with the help of “Given”, “When”, “Then” and “And” keywords  Step Defintion is a place where the automation codes are written for steps  Steps in the feature file are directly mapped to step definitions  Step definition is a block of code written with any one of the programming language such as Java or Ruby
  • 8. Simple Cucumber Test Feature: E-Commerce Application Scenario: Users should see sign out button once signed in Given I open the Login page of the application When I enter valid credentials and click sign-in button Then I verify the application Home Page is displayed And I verify the sign out button is displayed at bottom of home page
  • 10. Setting up Environment Step 1: Download and Install Java and Java Development Kit Step 2: Setup Java Runtime Environment Step 3: Install and Configure Maven Step 4: Download and Configure Eclipse IDE Step 5: Install Plugins for Eclipse IDE Step 6: Create New Maven Project Step 7: Configure Cucumber and Selenium with Maven Project
  • 14. Key Feature of Framework  Page Object Model is used as design pattern to capture the object repository for web elements  Reusable step definitions can be developed and used for any web applications  Extent Report is used to for Report Generation  Test Reports will be placed in target folder  If test scenario fails, the screen for each failed scenario will be taken and placed in Screenshots folder  Email will be delivered to mail ids with test report  Integrated with Jenkins, a Continuous Integration Tool which is used to schedule test and separate cucumber reports also be generated  Cross Browser Testing
  • 18. Summary & conclusion  Automated Testing with cucumber minimizes the software quality gap and reduces the communication gap between the developers and stakeholders  The Functional and Unit testing for the web applications has become easy with this framework which minimizes the human effort involved in testing and to overcome the disadvantages of testing made with UFT/QTP tool  Automation team can be formed with Software Testers with less coding knowledge or no coding knowledge
  • 19. Directions for the future  This automation framework can be enhanced to do automation in multiple browsers and parallel execution with help of Selenium Grid  Selenium Grid provides the flexibility to distribute the test cases for execution. It reduces the batch processing time.  Further, this project can be enhanced by deploying the automation test source code in a common server which is accessible by all the team members and integrated with the help of Source tree
  • 20. Demo