[Test Data] Employee registration with Java Faker using a random data set

Sajitha Pathirana
3 min readDec 26, 2021

You might have struggled at least a day in your life to generate the required test data for your tests. No longer you have to undergo the hassle you went through today.

Photo by Sammy Williams on Unsplash

Java faker provides a robust API to generate data. This is a java library we can use to generate data for our requirements.

Here is my article on Java faker which covers basic usage of Java Faker

In this article, I am going to cover a practical application of java faker for test automation.

I am going to use the below website as my system under test.

Test Case is to fill the fields of employee basic details, employee contact details, and employee tenure details using a random set of data.

--

--

Sajitha Pathirana
Sajitha Pathirana

Written by Sajitha Pathirana

A Test automation enthusiast, passionate to help the teams to enhance their testing journey with his decade of experience in the field.

No responses yet