Activity Forums Salesforce® Discussions Is there any other way to execute batch class without writing its test class in Salesforce?

  • Anuj

    Member
    January 20, 2020 at 2:25 pm

    Hi Anjali ,

    First of all Batch class is Execute on Anonymous window By creating Object of class and pass the object variable in Id jobId= Database.executebatch(Object_variable);

    Test class is used to test the functionality of main class , it is not compulsory to write test calss.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos