You need to sign in to do that
Don't have an account?
vijendhar k 23
how to Cover start mehod in batch class
Hello All,
how to get 100% code coverage for bello batch classs, i am getting 50% i have needed 100% coverage
Thanks
how to get 100% code coverage for bello batch classs, i am getting 50% i have needed 100% coverage
global class Test implements Database.Batchable<sObject> { global Database.Querylocator start(Database.BatchableContext BC) { return Database.getQueryLocator(''); } global void execute(Database.batchableContext BC, List<sObject> batch) {} global void finish(Database.batchableContext info) {} }below test class
public static testMethod void Unit1() { test.startTest(); Database.BatchableContext BC; Database.BatchableContext info; list<sObject> so = new list<sObject>(); Test ac = new Test(); //ac.start(BC); ac.execute(BC,so); ac.Finish(info); test.stoptest(); }help me get 100% coverage for below class
Thanks
Please check below post for Batch job
1) http://amitsalesforce.blogspot.in/2016/02/batch-apex-in-salesforce-test-class-for.html
Batch Apex in salesforce | Test class for Batch job | how to schedule batch job Test Class
Let us know if this will help you
All Answers
Please check below post for Batch job
1) http://amitsalesforce.blogspot.in/2016/02/batch-apex-in-salesforce-test-class-for.html
Batch Apex in salesforce | Test class for Batch job | how to schedule batch job Test Class
Let us know if this will help you