Unit Testing with Javascript Training Course
In this instructor-led, live training, participants will learn about various JavaScript testing frameworks as they step through the creation of a unit test suite for a web application.
By the end of this training, participants will be able to:
- Write unit tests in JavaScript using unit test frameworks such as QUnit and Jasmine
- Use frameworks such as Mocha and Chai to implement TDD and BDD
Audience
- Test engineers
Format of the course
- Part lecture, part discussion, exercises and heavy hands-on practice
Course Customization Options
- A number of frameworks can be used to unit test a Javascript application (Jasmine, Mocha, Jest, Chai, etc.).
- UI frameworks such as React are optional and can be covered if desired.
- To request a customized training for this course, please contact us to arrange.
Course Outline
Introduction
- How Unit Testing Works
Overview of Javascript Unit Test Frameworks
- Jasmine, Mocha, Jest, Chai, QUnit
- Unit test uses cases
Setting up the Testing Environment
- Downloading and installing the libraries
- Installing and configuring an IDE
- Setting up a sample application
Writing Your First Unit Test
- Setting up a test
- Writing a test definition
- Working with nested scoping
- Creating assertions
- Running the unit test
Debugging the unit test
- Stepping through the code
- Creating breakpoints
- Setting up debug tasks
Expanding the Unit Test
- Writing a complex Javascript class
- Writing stubs and mocks
- Creating a Test Suite
Implementing TDD and BDD
- Creating automated specifications
- Collaborating with users and testers
Writing More Tests
- Testing Node.js
- HTTP endpoint unit tests
- Testing a REST APIs
- Writing an integration test
- Testing React components (optional)
Troubleshooting
Summary and Conclusion
Requirements
- A general understanding of unit testing
- Javascript programming experience
- Experience working with Node.js
Need help picking the right course?
Unit Testing with Javascript Training Course - Enquiry
Unit Testing with Javascript - Consultancy Enquiry
Consultancy Enquiry
Testimonials (5)
The course, The Trainer
Novat Adam - Tanzania Revenue Authority
Course - Unit Testing with Javascript
It was very relevant to what I am currently doing at work. I learn very essentials skills.
Lindokuhle Mtshali
Course - Unit Testing with Javascript
The knowledge sharing style was pretty good
Zandile Langa
Course - Unit Testing with Javascript
The interaction with the audience; sense of humour, engagement, real world examples, repetition of concepts for understanding and learning
Megan Trow - BMW
Course - Unit Testing with Javascript
Practical time was fun.
Pieter Hartzenberg - BMW
Course - Unit Testing with Javascript
Related Courses
Advance Test Automation in Java using Selenium with continuous integration and version control
35 HoursBy the end of this training, participants will be able to:
- Install and configure Maven.
- Automate Testing using Selenium
- Managing GIT
- Integrating continous integration
Format of the Course
- Interactive lecture and discussion.
- Lots of exercises and practice.
- Hands-on implementation in a live-lab environment.
Course Customization Options
- To request a customized training for this course, please contact us to arrange.
Advanced Selenium
14 HoursIn this instructor-led, live training in Macao, participants will learn how to enhance an automated test suite using advanced techniques to drive Selenium.
By the end of this training, participants will be able to:
- Resolve complex web application test automation issues with Selenium.
- Apply regular expressions and pattern-based verification techniques.
- Handle exceptions that halt test execution.
- Programmatically search for web objects.
- Dynamically capture data from web controls.
- Create a data-driven testing framework.
- Distribute testing with Selenium Grid.
Advanced Selenium with C#
14 HoursIn this instructor-led, live training, participants will learn how to enhance an automated test suite using advanced techniques to drive Selenium.
Audience: software testers, test Managers, quality assurance professionals.
Testing Angular Applications
14 HoursIn this instructor-led, live training, participants will learn how to write and maintain tests for Angular applications.
By the end of this training, participants will be able to
- Decide the most appropriate strategy for testing an Angular application
- Carry out unit testing, component testing, A/B testing and end-to-end on an Angular application
- Choose the right tools for the job: Jasmine, Karma, Protractor, Mocha, etc.
- Write tests in Protractor and Jasmine
- Run and debug tests with Karma and Protractor
- Create a maintainable test suite
- Employ best practices for unit testing in Angular
Format of the course
- Part lecture, part discussion, exercises and heavy hands-on practice
Note
- Angular goes by different names and versions, namely: Angular.js, AngularJS, AngularJS 1, Angular 1, Angular 2, etc. To customize the version used in this training, please contact us to arrange.
Iridium: Cucumber and Selenium Based Testing
7 HoursThis instructor-led, live training in Macao (online or onsite) is aimed at test engineers and developers who wish to learn how to test a complex web application using Iridium.
By the end of this training, participants will be able to:
- Create end-to-end tests that simulate the actions of a user as they navigate a web application.
- Automate the testing of themed applications with multiple styles.
- Create test cases that are readable to non-technical people.
- Execute tests in a wide variety of browsers.
- Use the Iridium Snippets package for Atom to facilitate test script writing.
- Reduce the costs of maintaining custom Java code and page objects.
Testing React Apps with Jest
14 HoursThis instructor-led, live training in Macao (onsite or remote) is aimed at engineers who wish to use Jest to test React applications and components.
By the end of this training, participants will be able to:
- Install and configure a proper testing environment.
- Write asynchronous tests for React apps and components.
- Run Jest advanced tests that include mocking, spies and stubs.
Protractor: End-to-End Testing for Angular Web Applications
14 HoursIn this instructor-led, live training in Macao, participants learn first-hand how to write Protractor tests against a sample Angular web application in a live lab environment.
By the end of this course, participants will have gained proficiency in Protractor and be comfortable
- creating their own automation tests for Angular applications.
- integrating Protractor into their existing development workflow.
- ensuring that their tests are clean and maintainable.
- running Protractor with or without Selenium to drive browser behavior.
Selenium C# Test Automation
14 HoursThis instructor-led, live training in Macao (online or onsite) is aimed at developers and testers who wish to perform test automation using C# and Selenium.
By the end of this training, participants will be able to:
- Install and configure Selenium WebDriver.
- Write tests using Selenium, C#, and Nunit with Visual Studio IDE.
- Run C# Selenium test automation.
Selenium with Jenkins and Docker
14 HoursThis instructor-led, live training in (online or onsite) is aimed at DevOps engineers who wish to use Selenium to execute Selenium tests inside of Docker containers.
By the end of this training, participants will be able to:
- Create test automation infrastructure for on-demand testing.
- Develop a test automation framework using Java.
- Build a CI/CD pipeline from scratch with Jenkins and Docker.
Test Automation with Selenium and Katalon Studio
14 HoursThis instructor-led, live training in Macao (online or onsite) is aimed at software testers who wish to use Selenium and Katalon Studio to create end-to-end automated testing solutions.
By the end of this training, participants will be able to:
- Generate and execute cross-platform tests for any OS or device.
- Integrate automated testing into a CI/CD pipeline.
- Automate web testing, API testing, mobile testing, and desktop testing.
Selenium WebDriver in C#
14 HoursThis instructor-led, live training in Macao (online or onsite) introduces participants to automated testing with Selenium WebDriver and C# in Visual Studio. If you do not have C# programming experience or wish to brush up on C#, please check out the course: C# for Automation Test Engineers.
Test Automation with Selenium and Jenkins
21 HoursThis course provides training for handling testing projects using Selenium test suite and continuous testing with Jenkins.
Intended Audience:
- Software test engineers
- Software developers involved in agile development
- Release managers
- QA engineers
At the end of Selenium training the delegates will be able to:
- Use Selenium test suite effectively in real projects
- Use Selenium for cross browser testing
- Distribute the tests using Selenium Grid
- Run regression Selenium tests in Jenkins
- Prepare test reports and periodict reports using Jenkins
Automation Testing with Cypress
14 HoursThis instructor-led, live training in Macao (online or onsite) is aimed at software testers who wish to use Cypress for automating tests.
By the end of this training, participants will be able to:
- Perform end-to-end automation testing with Cypress.
- Implement integration and unit tests in a web application.
- Use Cypress as an alternative to Selenium.