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
fiona gentryfiona gentry 

Need a Test class for Schedulable class

Hi ,

Please help in writing a test class for below Schedulable class
 
global class CopyERTBatchDaily implements Schedulable {
  global void execute(SchedulableContext sc) {
//  batchable b = new batchable(); 
      // your batch class
  CopyERTBatch bbb= new copyertbatch();
  database.executebatch(bbb);
  }
}

Regards
Fiona
Best Answer chosen by fiona gentry
fiona gentryfiona gentry
This is done please ignore 
 
@isTest
public class CopyERTBatchDailyTest {
    
    @isTest static void executeTest(){
        
        SchedulableContext sc = null;
        CopyERTBatchDaily tsc = new CopyERTBatchDaily();
        tsc.execute(sc);
         
    }  
    
}