You need to sign in to do that
Don't have an account?

How to cover execute method in test class for Batch class
Hi
I called the batch class in my apex class method.when I am writting test class for that batch class its not covering the execute method.Is there any solution ?
Thanks.
I called the batch class in my apex class method.when I am writting test class for that batch class its not covering the execute method.Is there any solution ?
Thanks.
You need to create test data in your test class according to your start method then only execute method will execute.