End to end or acceptance tests are very important for every application. The code can work perfectly but user still can see blank screen on a site. How to avoid this? This training teaches how to drive browsers via Selenium WebDriver; how to test complex UIs, and deal with single page applications. CodeceptJS allows to write tests effectively in by implementing high-level API. Such tests are easy to write, read and maintain. We will also cover how to manage data inside a test.
Target Audience:
JS Engineers
Training agenda:
General overview
The purpose of automated testing
Testing styles: blackbox and whitebox testing
Levels of testing: acceptance, functional, integration, unit.
Business specification to drive a test
The principles of a stable test
Basics of browser testing
Selenium WebDriver and other testing tools.
Web UI test automation
Getting started with CodeceptJS
Overview of testing backends
Using WebDriverIO (optionally Protractor or Puppeteer)
Writing basic test scenario
Locating elements on page
Locator strategies (text, CSS, XPath)
Performing assertions
Waiting for elements to appear
Common patterns
Using PageObject pattern
Extending I with custom steps
Reusing session between tests
Running same test with different data
Advanced testing
Using Puppeteer for headless testing
Managing test data with REST and ApiDataFactory helpers
Reusing session between tests
Writing plugins and hooks for CodeceptJS