Spring Boot for Automation Testing - UI and Microservices

Automate application with the power of Spring Boot framework for UI and Microservices

3.65 (331 reviews)
Udemy
platform
English
language
Other
category
instructor
3,101
students
11 hours
content
Jul 2023
last update
$24.99
regular price

What you will learn

Spring Boot Basics for Automation testing

Spring boot with Selenium and Cucumber

Spring boot Microservices app development

Spring boot Microservice testing

Description

Spring boot for Automation testing course (UI and Microservices) course is designed to address some of the common and basic understanding of how to fuse Spring boot framework with automation testing tools like Selenium to perform UI automation and test Microservices based application using different toolings and techniques.

This course helps anyone who has ZERO knowledge in the Spring boot framework to get started with Spring boot for automation testing in a super easy and straightforward manner in both UI tech like Selenium and Microservices testing tech like RestAssured and TestRestTemplate and MockMvc.

This course has the following sections

1. Spring boot Basics

This section starts by creating a Spring boot project and writing the classical Selenium Java code and make a complete understanding of how to use Spring boot by giving idea on

a. Dependency Injection

b. Constructor injection

c. Field level injection

d. Value injection

e. Working with profiles and more.

2. Spring boot for Selenium automation.

This section fully focuses on the learnings from Section 1 and implement with the Selenium test framework

3. Spring boot for Selenium and Cucumber Integration

This section will focus on integrating Cucumber BDD with Selenium and Spring boot framework

4. Developing Microservice application with Spring boot

This section is all about developing a complete Spring boot microservice application from the ground up, which will then be used for testing in the next section

5. Testing Microservice application with Spring boot and RestAssured

In this section, we will be testing the application developed in Section 4 using

  • RestAssured

  • TestRestTemplate

  • MockMvc

6. Parallel Selenium execution with Spring boot

This section will have all the details required to perform parallel test execution with Spring boot and Selenium

7. RestAssured Crash Course

This section is a complete course covered in YouTube series and bought into this course to make everyone who is taking this course understand how to work with RestAssured in Java and how you could do the same in Spring boot as well.


And the end of the course, you will have a complete basic understanding of Spring boot to perform automation testing.

Content

Introduction

Introduction
Classical Selenium Java vs Spring Boot Selenium Java Code

Section 1 - Spring Boot Basics

Creating Spring boot Test Project
Writing simple classical Selenium Page Object code (Optional)
Problem with the classical Selenium Page Object Model Code
Dependency Injection
Understanding Spring boot Application Context and @Component
Spring Boot - Constructor dependency Injection
Spring Boot - Field level dependency Injection
Spring Boot - Value Injections
Working with Spring Boot Profiles to work with multiple testing environments
@ConditionalOnProperties for choosing the correct bean based on environment
Complete Source Code of Section 1

Section 2 - Spring Boot with Selenium

Introduction
Creating Selenium WebDriver library
Understanding Spring boot lifecycle and @PostConstruct
Extend @PostConstruct with Abstract WebDriver BasePage
Spring Boot Selenium test with TestNG integration
Running test with TestNG.xml file
Cross browser testing of Selenium with Spring boot profiles
Running Selenium TestNG test from CLI
Complete Source code until Section 2

Section 3 - Spring boot with Selenium and Cucumber Integration

Introduction
Adding Cucumber Dependency in Spring boot project
Adding Step definitions to our Employee App scenarios
Creating AbstractTestNGCucumberTest and Cucumber Context in Spring boot
Writing Cucumber Hooks and running Tests
Running Cucumber Scenarios from CLI
Working with Scenario Scopes - Passing data from one step definition to other
Source code

Section 4 - Writing Microservice application with Spring boot

Introduction
Creating Spring boot @RestController class
Creating Models for Rest API using Lombok
Crash course -Contract Testing (From RestAssured course)
Crash course - Using Lombok (From RestAssured course)
Creating Controller to return List of Employees using Entity
Creating Spring boot @Service
Performing POST operation with RequestMethod.Post
Performing @PutMapping for PUT operation
Performing @DeleteMapping for DELETE operation
Summary
Source code

Section 5 - Testing Microservice application with Spring boot and RestAssured

Introduction
Understanding @SpringBootTest with ApplicationContext and Web application start
Writing TestRestTemplate GET test on the Microservices
Writing TestRestTemplate GET on Microservices for Array of response
POST operation with TestRestTemplate
Additional Details on RestAssured - Covered in Section 6
Maven Dependencies of RestAssured in SpringBoot
GET operation with RestAssured in Microservice
POST operation with RestAssured in Microservice
PUT operation with RestAssured and how to identify issue early in micro service
Understanding Mocking Microservice Services with MockMvc
Creating Mock GET using MockMvc for our Microservice controller testing
Working with Array of Response with Mock using MockMvc
Summary
Source code

[CRASH COURSE] - API Testing RestAssured with Cucumber

Introduction
Installing JSON Server for API testing
GET API operation with RestAssured
GET operation with params
Understanding and building Non-BDD Styled API Tests
Understanding and building Non-BDD Styled Test (Contd)
POST with Path param and Body in RestAssured
Creating POST operation with BDD Styled library
Working with DELETE operation
Implementing Cucumber Step definition for DELETE operation
Working with PUT operation
Creating Fake JSON server with oAuth support
Testing API using Bearer Token
Deserialising JSON response to POJO class
Deserialising JSON response to POJO for complex response - Part 1
Deserialising JSON response to POJO for complex response - Part 2
JSON Schema matcher with RestAssured
Refactoring RestAssured library to generic library - Part 1
Refactoring RestAssured library to generic library - Part 2
Refactoring RestAssured library to generic library - Part 3
Serializing POJO class to JSON Object in RestAssured

Screenshots

Spring Boot for Automation Testing - UI and Microservices - Screenshot_01Spring Boot for Automation Testing - UI and Microservices - Screenshot_02Spring Boot for Automation Testing - UI and Microservices - Screenshot_03Spring Boot for Automation Testing - UI and Microservices - Screenshot_04

Reviews

A
September 25, 2023
I listen some of this and dont believe the course is organized at all..I do appreciate the effort ,however this does not really worth the money I pay.
Nemanja
March 13, 2023
Firstly, I found that the course lacked the depth and detail that I was hoping for. The content covered in the course felt rather superficial, and I didn't feel like I gained a solid understanding of the topic. Additionally, I found that the course structure was confusing and disorganized. It was difficult for me to follow along with the lectures, and I often found myself feeling lost or unsure of what to do next. Crash course as a last section took almost 4 hrs and surprisingly it was about RestAssured and Cucumber, not focusing at all on SpringBoot which is the main topic of this course, and during the course it was told that the code will be refactored to show how dependency injection is being implemented on this code but we saw none of that. Overall, I think that the course has the potential to be a great resource for learners, but it needs significant improvement. I would recommend revisiting the course content and structure to make it more comprehensive and easier to follow.
Vaclav
December 29, 2022
This is a very nice course. The sequence of topics is greatly chosen. You understand exactly why you are doing particular things, it is not just listing of all functions that cucumber or selenium offers. This course is a kind of summary, of how Cucumber, TestNG, Selenium and Spring Boot work together. If you don't know all these technologies yet, it might be a bit challenging for you. But if you plan to apply this development stack, I recommend you to see this course anyways, since it nicely glues all these things together. I would just omit the last RestAssured section. To my opinion, it doesn't fit here much. Very well made! Thank you, Karthik!
Forrest
October 20, 2022
I have been researching converting an existing project to Spring Boot for a few days and have learned more about doing so just in the intro of this class. Excellent content!!!
Miu
August 22, 2022
After failing purchasing other courses, i found this trainer which explains very well. Best regards for this trainer.
Hugo
April 21, 2022
Course is not updated for Selenium 4 compatibility and the students may encounter some issues that may not be able to easily solve. If not solved, the part of the course respecting Selenium becomes unusable. Also the course itself has a lot of gaps and it is somewhat superficial.
Aayush
December 22, 2021
must be little depth. Not for beginners. But the people who had base knowledge the course is superb..
Srivatsa
May 20, 2021
Very interesting to see how to leverage the flexibility of springboot for automation testing. I have seen Karthik videos before and this one definitely maintains the standard.
HOANG
May 11, 2021
I had a good experience with this course, especially with the part of Spring Boot with TestNG and GitHub actions! Thank instructor a lot!

Charts

Price

Spring Boot for Automation Testing - UI and Microservices - Price chart

Rating

Spring Boot for Automation Testing - UI and Microservices - Ratings chart

Enrollment distribution

Spring Boot for Automation Testing - UI and Microservices - Distribution chart
3905734
udemy ID
3/11/2021
course created date
3/23/2021
course indexed date
Bot
course submited by