You need to sign in to do that
Don't have an account?
guptach45
i need to write a test class for schedular class. Below is the schedular class----
Global class CSTeamCountryCaseUpdateSchedular implements Schedulable {
Global void execute(SchedulableContext sc){
CSTeamCountryCaseUpdateBatch batchClassInstance= new CSTeamCountryCaseUpdateBatch();
Database.executeBatch(batchClassInstance);
}
}
Global void execute(SchedulableContext sc){
CSTeamCountryCaseUpdateBatch batchClassInstance= new CSTeamCountryCaseUpdateBatch();
Database.executeBatch(batchClassInstance);
}
}
Can you try checking if the below code in https://developer.salesforce.com/forums/?id=906F00000008yhmIAA works?
Aditionally you could have a look at https://trailhead.salesforce.com/en/content/learn/modules/asynchronous_apex/async_apex_scheduled for reference.
In case if this came handy can you please choose this as best answer so that it can be used for future reference by others.
Regards,
Anutej
All Answers
Can you try checking if the below code in https://developer.salesforce.com/forums/?id=906F00000008yhmIAA works?
Aditionally you could have a look at https://trailhead.salesforce.com/en/content/learn/modules/asynchronous_apex/async_apex_scheduled for reference.
In case if this came handy can you please choose this as best answer so that it can be used for future reference by others.
Regards,
Anutej