Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

CodeSignal

Automating API Tests with JavaScript

via CodeSignal

Overview

In this course, learn to write automated API tests with Mocha and Chai in JavaScript. You'll master setting up test cases, making API requests, asserting outcomes, using hooks for setup/teardown, and handling scenarios like CRUD operations and authentication. Build skills to ensure API reliability and functionality.

Syllabus

  • Unit 1: Introduction to API Testing with Jest
    • Basic API Test with Jest
    • Completing an API Test with Jest Using the AAA Pattern
    • Focusing Jest Test on Completed Todos
    • Creating a Jest Test for Retrieving a Todo Item by ID
  • Unit 2: Organizing Tests with Classes and Fixtures in JavaScript
    • Using Fixtures and Class-Like Structures in Jest for API Testing
    • Fix the Fixture Setup in Jest Test
    • Creating and Using Fixtures in JavaScript Tests
    • Encapsulating Test Functions and Fixtures in Class-Based Structures
    • Updating a Todo Item with PATCH Request Using Jest
  • Unit 3: Testing CRUD Operations with Jest and Fetch API
    • Completing Setup and Teardown for CRUD Tests with Jest
    • Building Setup Phase for CRUD Tests with Jest
    • Implementing Teardown Phase in Jest for CRUD Operations
    • Automating Setup and Teardown in Jest Tests
  • Unit 4: Testing Authenticated API Endpoints with JavaScript
    • API Key Authentication Test in JavaScript
    • Session Authentication with JavaScript
    • Testing JWT Authentication in JavaScript
    • Testing JWT Authentication in JavaScript

Reviews

Start your review of Automating API Tests with JavaScript

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.