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

Pros & Cons of Lightning Component vs. 3rd party frameworks in Salesforce UI development

Video in

Nikita drops by to share his invaluable experience of using popular 3rd party frameworks in Salesforce. http://media.blubrry.com/salesforceway/audio.xmcdn.com/group42/M05/25/57/wKgJ81rXk6XjaZIAAU_I_KtprFM998.m4a