Must know Java Libraries – SDET Essentials
Explore these amazing libraries and learn how to use them in Test Automation Space
What you’ll learn
Must know Java Libraries – SDET Essentials
- Learn to write clean code
- Leveraging brilliant Java libraries in Test Automation Space
- To identify what a bad code look like
- To understand the problems with the existing code to read Property File
- To understand the problems with the existing code to read Excel File
- To understand the problems with the existing code while creating POJO’s in Rest Assured
- To effectively use the owner library to Read Property files in Java
- To effectively use the Zero cell library to Read Excel files in Java
- To effectively use the Fixture Factory library to create POJO’s using templates
- To effectively use the Fixture Factory library to create 100’s POJO’s without writing much code
- To understand and use these libraries in Test Automation with a data provider
- To understand the problems while creating getter, setter methods, constructors, to string methods
- Creating the getter, setter, constructors, toString methods, and builder pattern with Lombok
Requirements
-
Basic knowledge of Java and Test Automation is preferred.
-
Basic testing process knowledge
-
Experience in working with Excel, Property files, and POJO in Java is preferred
Description
Java has a lot of amazing external libraries which can help us to write clean code. I have covered 4 of those amazing libraries in detail and how to use them in real-time projects.
1. Owner – To resolve the problems we face while reading property files.
Owner Library can help to reduce all the boilerplate code we write while reading property files. No need to do Exception Handling. It comes bundled with some amazing features like DefaultValue on missing attributes, Key Annotation for Mapping, and much more.
2. Zerocell – To resolve the problems we face while reading the excel sheet. Excel Reading – No more a pain
We normally use the Apache poi library for Excel Reading in Java. However, we need to write a lot of code to get the work done. Working with different data types like Integer, dates, and comma-separated strings in excel is again a big problem. Zero cells provide a solution for all the boilerplate codes we write.
Reusable Converter classes help us to maintain the business logic away from tests.
3. Fixture Factory – Generate POJO’s for you rest assured tests using Template – Easy and Fast.
We normally generate POJOs for testing rest services. However, we spend so much time passing the values to the POJO fields. Fixture Factory helps us to create objects based on templates and can create thousands of objects on the fly.
4. Lombok – Say Good Bye to Verbosity.
Implement these libraries in your company and stun your colleagues!
Who this course is for:
- SDET
- Test Automation Engineers
- Java Developers
- Support Analyst with Java Knowledge
Add Comment