
Discover field injection in Spring by autowiring a local field, removing constructors and setters, and seeing injected values print automatically when the bean runs.
Ensure that Spring manages your objects by annotating with @Component to enable autowiring and avoid no qualifying bean errors and null pointer exceptions.
Learn to inject default configuration values in Spring Boot when environment variables are absent, using colon syntax in value annotations to prevent exceptions.
Dear All,
There is a recent change as part of Spring 3 version. Any "javax" package to be replaced with "jakarta".
For example, in the following lecture, I will import a package.
import javax.annotation.PostConstruct;
This is changed to
import jakarta.annotation.PostConstruct;
Thanks.
Build a simple test automation framework with Spring Boot, Selenium, and WebDriverManager by creating a WebDriver bean, configuring dependencies, and building a page object to run JUnit tests.
Enhance test robustness for the Google page search component by handling Ajax suggestions with Selenium, adding a click or tab to dismiss suggestions, improving cross-browser reliability in Chrome and Firefox.
Build the Google page object by composing page components such as the search component and search result, extending the base class and following the single responsibility principle.
Create a Google test class in spring boot, extend spring base test, autowire Google page, launch the site with TestNG, and assert search results exceed two.
learn how to inject a unique bean with spring boot by using the @Primary annotation to resolve multiple webdriver implementations, ensuring Firefox launches without errors.
Discover how spring profiles let you override application.properties per environment (default, staging, qa) by activating a specific profile with spring.profiles.active.
Activate the spring profiles by setting spring.profiles.active to run tests in dev, qa, stg, and prd environments, and run maven tests with the profile.
Use Spring profiles to run tests across dev, staging, QA, and production with lazy beans and remote or local webdriver configurations via a grid URL and Firefox or Chrome drivers.
Demonstrate a bean scope issue with a simple demo, showing how a single salary bean autowired into junior and senior engineers overwrites amounts during tests, and what’s behind it.
Model a single properties class to inject flight app details for a Google flight application test in Spring Boot, using property source and value annotations to drive actions and assertions.
Dive into a Google flight test demo within a Java + Spring Boot SDET framework, resolving resource path issues, handling fullscreen mode, and validating multi-language labels and command-line parameterization.
Create page objects for the Windows Switch service, extending the base page, implement the main page with link collection, and automate launching the site and clicking each link.
Demonstrates a selenium-based test in a Java + Spring Boot SDET framework, comparing Chrome and Firefox for window switching, with waits for new windows and switching by title or index.
Learn to implement an aspect oriented window switch using @Aspect in a spring selenium framework, applying a before advice to switch windows by title and return to the main window.
Unlock the potential of Spring Boot in your Test Automation Framework and achieve more with less code. In this course, you'll harness Spring Boot's power to create a robust test automation framework for functional tests using Selenium and Cucumber.
Key Learning Points:
Dependency Injection: Automate object creation in Page Objects and test classes effortlessly with Spring's support.
WebDriver Manager: Seamlessly manage web driver life cycles using Spring Boot.
Page Objects & Page Fragments: Create reusable page components and inject them into Page Objects.
Parallel Test Execution: Implement multi-threading, web driver management, and parallel test execution with clear thread-specific scope.
Test Execution in Multiple Environments: Manage environment-specific properties like URLs and user credentials via property files.
Localization Testing: Validate language keywords for applications supporting multiple languages with Spring Boot.
Data Driven Testing using Spring Data JPA: Execute tests by reading data from spreadsheets with ease using Spring Data JPA.
Cucumber Feature Files: Embrace Behavior-Driven Development (BDD) by writing Cucumber feature files to drive tests.
Handling External Resources: Access external resources such as properties and files within the framework.
Automatic Window/Frame Switching: Effortlessly switch between windows/frames using annotations like @Window.
Aspect-Oriented Programming (AOP): Automatically capture screenshots in your tests using AOP.
Local vs. Remote Grid: Execute tests locally or on remote Selenium grids by easily switching Spring profiles.
And much more to supercharge your test automation capabilities!