Job Opening for Tester of Web Apps at Moolya >>Could you spot this? This is intentional!

Testing on the Toilet: Cleanly Create Test Data

This article was adapted from a Google Testing on the Toilet (TotT) episode. You can download a printer-friendly version of this TotT episode and post it in your office.By Ben YuHelper methods make it easier to create test data. But they can become difficult to read over time as you need more variations of the test data to satisfy constantly evolving requirements from new tests:// This helper method starts with just a single parameter:Company company = newCompany(PUBLIC);// But soon it acquires more and more parameters.// Conditionals creep into the newCompany() method body to handle...


Share |

Published By: Google Testing Blog - Tuesday, 20 February, 2018