Speakers list agenda

Managing Testing Data

12:50 - 13:30, 22nd of May (Wednesday) 2024/ DEV CODE STAGE

Have you ever tried to troubleshoot an issue by taking a look 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.

First, the Test Data Factory approach will show the Factory Pattern to easily create any objects we want with understandable and reliable data. This will put you in control of your 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.

After you 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.

LEVEL:
Basic Advanced Expert
TRACK:
Java Tests
TOPICS:
Java SoftwareEngineering

Elias Nogueira

Backbase