Activity › Forums › Salesforce® Discussions › How to test scheduler class in Salesforce? Salesforce® Discussions How to test scheduler class in Salesforce? Posted by Deepak on August 31, 2020 at 1:24 PM How to test scheduler class in Salesforce? Shweta replied 5 years, 9 months ago 2 Members · 1 Reply 1 Reply Shweta Member August 31, 2020 at 3:41 PM Test method for the scheduler class Example: public static testMethod void testSchedulerclass(){ Test.StartTest(); ScheduleTerritoryInactiveMemberCheck sh1 = new ScheduleTerritoryInactiveMemberCheck(); String sch = ‘0 0 23 * * ?’; system.schedule(‘Test Territory Check’, sch, sh1); Test.stopTest(); } Log In to reply. Public All Members My Connections Only Me PublicAll MembersMy ConnectionsOnly Me Public All Members My Connections Only Me