Activity Forums Salesforce® Discussions When to use System.isScheduled() in Salesforce ? Reply To: When to use System.isScheduled() in Salesforce ?

  • Anuj

    Member
    September 4, 2020 at 4:02 pm

    When stopTest is executed, all asynchronous processes are run synchronously. If you don't include the System. schedule method within the startTest and stopTest methods, the scheduled job executes at the end of your test method for Apex saved using Salesforce API version 25.0 and later, but not in earlier versions.