- This repo contains example code for generating the fake test data using Builder design pattern in Java Lombok and DataFaker library.
- This repo uses Maven as build tool and TestNG testing framework to run the tests.
- To run the test from command line use the following command:
mvn clean install
- Tests can also be run using TestNG by right-clicking on the
testng.xml
file and selecting the optionRun .. \testng.xml
Following blog will give you more insights on how to use Builder Pattern with Lombok and generate fake data using Data Faker library:
Checkout the following blogs where I have used the Builder Pattern with Lombok to generate fake data on run time and used it in end-to-end tests:
- End to End API testing using rest-assured
- End to End Testing using Selenium WebDriver and Java
- Writing Selenium Web Automation tests in Fluent way!
🧬 Need Assistance?
- Discuss your queries by writing to me @
mohammadfaisalkhatri@gmail.com
OR - Ping me on any of the social media sites using the following link:
Contact me for Paid trainings related to Test Automation and Software Testing,
mail me @ mohammadfaisalkhatri@gmail.com
or ping me on LinkedIn