function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

how to code coverage the trigger ?


i am faceing a probject for coverage a unit test code please help me ?

trigger on inforamtionManagement on informationManagement__c(After insert) {
    if(infoobj.canclae_Event__c== False && infoobj.Target_People__c=='Person'){
        Resitration_from__c rsfobj=new Resitration_from__c();

SandhyaSandhya (Salesforce Developers) 

i would suggest you refer below trailhead module to know more about test class for trigger that can help you.
Best Regards,
its not soluation of the problem .
Sitanshu TripathiSitanshu Tripathi
Will you please update your code, so that I can understand your code and give you a solution because your code have many misspellings ?
And tell us all the object hierarchy (Parent, Child) and fields.