WebdriverIO and Behavior-Driven Testing


Course Number: JAV-422
Duration: 3 days (19.5 hours)
Format: Live, hands-on

WebdriverIO Training Overview

WebdriverIO is an open-source, cross-browser testing automation framework built on top of WebDriver. It is written in JavaScript or TypeScript and runs on Node.js. WebdriverIO is a popular testing automation tool for many organizations, including Google, Facebook, and Amazon.

This WebdriverIO & Behavior-Driven Testing training teaches attendees how to write user stories and translate acceptance criteria into feature and step files. Attendees learn how to use Visual Studio Code (IDE), WebdriverIO, TypeScript, Cucumber together to test their web applications.

Location and Pricing

Accelebrate offers instructor-led enterprise training for groups of 3 or more online or at your site. Most Accelebrate classes can be flexibly scheduled for your group, including delivery in half-day segments across a week or set of weeks. To receive a customized proposal and price quote for private corporate training on-site or online, please contact us.

In addition, some courses are available as live, instructor-led training from one of our partners.

Objectives

  • Write effective Cucumber feature files
  • Understand best practices for step-definition files
  • Use WebdriverIO with TypeScript

Prerequisites

Prior experience with BDD (behavior-driven development), Cucumber, and WebdriverIO is recommended.

Outline

Expand All | Collapse All

Introduction
BDD and Testing Tooling Overview
  • What are Webdriver, Selenium, and WebdriverIO?
  • WebdriverIO (WDIO)
  • TypeScript vs. JavaScript (why we use TypeScript)
Python Selenium vs. WebdriverIO
  • Pros and Cons of each
WebdriverIO: Configuration and Setup
  • Intro to Visual Studio Code and Extensions
  • Project: Configuration
  • Package.json – Setup
  • WDIO – Testrunner
  • Extension
WebdriverIO Overview: Level 1
  • Feature Files: Cucumber and Gherkin Syntax
  • Step-Definition
  • Using CSS Selectors
  • Chrome Inspection Tools
  • Synchronous vs. Asynchronous – Understanding Asynchronous JS
  • Assertions
    • Expect
    • Chai
  • WDIO – Test Runner Demo
  • Debugging WDIO Cucumber Tests
    • Console Logs
  • Our First Test (testing a login screen)
OpenAI (Optional)
  • How to use OpenAI to write better-automated tests
  • OpenAI as a paired programmer
  • OpenAI for code reviews
WebdriverIO Overview: Level 2
  • Removing Duplicates
  • Scenario Outlines
  • Advanced Pause, debugs
  • Regex
    • Defined
    • Use Cases
  • Using XPath
  • Error Handling Best Practices
  • Update Lab 1 to use Scenario Outline
More WebdriverIO
  • Tags and Hooks
  • Running Headless Tests
  • Configuring tests to run in different environments
  • Customizing tags, environments variables, and running headless
More Typescript
  • Page Object Patterns
  • Variables Introduction
  • Conditional Statements
  • Array Types
Advanced Element Interactions
  • Buttons
  • Input Boxes
  • Drop-down lists
  • Handling Windows
  • IFrames and Alert Messages
  • Alert Handling
Allure Reports
  • Updates to Feature Files
  • Configuring and Customizing
  • Log Level – Parameters
  • Attaching Screenshots
  • Autogenerate Reports
  • Customized Reports
Testing the Contact Us Page
Conclusion

Training Materials

All WebdriverIO training attendees receive comprehensive courseware.

Software Requirements

  • Windows, macOS, or Linux with at least 8 GB RAM
  • A recent JDK version installed
  • Related software that Accelebrate will specify in a detailed setup sheet following the purchase of this class


Learn faster

Our live, instructor-led lectures are far more effective than pre-recorded classes

Satisfaction guarantee

If your team is not 100% satisfied with your training, we do what's necessary to make it right

Learn online from anywhere

Whether you are at home or in the office, we make learning interactive and engaging

Multiple Payment Options

We accept check, ACH/EFT, major credit cards, and most purchase orders



Recent Training Locations

Alabama

Birmingham

Huntsville

Montgomery

Alaska

Anchorage

Arizona

Phoenix

Tucson

Arkansas

Fayetteville

Little Rock

California

Los Angeles

Oakland

Orange County

Sacramento

San Diego

San Francisco

San Jose

Colorado

Boulder

Colorado Springs

Denver

Connecticut

Hartford

DC

Washington

Florida

Fort Lauderdale

Jacksonville

Miami

Orlando

Tampa

Georgia

Atlanta

Augusta

Savannah

Hawaii

Honolulu

Idaho

Boise

Illinois

Chicago

Indiana

Indianapolis

Iowa

Cedar Rapids

Des Moines

Kansas

Wichita

Kentucky

Lexington

Louisville

Louisiana

New Orleans

Maine

Portland

Maryland

Annapolis

Baltimore

Frederick

Hagerstown

Massachusetts

Boston

Cambridge

Springfield

Michigan

Ann Arbor

Detroit

Grand Rapids

Minnesota

Minneapolis

Saint Paul

Mississippi

Jackson

Missouri

Kansas City

St. Louis

Nebraska

Lincoln

Omaha

Nevada

Las Vegas

Reno

New Jersey

Princeton

New Mexico

Albuquerque

New York

Albany

Buffalo

New York City

White Plains

North Carolina

Charlotte

Durham

Raleigh

Ohio

Akron

Canton

Cincinnati

Cleveland

Columbus

Dayton

Oklahoma

Oklahoma City

Tulsa

Oregon

Portland

Pennsylvania

Philadelphia

Pittsburgh

Rhode Island

Providence

South Carolina

Charleston

Columbia

Greenville

Tennessee

Knoxville

Memphis

Nashville

Texas

Austin

Dallas

El Paso

Houston

San Antonio

Utah

Salt Lake City

Virginia

Alexandria

Arlington

Norfolk

Richmond

Washington

Seattle

Tacoma

West Virginia

Charleston

Wisconsin

Madison

Milwaukee

Alberta

Calgary

Edmonton

British Columbia

Vancouver

Manitoba

Winnipeg

Nova Scotia

Halifax

Ontario

Ottawa

Toronto

Quebec

Montreal

Puerto Rico

San Juan