Automation QA Testing Course Content
Java_OOP_Concepts_Cheat_Sheet-Aug23-2022
I’M Ramesh Ch AND I’M FULL STACK TEST AUTOMATION ENGINEER.Have passed 15 years playing with QA automation in various projects/Products. Currently I am working with famous as SDET.
I am passionate about designing Automation Frameworks that follows OOPS concepts and Design patterns. For automation,
my weapons are Selenium(Java), Appium, REST-Assured, Cucumber, etc.I live in Bangalore[KA, India], with my wife and a lovely son.
Please connect with me at LinkedIn. Follow RameshQAAutomationPlatform for latest updates on QA Events and Tutorials.
Javafaker API - Generate Real-Time Fake Data - Using Faker Class
Generate Random Data in Java using Java Faker Class
It is a library that can be used to generate a wide array of real-looking data from a mobile number, addresses, names to popular culture references. This is really helpful when we want to use some placeholder but don't have actual data. Like you want to generate credit card data and want to do validation against that. Faker library will help you to generate that.
In the microservices-based development, we need data to do against validation, and generate the dummy test data is quite a challenging task. In this article, we will be looking at how to resolve this using Faker
add below dependency,
Maven:
<dependency><groupId>com.github.javafaker</groupId><artifactId>javafaker</artifactId><version>1.0.2</version></dependency>
Gradle
compile group: 'com.github.javafaker', name: 'javafaker', version: '1.0.2'Just make fun and start using random data, just create below
Faker feku = new Faker();If you want to generate with different locales:
Faker faker = new Faker(new Locale("YOUR_LOCALE"));
//e.g en-US
Faker feku = new Faker(new Locale("en-US"));This library provides you access to more than 35 different domains and provides data nearly to every real-life use case. The domains like below
- Finance
- Food
- Books
- Name
- Address
- Business
- ChuckNorris
- HarryPotter
- LordOfTheRings
Check all the list of available domain and locale it supports:
https://github.com/DiUS/java-faker
I’M Ramesh Ch AND I’M FULL STACK TEST AUTOMATION ENGINEER.Have passed 15 years playing with QA automation in various projects/Products. Currently I am working with famous as SDET.
I am passionate about designing Automation Frameworks that follows OOPS concepts and Design patterns. For automation,
my weapons are Selenium(Java), Appium, REST-Assured, Cucumber, etc.I live in Bangalore[KA, India], with my wife and a lovely son.
Please connect with me at LinkedIn. Follow RameshQAAutomationPlatform for latest updates on QA Events and Tutorials.