You need to sign in to do that
Don't have an account?
Shubham Sonar
test data factory class
I am using number of objects in my app which are inter-related to each other. Whereas the controllers have good frequency of methods around it. Every time i create a test class and test method for testing any controller method, i need to create new Records which are required for the execution of controller methods. Is there any way to create a class which provides me all types of required records. Something like a data factory class which can be used in every test class during test execution.
Please find the concept of test data factory class in the below example which might help you to build the required class. Please let us know if this helps.
Regards,
Nagendra.
All Answers
Pretty much what I suggested is what you yourself said in your question.
Please find the concept of test data factory class in the below example which might help you to build the required class. Please let us know if this helps.
Regards,
Nagendra.