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

Coursera

REST API Automation With REST Assured - Zero To Hero

Packt via Coursera

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
This course features Coursera Coach! A smarter way to learn with interactive, real-time conversations that help you test your knowledge, challenge assumptions, and deepen your understanding as you progress through the course. Learn the fundamentals and advanced techniques of REST API automation using REST Assured from scratch. This course covers everything from setting up Java, Eclipse, and REST Assured to creating robust automation frameworks for REST API testing. By the end of the course, you'll have hands-on experience in automating REST API requests using tools like Postman and REST Assured, performing validations, handling JSON and XML responses, and using OAuth for real-world API integrations such as Twitter. You will start by setting up the necessary tools, including Java and Eclipse, before diving into understanding REST API architecture and HTTP methods. You will get practical examples and tutorials on working with GET, POST, PUT, and DELETE requests, along with advanced topics like OAuth authentication and response validations. The course also walks you through creating your own REST API automation framework using Maven and integrating with Jenkins for continuous integration. This course is ideal for beginners who are new to API automation testing as well as professionals looking to enhance their automation skills. By the end of the course, you will be equipped to design and implement REST API test automation workflows, perform test validations, and troubleshoot errors in a real-world setting.

Syllabus

  • Introduction
    • In this module, we will introduce the course structure, the instructor’s background, and how to effectively reach out for support during your learning journey. We will also provide insight into what you can expect to achieve by the end of this course.
  • Java Setup and Installation
    • In this module, we will guide you through the process of installing Java Development Kit (JDK) and Eclipse, covering both Mac and Windows systems. You will also learn to choose the right version of JDK to optimize your development environment.
  • REST API Introduction
    • In this module, we will dive into the fundamentals of REST API architecture, including the different HTTP methods (GET, POST, PUT, DELETE), how they interact with servers, and the importance of testing responses with tools like Postman and Google Chrome.
  • REST Client Setup
    • In this module, we will walk you through the installation and setup of Postman, advanced REST clients, and REST Easy clients. These tools are essential for executing and testing RESTful web services efficiently.
  • REST API Testing Using Postman Client
    • In this module, we will demonstrate how to use Postman to send various HTTP requests like GET and POST, work with real API examples like Google Maps, and help you learn how to secure your requests using API keys.
  • REST Assured Setup
    • In this module, we will guide you through the process of setting up REST Assured for API automation, and cleaning up the project by removing any unnecessary dependencies from your build path.
  • REST API Automation Overview
    • In this module, we will demonstrate practical examples of sending GET and POST requests using REST Assured, validate responses, and explore the JSON hierarchy for proper validation in REST API testing.
  • OAuth Real World Twitter APIs Example
    • In this module, we will walk you through the OAuth authentication process for accessing Twitter APIs, how to generate access tokens, and how to perform GET and POST requests on Twitter using REST Assured.
  • Validating JSON Response
    • In this module, we will show you how to extract and validate JSON responses from REST APIs using JSON Path, ensuring that the data you receive is accurate and meets expectations.
  • Twitter End-To-End Workflow
    • In this module, we will guide you through the end-to-end testing of Twitter’s API using REST Assured, demonstrating GET, POST, and DELETE requests, and explaining how to use path parameters in the workflow.
  • Validating XML Response
    • In this module, we will teach you how to extract and validate XML responses using XML Path, enabling you to properly test APIs that return data in XML format.
  • Request and Response Logging
    • In this module, we will explore how to log both requests and responses when working with REST Assured, which is critical for debugging and understanding API behavior during testing.
  • REST Assured Assertions
    • In this module, we will show you how to use assertions in REST Assured, covering both hard and soft assertions to validate API responses effectively during automation testing.
  • Useful Tricks
    • In this module, we will introduce useful tips and tricks for optimizing your REST Assured tests, including the Root Path concept and how to measure and validate response times for better performance.
  • REST Assured Specifications
    • In this module, we will teach you about REST Assured specifications, their advantages, and how to create and use request and response specifications to streamline your API automation tests.
  • Automation Framework - Part 1
    • In this module, we will discuss the advantages of using an automation framework, help you set up a Maven project, and show you how to organize constants and dependencies within the framework.
  • Automation Framework - Part 2
    • In this module, we will guide you through the process of building utility classes for your REST Assured API automation framework, enhancing the efficiency and organization of your tests.
  • Automation Framework - Part 3
    • In this module, we will show you how to convert a User Timeline test class into a framework test class, ensuring that your tests are well-structured and easy to maintain.
  • Practice Exercise
    • In this module, you will engage with practice exercises designed to test your knowledge, where you’ll convert the Twitter End-To-End Workflow test class into a framework-compatible format.
  • End-To-End Framework Execution
    • In this module, we will demonstrate how to execute your complete test suite using TestNG and Maven, ensuring your automation framework runs smoothly from start to finish.
  • Git and GitHub – Version Control System
    • In this module, we will walk you through the process of setting up Git and GitHub, using version control to manage your codebase, handle conflicts, and ensure smooth collaboration.
  • Continuous Integration with Jenkins
    • In this module, we will introduce Jenkins, cover its setup on different platforms, and show you how to integrate it with GitHub for seamless continuous integration and automation of your projects.
  • Build Management with Maven
    • In this module, we will introduce Maven, helping you set it up, explore its features, and understand how to use Maven for build management and dependency resolution.
  • Conclusion
    • In this final module, we will discuss other exciting courses offered by the instructor, helping you continue your learning journey and apply your newfound skills in real-world scenarios.

Taught by

Packt - Course Instructors

Reviews

Start your review of REST API Automation With REST Assured - Zero To Hero

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.