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

CodeSignal

Automating API Tests with Swift

via CodeSignal

Overview

Automate API tests using XCTest, Swift’s native testing framework, to test your API interactions, assert outcomes, setup and teardown environments, and ensure API reliability.

Syllabus

  • Unit 1: Introduction to API Testing with Swift and XCTest
    • Basic API Test with XCTest
    • Testing API Endpoints with Arrange-Act-Assert Pattern in Swift
    • Focusing API Tests on Completed Todo Items in Swift
    • Retrieving a Todo Item by ID with XCTest
  • Unit 2: Organizing Tests with Classes and Setup Methods in Swift and XCTest
    • Using XCTest for API Testing with Fixtures
    • Fixing Fixture Setup in XCTest for Todo Item Creation
    • Organizing Test Code with Fixtures in Swift
    • Encapsulating Test Functions in Swift with XCTest
    • Testing PATCH Request for Todo Item with XCTest
  • Unit 3: Testing CRUD Operations with Swift and XCTest
    • Insert Yield Statement in XCTest Fixtures
    • Building Setup Phase for CRUD Operations with XCTest
    • Implementing Teardown Phase for Swift XCTest
    • Ensuring Independent and Error-Free Tests with XCTest
    • Automating Test Setup and Teardown in Swift with XCTest
  • Unit 4: Testing Authenticated Endpoints with Swift and XCTest
    • API Key Authentication Test in Swift
    • Session Authentication Testing in Swift
    • Session Authentication Test Suite in Swift
    • Testing JWT Authentication in Swift
    • Testing JWT Authentication in Swift

Reviews

Start your review of Automating API Tests with Swift

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.