
Explore how Spring Boot enables faster API testing with in-memory integration and unit testing, uses dependency injection to simplify Selenium and Playwright driver management, and supports parallel execution for CI/CD.
Explore why Spring Boot accelerates automation testing with auto configurations, dependency injection, embedded servers, and rapid API and microservice testing, including contract testing with Pact and Testcontainers.
Understand how a Spring bean is an object instantiated, configured, and managed by Spring's inversion of control, and explore its lifecycle from definition to destruction with annotations or Java configuration.
Explore using Selenium with Spring Boot for automation testing, leveraging dependency injection, WebDriver lifecycle management, and page object model to reduce boilerplate and improve test configuration with profiles.
Explore how to use a testng.xml file to run tests by defining a suite, test, and classes, and execute tests from XML in IntelliJ with the testing plugin.
Migrate test code to Playwright by initializing Chromium with launch options and adopting a page object model, using Spring Boot field-based injection to manage page objects as beans.
Implement login step definitions for the employee app, using data tables and assertions to verify the home page and employee details, and prepare for the test runner.
Extend the test runner from abstract test NG and configure Cucumber options with features and glue, then add Cucumber test context configuration and Spring Boot test.
Investigate parallel execution in Spring Boot Selenium tests and why each test needs a separate WebDriver instance, comparing thread and scope approaches, and enabling true parallelism.
Explore how Spring Boot bean scopes affect parallel WebDriver tests, switch from singleton to prototype, and implement custom scopes to manage WebDriver instances across page objects.
Run Selenium Grid tests with parallel execution and Cucumber integration using a Spring Boot setup, resolving remote vs local WebDriver configurations and profile-based context selection.
Perform a put operation to update an employee by id using @PutMapping in a spring boot microservice. Update name and phone via request body and return the updated employee.
Apply test rest template to microservices testing in Spring Boot, using local server port, rest template methods, and arrange-act-assert patterns to verify get employee by ID.
To understand and work with RestAssured for API testing which is covered in ExecuteAutomation YouTube channel, I have brought the course right into this course as a section (Section 6), so feel free to jump that section to get to know about RestAssured, which will help you learn API testing RestAssured if you are a newbie to it.
Section 6 covers the complete basic to advanced concepts of RestAssured
Master automating microservices with rest assured in Spring Boot tests, add json path and xml path dependencies, configure base URL from application properties, and use a BDD style get operation.
demonstrates an arrange act assert approach to rest assured testing in a microservice, performing get and post operations with a mapped employee class and request body.
Write an arrange–act–assert test using mock mvc to call the employee controller, mocking the service so get employee by ID returns an employee and the endpoint employee/1 yields status OK.
Explore how to perform get requests with path and query parameters using rest assured and cucumber, verify responses contain the author name, and see parameter substitution in urls.
Learn to perform API authentication testing with bearer tokens using Rest Assured: obtain an access token via login and call a protected get operation with a bearer authorization header.
Deserializing json responses to pojo classes with rest assured demonstrates replacing hand-coded json with strongly typed plain old Java objects for reliable api testing.
Spring Boot for Automation Testing (UI and Microservices) is designed to provide a clear and practical understanding of how to integrate the Spring Boot framework with popular automation testing tools like Selenium & Playwright for UI automation, and RestAssured for testing micro services. This course caters to beginners, even those with ZERO prior knowledge of Spring Boot, by offering an easy-to-follow approach to mastering automation testing for both UI and microservices-based applications.
What You Will Learn:
By the end of this course, you’ll have a solid foundation in Spring Boot and its application in automation testing, including:
1. Spring Boot Basics
In this section, you’ll learn how to create a Spring Boot project and integrate it with Selenium to automate UI testing. We’ll cover key concepts like:
• Dependency Injection (DI)
• Constructor Injection
• Field Injection
• Value Injection
• Profiles, and more.
2. Spring Boot for Selenium Automation
Building on the knowledge from Section 1, you’ll apply Spring Boot to structure Selenium tests, streamlining your automation framework.
3. Spring Boot for Selenium and Cucumber Integration
Learn how to integrate Cucumber with Selenium and Spring Boot to write BDD-style (Behavior-Driven Development) test cases that are human-readable and efficient.
4. Parallel Selenium Execution with Spring Boot
Learn how to run Selenium tests in parallel using Spring Boot, helping you to scale and optimize test execution.
5. CI/CD of Selenium Test with Github Actions
Learn how to Selenium test within Github Actions along with Spring boot
6. Developing Microservice Applications with Spring Boot
In this section, we’ll guide you through creating a microservice application using Spring Boot from scratch, which we’ll then use for testing in the next section.
7. Testing Microservices with Spring Boot and RestAssured
Test the microservice application built in Section 4 using:
• RestAssured for API testing
• TestRestTemplate
• MockMvc for testing Spring MVC web components
8. RestAssured Crash Course
A bonus crash course on RestAssured, originally featured on YouTube, has been added to teach you how to perform API testing in Java. You’ll also learn how to apply these techniques within the Spring Boot framework.
And the end of the course, you will have a complete basic understanding of Spring boot to perform automation testing.