TestMu
Testμ 2024
/
Elias Nogueira

Elias Nogueira

Senior Principal Software Engineer in Test, Backbase

Watch Now

(Recordings Available)

session

Managing Testing Data

About the Talk

Have you ever tried to troubleshoot an issue taking a looking at the log files? I bet you did! And it turns out the issue is related to data usage because, you know, users will use real data! Developers won't! A good thing about your recent troubleshooting is that you can understand the data. It's not a bunch of numbers or UUIDs in the name field. How about your development environment? Probably you use either hard-coded data or random strings. We must fix that!

This presentation will show you how to manage testing data in two different ways.

The first way is the creation of a Test Data Factory approach, where we will use the Factory Pattern to easily create any objects we want with understandable and reliable data. This approach will make you in control of your own data, so you can find any bug in the early stages of the SDLC and the DataFaker library will help us to generate good random data in every execution. In a second way, we will learn and apply the Data-Driven Testing approach, where the same requirement can be applied to different sets of data, generating different results. This approach can reduce the amount of code and the execution time. With the support of JUnit 5 you will learn how to do it in 5 different ways: value source, internal method source, external method source, argument provider, and CVS source.

During this presentation you will learn how to write Data-Driven tests using JUnit 5 in a Spring Boot application in the integration layer, using the Test Data Factory approach to easily create all the necessary and reliable data.

Technologies in use

  • Java 17
  • JUnit 5 to create the integration tests, along with AssertJ as the assertion library
  • DataFaker as a data generation library
  • SpringBoot to show the application under test, which is a microservice with a few business rules

Key Takeaways:

  • Learn how to better manage testing data and find bugs faster
  • Learn to use Data-Driven Testing in different ways using JUnit 5
  • Learn how to apply the Factory pattern to better create different types of data

About the Speaker

Elias is a Senior Principal Software Engineer, Java Champion, Oracle ACE for Java, Browserstack champion and JavaMagazine NL Editor.

He specializes in Quality Engineering for backend, frontend and mobile and loves sharing knowledge through his blog, writing articles and giving talks around the world.

About Testµ Conference

Testµ Conference is a virtual or online-only conference to define the future of testing. Join over 30,000+ software testers, developers, quality assurance experts, industry experts, and thought leaders for 3 days of learning, testing, and networking at Testμ Conference 2024 by LambdaTest.

TestMu

Join the Testing Event of the Year

By clicking Register Now you accept the LambdaTest Terms of Service, Code of Conduct and acknowledge the Privacy Policy and Cookie Policy

(Recordings Available)

Testmu