SlideShare uma empresa Scribd logo
1 de 28
Baixar para ler offline
Slide 1
Testing AngularJS Applications
February 2015 - Pedro Catré
Technical University of Munich
Slide 2
Use HTML as your template language, extend HTML syntax to express your application’s
components clearly
AngularJS
 Data binding
 Dependency injection
Slide 3
Two points you should take away with you at the end of this presentation
Main Points
 Tests will save you
 You have great testing tools
Adapted from http://xkcd.com/285/.
Slide 4
payworks powers integrated Point of
Sale solutions
Slide 5
The Gateway Manager is the central place for clients to configure our platform
payworks Platform
payworks SDK
Quick integration
of payment functionality
Gateway Manager
Intuitive merchant &
terminal management
management
Global Connectivity
Processing with
preferred Acquirer
management
Slide 6
Within the Gateway Manager you can manage merchants, card readers, transactions,
webhooks and API credentials
The Gateway Manager
Slide 7
Testing requires different components to work together
 Task automation tool
 Unit testing
 E2E testing
 Continuous integration server
Agenda
Slide 8
Testing requires different components to work together
 Task automation tool
 Unit testing
 E2E testing
 Continuous integration server
Agenda
Slide 9
Automate everything! You will have to do it again
> grunt serve
> grunt build
> grunt test
Testing Tools
Slide 10
Testing requires different components to work together
 Task automation tool
 Unit testing
 E2E testing
 Continuous integration server
Agenda
Slide 11
Karma loads your source code, executes your tests and much more
Karma
Slide 12
Jasmine provides an elegant way of writing tests
 Suites
 Specs
 Expectations
 Matchers
 Setup and Teardown
 Mocks
 Spies
Jasmine
Slide 13
ngMock gives you mocking for your AngularJS tests
 Support to
 inject and mock services
 angular.mock.module()
 angular.mock.inject()
 Extends core services
 $httpBackend
 $timeout
ngMock
Slide 14
Let’s unit-test a component of the Gateway Manager
Unit Test Examples
Slide 15
Let’s unit-test a component of the Gateway Manager
Unit-Test Examples
Slide 16
How code coverage looks
Unit-Test Code Coverage
Slide 17
How code coverage looks
Unit-Test Code Coverage
Slide 18
How code coverage looks
Unit-Test Code Coverage
Slide 19
How code coverage looks
Unit-Test Code Coverage
Slide 20
How code coverage looks
Unit-Test Code Coverage
Slide 21
Testing requires different components to work together
 Task automation tool
 Unit testing
 E2E testing
 Continuous integration server
Agenda
Slide 22
Protractor runs tests against your application in a real browser, interacting with it as a user
would
 Test like a user
 For AngularJS Apps
 Automatic waiting
Protractor
Slide 23
Protractor runs your tests in different browsers, it supports test sharding and can take
screenshots after each executed test
Protractor Configuration File
Slide 24
Let’s e2e-test a component of the Gateway Manager
E2E-Test Examples
Slide 25
Testing requires different components to work together
 Task automation tool
 Unit testing
 E2E testing
 Continuous integration server
Agenda
Slide 26
Bamboo connects issues, commits, test results and deploys so the whole picture is available to
your entire product team
Bamboo
https://www.atlassian.com/software/bamboo
Slide 27
Demo
Slide 28
www.payworksmobile.com/career
We are hiring

Mais conteúdo relacionado

Mais procurados

Startup weekend bootcamp - Android up and running
Startup weekend bootcamp - Android up and runningStartup weekend bootcamp - Android up and running
Startup weekend bootcamp - Android up and running
Lance Nanek
 

Mais procurados (20)

Startup weekend bootcamp - Android up and running
Startup weekend bootcamp - Android up and runningStartup weekend bootcamp - Android up and running
Startup weekend bootcamp - Android up and running
 
Visual Studio 2015 and the Next .NET Framework
Visual Studio 2015 and the Next .NET FrameworkVisual Studio 2015 and the Next .NET Framework
Visual Studio 2015 and the Next .NET Framework
 
Build your website with angularjs and web apis
Build your website with angularjs and web apisBuild your website with angularjs and web apis
Build your website with angularjs and web apis
 
Learning selenium sample
Learning selenium sampleLearning selenium sample
Learning selenium sample
 
React native app with type script tutorial
React native app with type script tutorialReact native app with type script tutorial
React native app with type script tutorial
 
The productive developer guide to Angular 2
The productive developer guide to Angular 2The productive developer guide to Angular 2
The productive developer guide to Angular 2
 
Rest api code completion for javascript - dotjs 2015
Rest api code completion for javascript - dotjs 2015Rest api code completion for javascript - dotjs 2015
Rest api code completion for javascript - dotjs 2015
 
Enjector Kernel - Workflow Module Demo
Enjector Kernel  - Workflow Module DemoEnjector Kernel  - Workflow Module Demo
Enjector Kernel - Workflow Module Demo
 
React native buy one get one free?!
React native buy one get one free?!React native buy one get one free?!
React native buy one get one free?!
 
Redux and context api with react native app introduction, use cases, implemen...
Redux and context api with react native app introduction, use cases, implemen...Redux and context api with react native app introduction, use cases, implemen...
Redux and context api with react native app introduction, use cases, implemen...
 
HTC Bluetooth Low Energy Heart Rate Monitor Sample Code
HTC Bluetooth Low Energy Heart Rate Monitor Sample CodeHTC Bluetooth Low Energy Heart Rate Monitor Sample Code
HTC Bluetooth Low Energy Heart Rate Monitor Sample Code
 
Meetup angular http client
Meetup angular http clientMeetup angular http client
Meetup angular http client
 
The productive developer guide to Angular 2
The productive developer guide to Angular 2The productive developer guide to Angular 2
The productive developer guide to Angular 2
 
Playwright: A New Test Automation Framework for the Modern Web
Playwright: A New Test Automation Framework for the Modern WebPlaywright: A New Test Automation Framework for the Modern Web
Playwright: A New Test Automation Framework for the Modern Web
 
Angular Dependency Injection
Angular Dependency InjectionAngular Dependency Injection
Angular Dependency Injection
 
Angular 5
Angular 5Angular 5
Angular 5
 
Web development tool
Web development toolWeb development tool
Web development tool
 
Angular App Presentation
Angular App PresentationAngular App Presentation
Angular App Presentation
 
Web components are the future of the web - Take advantage of new web technolo...
Web components are the future of the web - Take advantage of new web technolo...Web components are the future of the web - Take advantage of new web technolo...
Web components are the future of the web - Take advantage of new web technolo...
 
What are the Top Automated Software Testing Tools for 2021
What are the Top Automated Software Testing Tools for 2021What are the Top Automated Software Testing Tools for 2021
What are the Top Automated Software Testing Tools for 2021
 

Semelhante a Testing AngularJS Applications at payworks

How_to_create_modular_microservice_test_projects.pdf
How_to_create_modular_microservice_test_projects.pdfHow_to_create_modular_microservice_test_projects.pdf
How_to_create_modular_microservice_test_projects.pdf
skimorod
 
STARWEST 2010 - 7 Steps To Improving Software Quality using Microsoft Test Ma...
STARWEST 2010 - 7 Steps To Improving Software Quality using Microsoft Test Ma...STARWEST 2010 - 7 Steps To Improving Software Quality using Microsoft Test Ma...
STARWEST 2010 - 7 Steps To Improving Software Quality using Microsoft Test Ma...
Anna Russo
 

Semelhante a Testing AngularJS Applications at payworks (20)

Live Demo : Trending Angular JS Featues
Live Demo : Trending Angular JS FeatuesLive Demo : Trending Angular JS Featues
Live Demo : Trending Angular JS Featues
 
Continuous Integration and Continuous Deployment (CI/CD) with WSO2 Enterprise...
Continuous Integration and Continuous Deployment (CI/CD) with WSO2 Enterprise...Continuous Integration and Continuous Deployment (CI/CD) with WSO2 Enterprise...
Continuous Integration and Continuous Deployment (CI/CD) with WSO2 Enterprise...
 
How_to_create_modular_microservice_test_projects.pdf
How_to_create_modular_microservice_test_projects.pdfHow_to_create_modular_microservice_test_projects.pdf
How_to_create_modular_microservice_test_projects.pdf
 
Introduction to Codenvy / JugSummerCamp 2014
Introduction to Codenvy / JugSummerCamp 2014Introduction to Codenvy / JugSummerCamp 2014
Introduction to Codenvy / JugSummerCamp 2014
 
Getting started with appium
Getting started with appiumGetting started with appium
Getting started with appium
 
Automated Acceptance Testing Example
Automated Acceptance Testing ExampleAutomated Acceptance Testing Example
Automated Acceptance Testing Example
 
Tahir_Resume_Selenium
Tahir_Resume_SeleniumTahir_Resume_Selenium
Tahir_Resume_Selenium
 
Play with Testing on Android - Gilang Ramadhan (Academy Content Writer at Dic...
Play with Testing on Android - Gilang Ramadhan (Academy Content Writer at Dic...Play with Testing on Android - Gilang Ramadhan (Academy Content Writer at Dic...
Play with Testing on Android - Gilang Ramadhan (Academy Content Writer at Dic...
 
Dive into Angular, part 5: Experience
Dive into Angular, part 5: ExperienceDive into Angular, part 5: Experience
Dive into Angular, part 5: Experience
 
The 2014 Decision Makers Guide to Java Web Frameworks
The 2014 Decision Makers Guide to Java Web FrameworksThe 2014 Decision Makers Guide to Java Web Frameworks
The 2014 Decision Makers Guide to Java Web Frameworks
 
ATAGTR2017 Protractor Cucumber BDD Approach
ATAGTR2017 Protractor Cucumber BDD ApproachATAGTR2017 Protractor Cucumber BDD Approach
ATAGTR2017 Protractor Cucumber BDD Approach
 
International journal of applied sciences and innovation vol 2015 - no 1 - ...
International journal of applied sciences and innovation   vol 2015 - no 1 - ...International journal of applied sciences and innovation   vol 2015 - no 1 - ...
International journal of applied sciences and innovation vol 2015 - no 1 - ...
 
Modern ASP.NET Webskills
Modern ASP.NET WebskillsModern ASP.NET Webskills
Modern ASP.NET Webskills
 
Best Practices for Troubleshooting Four Real-world Java Performance Issues
Best Practices for Troubleshooting Four Real-world Java Performance IssuesBest Practices for Troubleshooting Four Real-world Java Performance Issues
Best Practices for Troubleshooting Four Real-world Java Performance Issues
 
STARWEST 2010 - 7 Steps To Improving Software Quality using Microsoft Test Ma...
STARWEST 2010 - 7 Steps To Improving Software Quality using Microsoft Test Ma...STARWEST 2010 - 7 Steps To Improving Software Quality using Microsoft Test Ma...
STARWEST 2010 - 7 Steps To Improving Software Quality using Microsoft Test Ma...
 
Slides for Automation Testing or End to End testing
Slides for Automation Testing or End to End testingSlides for Automation Testing or End to End testing
Slides for Automation Testing or End to End testing
 
Testing of React JS app
Testing of React JS appTesting of React JS app
Testing of React JS app
 
Coding Naked
Coding NakedCoding Naked
Coding Naked
 
ATAGTR2017 Appium
ATAGTR2017 AppiumATAGTR2017 Appium
ATAGTR2017 Appium
 
Angular 2.0
Angular  2.0Angular  2.0
Angular 2.0
 

Último

1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
AldoGarca30
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
jaanualu31
 

Último (20)

1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
 
Wadi Rum luxhotel lodge Analysis case study.pptx
Wadi Rum luxhotel lodge Analysis case study.pptxWadi Rum luxhotel lodge Analysis case study.pptx
Wadi Rum luxhotel lodge Analysis case study.pptx
 
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptxOrlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
Computer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersComputer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to Computers
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLEGEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
 

Testing AngularJS Applications at payworks

  • 1. Slide 1 Testing AngularJS Applications February 2015 - Pedro Catré Technical University of Munich
  • 2. Slide 2 Use HTML as your template language, extend HTML syntax to express your application’s components clearly AngularJS  Data binding  Dependency injection
  • 3. Slide 3 Two points you should take away with you at the end of this presentation Main Points  Tests will save you  You have great testing tools Adapted from http://xkcd.com/285/.
  • 4. Slide 4 payworks powers integrated Point of Sale solutions
  • 5. Slide 5 The Gateway Manager is the central place for clients to configure our platform payworks Platform payworks SDK Quick integration of payment functionality Gateway Manager Intuitive merchant & terminal management management Global Connectivity Processing with preferred Acquirer management
  • 6. Slide 6 Within the Gateway Manager you can manage merchants, card readers, transactions, webhooks and API credentials The Gateway Manager
  • 7. Slide 7 Testing requires different components to work together  Task automation tool  Unit testing  E2E testing  Continuous integration server Agenda
  • 8. Slide 8 Testing requires different components to work together  Task automation tool  Unit testing  E2E testing  Continuous integration server Agenda
  • 9. Slide 9 Automate everything! You will have to do it again > grunt serve > grunt build > grunt test Testing Tools
  • 10. Slide 10 Testing requires different components to work together  Task automation tool  Unit testing  E2E testing  Continuous integration server Agenda
  • 11. Slide 11 Karma loads your source code, executes your tests and much more Karma
  • 12. Slide 12 Jasmine provides an elegant way of writing tests  Suites  Specs  Expectations  Matchers  Setup and Teardown  Mocks  Spies Jasmine
  • 13. Slide 13 ngMock gives you mocking for your AngularJS tests  Support to  inject and mock services  angular.mock.module()  angular.mock.inject()  Extends core services  $httpBackend  $timeout ngMock
  • 14. Slide 14 Let’s unit-test a component of the Gateway Manager Unit Test Examples
  • 15. Slide 15 Let’s unit-test a component of the Gateway Manager Unit-Test Examples
  • 16. Slide 16 How code coverage looks Unit-Test Code Coverage
  • 17. Slide 17 How code coverage looks Unit-Test Code Coverage
  • 18. Slide 18 How code coverage looks Unit-Test Code Coverage
  • 19. Slide 19 How code coverage looks Unit-Test Code Coverage
  • 20. Slide 20 How code coverage looks Unit-Test Code Coverage
  • 21. Slide 21 Testing requires different components to work together  Task automation tool  Unit testing  E2E testing  Continuous integration server Agenda
  • 22. Slide 22 Protractor runs tests against your application in a real browser, interacting with it as a user would  Test like a user  For AngularJS Apps  Automatic waiting Protractor
  • 23. Slide 23 Protractor runs your tests in different browsers, it supports test sharding and can take screenshots after each executed test Protractor Configuration File
  • 24. Slide 24 Let’s e2e-test a component of the Gateway Manager E2E-Test Examples
  • 25. Slide 25 Testing requires different components to work together  Task automation tool  Unit testing  E2E testing  Continuous integration server Agenda
  • 26. Slide 26 Bamboo connects issues, commits, test results and deploys so the whole picture is available to your entire product team Bamboo https://www.atlassian.com/software/bamboo