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

CodeSignal

Automating API Tests with Dart

via CodeSignal

Overview

Learn to write automated tests for Dart APIs using test.dart and http.dart. You'll create test cases, send API requests, assert results, reuse code with fixtures, and cover CRUD and auth scenarios—ensuring your APIs are reliable and fully tested.

Syllabus

  • Unit 1: Introduction to API Testing with Dart
    • API Testing with the Test Package
    • Automating API Tests with the Arrange-Act-Assert Pattern
    • Focusing API Tests on Completed Todo Items
    • Retrieve a Todo Item by ID Using API Testing
  • Unit 2: Organizing Tests With setUp and tearDown in Dart
    • Sharing Test Data Between setUp, Test, and tearDown Functions
    • Fix the Setup and Tear Down Bug
    • Implementing Teardown for Clean Tests
    • Implementing Test Setup in Dart
    • Testing Todo Updates with Dart
  • Unit 3: Testing CRUD Operations with Setup and Teardown in Dart
    • Testing Read Operation with Dart
    • Mastering Update Test
    • Implementing the Delete Test
  • Unit 4: Testing Authenticated API Endpoints with Dart
    • Testing API Key Authentication
    • Session Authentication Testing with Reusable Helper Method
    • Session Authentication Test Suite Implementation
    • Testing JWT Authentication for API Endpoints
    • Testing JWT Authentication for Protected Endpoints and Logout

Reviews

Start your review of Automating API Tests with Dart

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.