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

CodeSignal

Automating API Tests with RSpec

via CodeSignal

Overview

In this course, you will learn to write automated API tests using RSpec and Net::HTTP in Ruby. You'll set up test cases, make API requests, assert outcomes, use shared contexts, and test CRUD and authentication scenarios to ensure API reliability.

Syllabus

  • Unit 1: Writing Basic Tests with RSpec
    • Exploring Basic API Test Execution
    • Completing Your First API Test
    • Customizing API Test Requests
    • Creating A New Test
  • Unit 2: Organizing Tests With Let and Before Blocks
    • Complete Your API Test with RSpec Let Blocks
    • Fix the Let Block in RSpec Todo API Test
    • Organizing Tests with RSpec Let Blocks
    • Organizing Tests with RSpec Describe and Context Blocks
    • Mastering Testing with RSpec Let Blocks
  • Unit 3: Testing CRUD Operations with RSpec: Setup and Teardown
    • Implementing Setup and Teardown Hooks in RSpec for CRUD Testing
    • Building the Setup Phase for CRUD Testing with RSpec
    • Implementing Teardown Phase in RSpec CRUD Tests
    • Fix Setup and Teardown in RSpec CRUD Tests
    • Implementing Setup and Teardown Hooks in RSpec for CRUD Testing
  • Unit 4: Testing Authenticated API Endpoints
    • Testing API Key Authentication
    • Testing Session Authentication Login
    • Implementing Session Authentication Tests for Protected Routes
    • Testing JWT Authentication Login
    • Testing JWT Authentication for Protected Endpoints and Logout

Reviews

Start your review of Automating API Tests with RSpec

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.