Build reliable API test suites using JUnit in Java. By the end of this course, you'll be able to set up test cases, make API requests within tests, assert expected outcomes, handle different testing scenarios including CRUD operations and authentication mechanisms. This will help you ensure the reliability and functionality of APIs effectively.
Overview
Syllabus
- Unit 1: Introduction to API Testing with Java, HttpClient, Gson, and JUnit
- Basic API Test with JUnit
- Testing API Requests with Arrange-Act-Assert Pattern in Java
- Focus on Retrieving Complete Todo Items
- Retrieving a Todo Item by ID Using JUnit
- Unit 2: Organizing API Tests with JUnit, HttpClient, and Gson
- Using JUnit and HttpClient for Efficient API Testing
- Fixing Fixture Setup in JUnit for Todo API Test
- Organize Test Code with Fixtures in Java
- Unit 3: Testing CRUD Operations with Java, HttpClient, Gson, and JUnit
- Building Setup Phase for CRUD Operations Testing in Java
- Implementing Teardown Phase for CRUD Operations in Java Tests
- Ensuring Independent and Error-Free Tests with JUnit
- Automating Setup and Teardown in Java Tests
- Unit 4: Testing Authenticated Endpoints with Java, HttpClient, Gson, and JUnit
- API Key Authentication Test Task
- Implementing Session Authentication Testing in Java
- Session Authentication Test Suite Implementation
- Testing JWT Authentication in Java
- Extending JWT Authentication Tests in Java