You need to sign in to do that
Don't have an account?

TestdataUtility class creation
Hello all,
Can any one help with creating utility Class in detail, with that i have to handle the record types also.
I have basic idea about creating TestdataUtility class, i did not understand how to implement it.
i have around five objects, recordtypes, and relationships EX: A==B, A==>D,E like that i have relaion ship ,
kindly suggest me the best way to create Testutility
Thanks
Can any one help with creating utility Class in detail, with that i have to handle the record types also.
I have basic idea about creating TestdataUtility class, i did not understand how to implement it.
i have around five objects, recordtypes, and relationships EX: A==B, A==>D,E like that i have relaion ship ,
kindly suggest me the best way to create Testutility
Thanks
1) https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_testing_utility_classes.htm
2) https://developer.salesforce.com/docs/atlas.en-us.apex_workbook.meta/apex_workbook/apex_testing_1.htm
NOTE:- in above class you can pass record type or create different method for each record type
let us know if that will help u