Course Outline

About Angular Testing using Karma and Protractor


  • Participants must have good knowledge of web application development and Angular
  • Participants must be comfortable with Jasmine testing framework


  • 2-5 days

Lab Setup

  • Hardware Configuration - Participants must have access to a system with the following hardware configuration:
    • 2GB of free RAM, 20GB of free disk space and full network connectivity
  • Software Configuration
    • Ubuntu 16.04 Desktop Edition (sudo/root access required)
    • Firefox and Chrome browsers
    • Node.

Course Outline for Angular Testing with Protractor and Karma

Introduction to Angular Testing
  • Introduction to isolated unit tests
  • Introduction to Angular testing
  • Introduction to Karma
  • Introduction to Jasmine
  • Introduction to Protractor
Introduction to Karma
  • Installation and Configuration
  • Preprocessors and Plugins
  • Command-line Interface
  • Hello World in Karma
  • Debugging Karma tests
Introduction to Jasmine
  • Installation and Configuration
  • Hello World in Jasmine
  • Creating test suites using Jasmine
  • Spies, Setup and Teardown using Jasmine
Introduction to Protractor
  • Installation and Configuration
    • Setting up Selenium Server
    • Setting up the browser
    • Using headless browsers
  • Hello World in Protractor
  • Interaction with one or more elements
  • Working with Locators
  • Introduction to Page Objects
  • Debugging Protractor tests
Case Studies
  • Testing basic component
  • Testing component with dependency
  • Testing component with async service
  • Testing component with inputs and outputs
  • Testing routed component

The classroom training will be provided in Bangalore (Bengaluru), Chennai, Hyderabad or Mumbai and will be conducted in the client's premises. All the necessary hardware/software infrastructure must be provided by the client.