You need to sign in to do that
Don't have an account?
Sha
Thanks
shareef,
test class code coverage needed for trigger
trigger Job_Count_Trigger on Job__c (after insert, after update, after delete, after undelete) { list <Job__c> Jobs = Trigger.isDelete ? Trigger.old : Trigger.new; set<Id> compIds= new Set<Id>(); List<company__c> compRollup = new List<company__c>(); // Job_count_trigger_handler.updateMethod(trigger.new); for (AggregateResult co : [SELECT Company__c compId, Count(id) JobCount FROM Job__c group by Company__c ]) { if(co.get('compId')!=null) { Company__c c= new Company__c(); system.debug('id in loop + '+ co.get('compId')); c.Id = (Id) co.get('compId'); c.Count_of_Jobs__c = (Integer) co.get('JobCount'); compRollup.add(c); } else { System.debug('### Empty Conpany'); } } system.debug(''+compRollup); update compRollup; }Hi Please help on writing the test class for trigger..
Thanks
shareef,