Overview
Testing and validating REST services in Java is harder than in dynamic languages such as Ruby and Groovy. REST Assured is a Java DSL (domain specific language) that brings the simplicity of these languages into the Java domain.
In this instructor-led, live training, participants learn how to use Rest Assured to test REST API services. We discuss how API testing can resolve some of the shortcomings of UI and unit based testing. The training includes practice sessions and a test development project. By the end of the training, participants will have a good understanding of when to carry out REST API testing, how to explore and access APIs, how to carry out different types of testing, and how to bring their tests together through integration and automation.
Format of the Course
- An instructor-led course that includes an introduction to API testing, its tools and processes, and a hands-on REST Assured based test development project.
Requirements
- Basic knowledge of REST API.
- Software testing experience in Java.
Audience
- QA engineers, testers and test developers involved in testing software and web service APIs
Course Outline
Introduction
- What is API testing and why should you do it?
- REST vs SOAP based API testing
Overview of the Three-Tier Architecture Model
- Presentation Tier – User interface (UI)
- Logic Tier – Business logic (API)
- Data Tier – database data (DB)
Overview of the Rest Assured Syntax
- Similarities with Gherkin and BDD
Creating a Project
Testing the Logic Tier
Sending Requests to the API
- POST, GET, PUT, DELETE, OPTIONS, PATCH and HEAD requests
Validating and Verifying Responses
Testing API Functionality
Working with TestNG
Testing API Reliability
Carrying out Performance Testing
Carrying out Security Testing
Debugging
Automating Your Tests
Summary and Conclusion