SlideShare a Scribd company logo
#ATAGTR2017
16th 17th March
Protractor BDD Approach
L&T InfoTech
Agile Testing Alliance Global Testing Retreat 2017
What is ?
Agile Testing Alliance Global Testing Retreat 2017
Why?
Agile Testing Alliance Global Testing Retreat 2017
Agile Testing Alliance Global Testing Retreat 2017
Protractor and BDD
Protractor is an open source, end to end testing framework designed
specifically for AngularJS web applications.
Protractor it is a solution integrator - combining powerful BDD frameworks
such as …
Agile Testing Alliance Global Testing Retreat 2017
How we will do it…
1 2 3 4 5 6
Create Automation
Suite with Protractor,
Cucumber and Gulp.
Create feature files from:
 User Stories / Use Cases
 Defect Steps
 Test Cases/Scenarios
Run the feature files and
create stubs [A stub is a
small program that
substitutes for a longer
program]
Create the executable
code with Protractor and
attach it to the feature
statements
Once the code is attached
to the feature
statements, we can
execute the same code
for same repeating
feature statements
We can select the features
that we want to execute
[existing applications+ Past
defects] and easily create
different runner files on
need basis and execute
the automation suite
Agile Testing Alliance Global Testing Retreat 2017
Approach for Protractor Cucumber
IDEA Define
FEATURE FILES
(.features)
STEP DEFINITION
(.js)
User Stories / Use Cases
PAGE OBJECT
(.js)
Static
TEST DATA
UTILITY FUNCTIONS
(.js)
CORE FUNCTIONS
(.js)
Dynamic
TEST DATA -
Json
ATOM EDITOR/ NOTEPAD-PLUS
Runner
(.js)
QA team/Disney team
Acceptance/
Report
Web driverJs
Application under test
Agile Testing Alliance Global Testing Retreat 2017
Agile Testing Alliance Global Testing Retreat 2017
Advantages of using Protractor and
Cucumber
 Feature statement written multiple times, will have a single
corresponding code attached.
 Write script once and Run on need basis.
 Records time to execute hence also tells us if performance has
improved/degraded from previous run results.
 Test results history with compare functionality.
 Can be auto triggered when Developers are using Code build in
Jenkins.
 Freeware hence saving project Budget.
 Automation scripts can be reused.
Agile Testing Alliance Global Testing Retreat 2017
Learning Outcomes
 Audience will be aware of protractor cucumber end to end
automation testing frameworks.
 Automation testing framework for AngularJs Applications.
 Easy and reliable object identification for AngularJs Application.
 Scripts are faster in execution.
Agile Testing Alliance Global Testing Retreat 2017
Best Practices
 Set screen size so that all the elements are visible.
 Page objects should be used to map the elements and write the functions
to perform actions.
 Simple, Clean and tidy folder structure. Exports and require should be used
to connect your specs and page objects.
 SVN/GitHub can be used as a version control.
Agile Testing Alliance Global Testing Retreat 2017
Agile Testing Alliance Global Testing Retreat 2017

More Related Content

PDF
Automation Testing Approach for Responsive Web Design
PPTX
ATAGTR2017 Differentiation using Testing Tools and Automation in the BFS COTS...
PPTX
ATAGTR2017 HikeRunner: Load Test Framework
PPTX
WiKi Based Automation Testing: Fitness & DevOps
PPTX
ATAGTR2017 Wearable App Testing
PPTX
Performance Metrics Driven CI/CD - Introduction to Continuous Innovation and ...
PPTX
ATAGTR2017 Testing of Connected Cars Based on IOT
PDF
Putting Quality First through Continuous Testing
Automation Testing Approach for Responsive Web Design
ATAGTR2017 Differentiation using Testing Tools and Automation in the BFS COTS...
ATAGTR2017 HikeRunner: Load Test Framework
WiKi Based Automation Testing: Fitness & DevOps
ATAGTR2017 Wearable App Testing
Performance Metrics Driven CI/CD - Introduction to Continuous Innovation and ...
ATAGTR2017 Testing of Connected Cars Based on IOT
Putting Quality First through Continuous Testing

What's hot (20)

PDF
Metrics-driven Continuous Delivery
PDF
DevOps: Find Solutions, Not More Defects
PDF
The Key to DevOps? Testing Early in the Pipeline
PPTX
Continuous integration testing 2019 08
PPTX
Hidden Treasure - TestComplete Script Extensions
PPTX
Know the flow to master agility
PDF
Data-Driven DevOps: Improve Velocity and Quality of Software Delivery with Me...
PPTX
DevOps Pipelines and Metrics Driven Feedback Loops
PDF
Continuous Integration Testing: Fully test your microservices application, ea...
PDF
Automated Testing in DevOps
PPTX
Дмитрий Лемешко. Comaqa Spring 2018. Continuous mobile automation in build pi...
PPTX
Generic Test Automation Architecture
PPTX
Drive Continuous Delivery With Continuous Testing
PPTX
QASymphony Atlanta Customer User Group Fall 2017
PPTX
Release Readiness Validation with Keptn for Austrian Online Banking Software
PPTX
Integration with saucelabs over private network
PPTX
DevOps for AI Apps
PPTX
All Around Azure: DevOps with GitHub - Managing the Flow of Work
PDF
AWS Well-Architected: Build Better Architecture, Better Business
PPTX
A Guide to Event-Driven SRE-inspired DevOps
Metrics-driven Continuous Delivery
DevOps: Find Solutions, Not More Defects
The Key to DevOps? Testing Early in the Pipeline
Continuous integration testing 2019 08
Hidden Treasure - TestComplete Script Extensions
Know the flow to master agility
Data-Driven DevOps: Improve Velocity and Quality of Software Delivery with Me...
DevOps Pipelines and Metrics Driven Feedback Loops
Continuous Integration Testing: Fully test your microservices application, ea...
Automated Testing in DevOps
Дмитрий Лемешко. Comaqa Spring 2018. Continuous mobile automation in build pi...
Generic Test Automation Architecture
Drive Continuous Delivery With Continuous Testing
QASymphony Atlanta Customer User Group Fall 2017
Release Readiness Validation with Keptn for Austrian Online Banking Software
Integration with saucelabs over private network
DevOps for AI Apps
All Around Azure: DevOps with GitHub - Managing the Flow of Work
AWS Well-Architected: Build Better Architecture, Better Business
A Guide to Event-Driven SRE-inspired DevOps
Ad

Viewers also liked (20)

PPTX
ATAGTR2017 Blockchain Based Testing
PPTX
ATAGTR2017 Artificial Intelligence in Software Testing – Demystified
PPTX
ATAGTR2017 Security Testing for Healthcare applications
PPT
ATAGTR2017 Bee-Hive approach for Big Data Testing [End to End Continuous Test...
PPTX
ATAGTR2017 Batch Workload Modelling and Performance Optimization
PPTX
ATAGTR2017 An Innovative Take on Versa Test
PPTX
ATAGTR2017 Machine Learning telepathy for Shift Right approach of testing
PPTX
ATAGTR2017 Cost-effective Security Testing Approaches for Web, Mobile & Enter...
PPTX
ATAGTR2017 Security Test Driven Development (STDD)
PPTX
ATAGTR2017 Detect Layout Bugs by Simulating Human Eye
PPTX
ATAGTR2017 The way to recover the issue faced in IoT regression Testing
PPTX
ATAGTR2017 Unified APM: The new age performance monitoring for production sys...
PPTX
ATAGTR2017 Keeping pace with Product Evolution: UI Automation Framework Guide...
PPTX
ATAGTR2017 Estimation in Agile Testing - Not a big deal rather it's Fun
PPTX
ATAGTR2017 Be a User first, then a tester!
PPTX
ATAGTR2017 Static and dynamic code analysis for mobile applications - Act ear...
PPTX
ATAGTR2017 Testing in DevOps Culture
PPTX
ATAGTR2017 Test the REST
PPTX
ATAGTR2017 CDC Tests - Integration Tests cant be made simpler than this!
PPTX
ATAGTR2017 Performance Automation in Dev-Ops
ATAGTR2017 Blockchain Based Testing
ATAGTR2017 Artificial Intelligence in Software Testing – Demystified
ATAGTR2017 Security Testing for Healthcare applications
ATAGTR2017 Bee-Hive approach for Big Data Testing [End to End Continuous Test...
ATAGTR2017 Batch Workload Modelling and Performance Optimization
ATAGTR2017 An Innovative Take on Versa Test
ATAGTR2017 Machine Learning telepathy for Shift Right approach of testing
ATAGTR2017 Cost-effective Security Testing Approaches for Web, Mobile & Enter...
ATAGTR2017 Security Test Driven Development (STDD)
ATAGTR2017 Detect Layout Bugs by Simulating Human Eye
ATAGTR2017 The way to recover the issue faced in IoT regression Testing
ATAGTR2017 Unified APM: The new age performance monitoring for production sys...
ATAGTR2017 Keeping pace with Product Evolution: UI Automation Framework Guide...
ATAGTR2017 Estimation in Agile Testing - Not a big deal rather it's Fun
ATAGTR2017 Be a User first, then a tester!
ATAGTR2017 Static and dynamic code analysis for mobile applications - Act ear...
ATAGTR2017 Testing in DevOps Culture
ATAGTR2017 Test the REST
ATAGTR2017 CDC Tests - Integration Tests cant be made simpler than this!
ATAGTR2017 Performance Automation in Dev-Ops
Ad

Similar to ATAGTR2017 Protractor Cucumber BDD Approach (20)

PDF
A Comprehensive Guide to Conducting Test Automation Using Appium & Cucumber o...
PDF
Integrating TypeScript with popular frameworks like React or Angular.pdf
PDF
Big Improvement_ New AngularJS Tools Changing How We Develop.pdf
PPTX
quantum_leap_angularjs_tools_redefining_development_in_2023.pptx
PDF
quantum_leap_angularjs_tools_redefining_development_in_2023.pdf
PPTX
Big Improvement_ New AngularJS Tools Changing How We Develop.pptx
DOCX
Kunal bhatia resume mass
PPTX
Automation test framework with cucumber – BDD
PDF
Play with Testing on Android - Gilang Ramadhan (Academy Content Writer at Dic...
PDF
DevOps for TYPO3 Teams and Projects
PPTX
CucumberSeleniumWD
PDF
Decoding E2E Testing frameworks Playwright and Cypress Compared.pdf
PDF
Innovation Generation - The Mobile Meetup: Android Best Practices
PDF
Google Rolls Out Agent Development Kits for Python and Java.pdf
PDF
Top Performance Testing Tools of 2025: Ensure Speed, Stability, and Scale
PDF
Visual studio 2019 launch
PPT
Behavior Driven Development by Example
PDF
Katalon Studio - Successful Test Automation for both Testers and Developers
PPTX
Reason to choose Angular JS for your Web Application
A Comprehensive Guide to Conducting Test Automation Using Appium & Cucumber o...
Integrating TypeScript with popular frameworks like React or Angular.pdf
Big Improvement_ New AngularJS Tools Changing How We Develop.pdf
quantum_leap_angularjs_tools_redefining_development_in_2023.pptx
quantum_leap_angularjs_tools_redefining_development_in_2023.pdf
Big Improvement_ New AngularJS Tools Changing How We Develop.pptx
Kunal bhatia resume mass
Automation test framework with cucumber – BDD
Play with Testing on Android - Gilang Ramadhan (Academy Content Writer at Dic...
DevOps for TYPO3 Teams and Projects
CucumberSeleniumWD
Decoding E2E Testing frameworks Playwright and Cypress Compared.pdf
Innovation Generation - The Mobile Meetup: Android Best Practices
Google Rolls Out Agent Development Kits for Python and Java.pdf
Top Performance Testing Tools of 2025: Ensure Speed, Stability, and Scale
Visual studio 2019 launch
Behavior Driven Development by Example
Katalon Studio - Successful Test Automation for both Testers and Developers
Reason to choose Angular JS for your Web Application

More from Agile Testing Alliance (20)

PPTX
#Interactive Session by Anindita Rath and Mahathee Dandibhotla, "From Good to...
PDF
#Interactive Session by Ajay Balamurugadas, "Where Are The Real Testers In T...
PPTX
#Interactive Session by Jishnu Nambiar and Mayur Ovhal, "Monitoring Web Per...
PDF
#Interactive Session by Pradipta Biswas and Sucheta Saurabh Chitale, "Navigat...
PDF
#Interactive Session by Apoorva Ram, "The Art of Storytelling for Testers" at...
PPTX
#Interactive Session by Nikhil Jain, "Catch All Mail With Graph" at #ATAGTR2023.
PPTX
#Interactive Session by Ashok Kumar S, "Test Data the key to robust test cove...
PPTX
#Interactive Session by Seema Kohli, "Test Leadership in the Era of Artificia...
PDF
#Interactive Session by Ashwini Lalit, RRR of Test Automation Maintenance" at...
PPTX
#Interactive Session by Srithanga Aishvarya T, "Machine Learning Model to aut...
PPTX
#Interactive Session by Kirti Ranjan Satapathy and Nandini K, "Elements of Qu...
PPTX
#Interactive Session by Sudhir Upadhyay and Ashish Kumar, "Strengthening Test...
PPTX
#Interactive Session by Sayan Deb Kundu, "Testing Gen AI Applications" at #AT...
PDF
#Interactive Session by Dinesh Boravke, "Zero Defects – Myth or Reality" at #...
PPTX
#Interactive Session by Saby Saurabh Bhardwaj, "Redefine Quality Assurance –...
PDF
#Keynote Session by Sanjay Kumar, "Innovation Inspired Testing!!" at #ATAGTR2...
PDF
#Keynote Session by Schalk Cronje, "Don’t Containerize me" at #ATAGTR2023.
PPTX
#Interactive Session by Chidambaram Vetrivel and Venkatesh Belde, "Revolution...
PDF
#Interactive Session by Aniket Diwakar Kadukar and Padimiti Vaidik Eswar Dat...
PPTX
#Interactive Session by Vivek Patle and Jahnavi Umarji, "Empowering Functiona...
#Interactive Session by Anindita Rath and Mahathee Dandibhotla, "From Good to...
#Interactive Session by Ajay Balamurugadas, "Where Are The Real Testers In T...
#Interactive Session by Jishnu Nambiar and Mayur Ovhal, "Monitoring Web Per...
#Interactive Session by Pradipta Biswas and Sucheta Saurabh Chitale, "Navigat...
#Interactive Session by Apoorva Ram, "The Art of Storytelling for Testers" at...
#Interactive Session by Nikhil Jain, "Catch All Mail With Graph" at #ATAGTR2023.
#Interactive Session by Ashok Kumar S, "Test Data the key to robust test cove...
#Interactive Session by Seema Kohli, "Test Leadership in the Era of Artificia...
#Interactive Session by Ashwini Lalit, RRR of Test Automation Maintenance" at...
#Interactive Session by Srithanga Aishvarya T, "Machine Learning Model to aut...
#Interactive Session by Kirti Ranjan Satapathy and Nandini K, "Elements of Qu...
#Interactive Session by Sudhir Upadhyay and Ashish Kumar, "Strengthening Test...
#Interactive Session by Sayan Deb Kundu, "Testing Gen AI Applications" at #AT...
#Interactive Session by Dinesh Boravke, "Zero Defects – Myth or Reality" at #...
#Interactive Session by Saby Saurabh Bhardwaj, "Redefine Quality Assurance –...
#Keynote Session by Sanjay Kumar, "Innovation Inspired Testing!!" at #ATAGTR2...
#Keynote Session by Schalk Cronje, "Don’t Containerize me" at #ATAGTR2023.
#Interactive Session by Chidambaram Vetrivel and Venkatesh Belde, "Revolution...
#Interactive Session by Aniket Diwakar Kadukar and Padimiti Vaidik Eswar Dat...
#Interactive Session by Vivek Patle and Jahnavi Umarji, "Empowering Functiona...

Recently uploaded (20)

PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
A Presentation on Artificial Intelligence
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Approach and Philosophy of On baking technology
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
Big Data Technologies - Introduction.pptx
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Advanced methodologies resolving dimensionality complications for autism neur...
Digital-Transformation-Roadmap-for-Companies.pptx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Review of recent advances in non-invasive hemoglobin estimation
A Presentation on Artificial Intelligence
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
“AI and Expert System Decision Support & Business Intelligence Systems”
Approach and Philosophy of On baking technology
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
MYSQL Presentation for SQL database connectivity
Reach Out and Touch Someone: Haptics and Empathic Computing
Encapsulation_ Review paper, used for researhc scholars
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Big Data Technologies - Introduction.pptx
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Chapter 3 Spatial Domain Image Processing.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation

ATAGTR2017 Protractor Cucumber BDD Approach

  • 1. #ATAGTR2017 16th 17th March Protractor BDD Approach L&T InfoTech
  • 2. Agile Testing Alliance Global Testing Retreat 2017 What is ?
  • 3. Agile Testing Alliance Global Testing Retreat 2017 Why?
  • 4. Agile Testing Alliance Global Testing Retreat 2017
  • 5. Agile Testing Alliance Global Testing Retreat 2017 Protractor and BDD Protractor is an open source, end to end testing framework designed specifically for AngularJS web applications. Protractor it is a solution integrator - combining powerful BDD frameworks such as …
  • 6. Agile Testing Alliance Global Testing Retreat 2017 How we will do it… 1 2 3 4 5 6 Create Automation Suite with Protractor, Cucumber and Gulp. Create feature files from:  User Stories / Use Cases  Defect Steps  Test Cases/Scenarios Run the feature files and create stubs [A stub is a small program that substitutes for a longer program] Create the executable code with Protractor and attach it to the feature statements Once the code is attached to the feature statements, we can execute the same code for same repeating feature statements We can select the features that we want to execute [existing applications+ Past defects] and easily create different runner files on need basis and execute the automation suite
  • 7. Agile Testing Alliance Global Testing Retreat 2017 Approach for Protractor Cucumber IDEA Define FEATURE FILES (.features) STEP DEFINITION (.js) User Stories / Use Cases PAGE OBJECT (.js) Static TEST DATA UTILITY FUNCTIONS (.js) CORE FUNCTIONS (.js) Dynamic TEST DATA - Json ATOM EDITOR/ NOTEPAD-PLUS Runner (.js) QA team/Disney team Acceptance/ Report Web driverJs Application under test
  • 8. Agile Testing Alliance Global Testing Retreat 2017
  • 9. Agile Testing Alliance Global Testing Retreat 2017 Advantages of using Protractor and Cucumber  Feature statement written multiple times, will have a single corresponding code attached.  Write script once and Run on need basis.  Records time to execute hence also tells us if performance has improved/degraded from previous run results.  Test results history with compare functionality.  Can be auto triggered when Developers are using Code build in Jenkins.  Freeware hence saving project Budget.  Automation scripts can be reused.
  • 10. Agile Testing Alliance Global Testing Retreat 2017 Learning Outcomes  Audience will be aware of protractor cucumber end to end automation testing frameworks.  Automation testing framework for AngularJs Applications.  Easy and reliable object identification for AngularJs Application.  Scripts are faster in execution.
  • 11. Agile Testing Alliance Global Testing Retreat 2017 Best Practices  Set screen size so that all the elements are visible.  Page objects should be used to map the elements and write the functions to perform actions.  Simple, Clean and tidy folder structure. Exports and require should be used to connect your specs and page objects.  SVN/GitHub can be used as a version control.
  • 12. Agile Testing Alliance Global Testing Retreat 2017
  • 13. Agile Testing Alliance Global Testing Retreat 2017

Editor's Notes

  • #3: AngularJS (commonly referred to as "Angular" or "Angular.js") is a complete JavaScript-based open-source front-end web application  mainly maintained by Google to address many of the challenges encountered in developing single-page applications. AngularJS is a JavaScript framework. It can be added to an HTML page with a <script> tag. AngularJS extends HTML attributes with Directives, and binds data to HTML with Expressions
  • #4: Protractor is an end-to-end test framework for Angular and AngularJS applications. It acts as an abstraction layer to make automation write and execute easily for Angular.js application.
  • #5: Angular JS applications have some extra HTML attributes like ng-repeater, ng-controller, ng-model.., etc. which are not included in Selenium locators. Selenium is not able to identify those web elements using Selenium code. So, Protractor on the top of Selenium can handle and controls those attributes in Web Applications. The protractor is an end to end testing framework for Angular JS based applications. While most frameworks focus on conducting unit tests for Angular JS applications, Protractor focuses on testing the actual functionality of an application.
  • #6: Jasmine is a behavior-driven development framework for testing JavaScript code. It is default framework that comes with Protractor. Cucumber is for Behaviour-Driven Development and uses gherkin . Mocha is a JavaScript test framework running on node.js, featuring browser support, asynchronous testing, test coverage reports, and use of any assertion library.