QTest Lib supports adding test data to a test function. All we need is to add another private slot to our test class. We define the two elements of our test table using the QTest::add Column() function. A test string, and the expected result of applying the QString::to Upper() function to that string. Then we add some data to the table using the QTest::new Row() function. Each set of data will become a separate row in the test table.