Loading test data using Test.loadData
Depending on the type of work you are doing as a developer, your testing practices may vary greatly. For those who work on consultative projects, defining test data in the way we have just described will enable you to have a simple-to-use framework for adding new data as you work with a client and is a simple way for any other developer who works with that client to maintain the data. For independent software vendor (ISV) organizations and those who are part of a team working on a defined internal environment, a greater level of quality assurance may occur with dedicated testing teams, to validate the solution through the UI. This is not to say that this does not happen on consultative projects, but typically, only organizations with an internal team dedicated to the solution will have the resources to perform such testing and management.
Using our test data factory structure from the preceding section presents us with a couple of potential...