A TEST FRAMEWORK USING PROTRACTOR, CUCUMBER & CUCUMBER SANDWICH

Slides:



Advertisements
Similar presentations
UBIQUITY V3 An extensible platform for creating dynamic, customized, and geocentric native mobile applications.
Advertisements

Implementing Tableau Server in an Enterprise Environment
1 19-Jan-14 © Copyright: City Boy Salary : Simon Powers : 2014 Brown Bag – Behaviour Driven Development with Specflow Brown Bag – Behaviour Driven Development.
Ranorex Appium Calabash
Local Touch – Global Reach The New Tester Matthew Eakin, Manager Managed Testing Practice Sogeti, USA.
Company LOGO Automation Tools For Android Anshu Prasad.
Test Automation An Approach to Automated Software Regression Testing Presented by Adnet, Inc Feb 2015.
Test Automation Framework Ashesh Jain 2007EE50403 Manager Amit Maheshwari.
Story-Based Test Automation Using Free Tools
Acceptance Test Driven Development with SpecFlow and Friends
1 Mobile Computing Mobile First (formerly Worklight) Copyright 2015 by Janson Industries.
LOGO Tech propulsion Labs Android Webdriver Test automation - Selenium 2 Masud Parvez SQA Architect Tech Propulsion Labs
@lestersconyers #spsevents #spsphx SPS EVENTS PHX SharePoint and Angular Sitting in a Tree… LESTER SCONYERS.
Designveloper BDD Training October 2 nd – October 3 rd, 2014 Hung Vo - CEO.
SpecFlow & Gherkin Behavior Driven Development. Definitions Behavior Driven Development SpecFlow Structure Gerkin Demo Agenda.
Living Requirements using Behavior Driven Development
Intelligent Tutoring System Mobile Communication Team Drew Boatwright Nakul Dureja Richard Liou.
Nathaniel Neitzke Lighthouse1, LLC
Three-tier Mobile Application Testing Framework:
Background The Encyclopedio of Life (EOL) is an ROR open source project to create a free, online reference source and database for every one of the 1.8.
Behaviour Driven Development with Cucumber for Java.
Java Mobile Apps with GWT & PhoneGap Josh Marinacci, webOS Developer Advocate.
FlexElink Winter presentation 26 February 2002 Flexible linking (and formatting) management software Hector Sanchez Universitat Jaume I Ing. Informatica.
Web Automation Testing With Selenium By Rajesh Kanade.
Automated Acceptance Testing and Continuous Delivery Larry Apke Agile Expert
Telerik Software Academy Software Quality Assurance Binding business requirements to.NET code.
© Hive Studios 2011 Ivan Pavlović, Hive Studios Visual C# MVP, MCT, CSM
Selenium January Selenium course content  Introduction (Session-1)Session-  Automation  What is automation testing  When to go for automation.
1 Presentation Title Test-driven development (TDD) Overview David Wu.
Mohit Anand, Software Engineer Adobe 1 Selecting GUI Automation Testing Tool for Mobile Domain.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
HOW AND WHY TO LOVE CUCUMBER By Dana Scheider. Is This Your Programming Experience?
EFFECTIVE QA PROCESS FOR PVC Prepared by:PVC QA Team.
Access Code Registration Portals for
We Behatin’. INTRODUCTION Behat background 3 Behat prep Getting started
How and why we should use Behat?. About me Bozhidar Boshnakov QA Department FFW Drupal.org – bboshnakov Linkedin.com/in/bboshnakov.
Zhuhai Test Automation Overview Ryan Li Team lead of test automation Foglight QA.
Sqs.com SQS – the world’s leading specialist in software quality Please copy a slide with a suitable picture from the file „Title Slides_EN.pptx“ (change.
Software Engineering Lecture 11 Software Testing Presenter: Josef Hallberg 1.
Introduction to Workbot 2.0 Ryan Li  Test automation  ant the Cucumber.
Freshen your test cases Kausikram Krishnasayee
Behaviour Driven Development with Cucumber and selenium using Java.
HPE ALM Octane.
Software Testing Tools
User Stories > Big and Small
BEHAVIOR DRIVEN DEVELOPMENT / TESTING (BDD)
TEST AUTOMATION IN BDD WAY
How to Test a Complex ERP Application using a Data-Driven Framework
Bring Accessibility into the Development Lifecycle with CI Testing
Software Testing Tools
Techniques and Practices for Testing Angular
Software Applications for end-users
CMPE419 Mobile Application Development
Galen - Automated testing of look and feel
Top 5 Front End Development Tools. 1. Sublime Text Sublime Text may be a super quick and have packed text and development editor. If you're about to be.
Advantages OF BDD Testing
Selenium vs Protractor
DevOps - Extreme Automation using Cucumber, Selenium, Ruby
And I have to create mobile apps too?
Behat - Arguably the best tool to switch to Automated testing from Manual Shweta Sharma.
Introduction to AppInventor
Open Source Tool Based Automation solution with Continuous Integration and end to end BDD Implementation Arun Krishnan - Automation Manager Maria Afzal-
Test Driven Lasse Koskela Chapter 9: Acceptance TDD Explained
Introduction to BDD. Introduction to BDD “BDD is a second-generation, outside-in, pull-based, multiple-stakeholder, multiple-scale, high-automation,
Recitation on AdFisher
Telerik Testing Framework
Generate Data with Google Analytics SQL Saturday /04/2019.
Automated browser testing with Selenium and C#
A complete Selenium Techstack –
Open Source Tool Based Automation solution with Continuous Integration and end to end BDD Implementation Arun Krishnan - Automation Manager Maria Afzal-
Presentation transcript:

A TEST FRAMEWORK USING PROTRACTOR, CUCUMBER & CUCUMBER SANDWICH Panacea A TEST FRAMEWORK USING PROTRACTOR, CUCUMBER & CUCUMBER SANDWICH Adonis Celestine

ABOUT THE SPEAKER Adonis Celestine Adonis has more than 10 years of industry experience in Software Testing. He has good expertise on Software Test automation and consultation. Adonis is passionate about test innovations and making testing simpler and more interesting. He has implemented this framework for multiple projects on a large scale and in this presentation he shares the experience, best practices and challenges in using this framework. email : adonis.sheeban@gmail.com 0617468887 Adonis Celestine

THE TOOLS CUCUMBER PROTRACTOR CUCUMBER SANDWICH Cucumber is a leading BDD tool which lets software development teams describe how software should behave in a business readable domain specific language. PROTRACTOR Protractor is an E2E test tool developed by google to test Angular applications. CUCUMBER SANDWICH Cucumber Sandwich generates awesome html reports on the fly. It monitors your Cucumber json report directory for changes & generates the report.

WHY NEW FRAMEWORK Gaps in the current process Technology changes & responsive design Something light and free What are you testing Test Reporting

GIVEN– Some preconditions THEN– you see an outcome BEHAVIOUR DRIVEN DEVELOPMENT WHEN– an event occurs BDD GIVEN– Some preconditions THEN– you see an outcome A programmers mind Travel(“market”); If(isPresent(“egg”)){ buyMilk(6); } else { buyMilk(1); } More Collaboration Automated Acceptance Tests Faster & High Quality

CUCUMBER & GHERKIN BDD IS TDD done right Feature: Search on internet @Regression @Smoke Scenario Outline:Search keywords protractor & cucumber Given I open the search <engine> When I type <keyword> And I click search Then I see the search results Examples: |engine|keyword| |google|protractor| |google|angularjs| |bing|protractor| Feature: Descriptive text of what is desired Scenario Outline: Some determinable business situation Given some precondition And some other precondition When some action by the actor And some other action Then some testable outcome is achieved And something else we can check happens too Examples: Test Data BDD IS TDD done right It’s the language the business understands

PROTRACTOR BDD Test Reporting The glue code Browser Driver System Under Test Angular locators Multi browser capabilities E2E Test the whole chain ng-binding, ng-repeat, ng-textarea, ng-model , WaitForAngular

PROTRACTOR IN AN ANGULAR PAGE The Feature file Feature: Check the weather @chain Scenario Outline:Check the weather of Amsterdam Given I open weather.com When I type Amsterdam in the search box And I click search Then I must be able to see the weather <overview> Examples: |overview| |Today| |5 Day| |10 Day| |Weekend| |Monthly| The Config file exports.config = { specs: ['test/SystemTest/features/*.feature' ], framework: 'cucumber', cucumberOpts: { require: ['features/step_definitions/*_steps.js', 'features/support/*.js'], format: 'pretty' }, capabilities: { browserName: 'firefox‘ } }; The Spec file this.When(/^I type Amsterdam in the search box$/, function (callback) { browser.element(by.xpath(“(//input[@name=‘search’])”).sendKeys(“Amsterdam”).then(callback); }); Demo

PROTRACTOR IN A NON ANGULAR PAGE Acts like Selenium Use a wait function browser.ignoreSynchronization = true browser.driver instead of driver More identifiers Switches between angular and non angular pages Applications that will be migrated to angular in future Demo

PROTRACTOR ON MOBILE The Config file Doesn’t support native apps Install android SDK capabilities: { browserName: 'chrome', 'appium-version': '1.0', platformName: 'Android', platformVersion: '4.4.2‘ , deviceName: 'Android Emulator', } Mobile browsers Configure Protractor Appium Install Appium Selendroid

CUCUMBER SANDWICH Demo

Tools are new in the market BDD is a mindset Huge learning curve Tools are new in the market Large Scenarios with multiple steps CHALLENGES

THE BEST PRACTICES & TIPS Using page objects The Gherkin Syntax Visual Review Accessibility testing Debugging User stories in Jira

THANK YOU! FOR YOUR ATTENTION REFERENCES https://angular.github.io/protractor/ https://cucumber.io/ https://www.linkedin.com/profile/view?id=AAMAAAbro_EBdKrNNLuUAOzF3KxGRpDkWydxpuE&trk=hp-identity-name http://testautomation.applitools.com/post/94994807787/protractor-vs-selenium-which-is-easier