• #63127
    Salesforce | Deepak Deepak #4
    Forcetalks

    Problem in batch class in salesforce

    I am writing a test class of batch class it code coverage is 80% but my execute part is not covered. Is it necessary to cover execute part?

    #63202
    Salesforce | Nikita Nikita #1
    Forcetalks

     

    Hi Deepak,

    Yes, it is necessary to cover the execute method of a batch class in the test class. If start is returning a batch ( which is rows returned by the query locator) then only it will go in the execute method.

Viewing 2 posts - 1 through 2 (of 2 total)

Please to reply to this topic.

CONTACT US

We're not around right now. But you can send us an email and we'll get back to you, asap.

Sending

About Us

Forcetalks is a Salesforce collaboration platform for coders & developers, geeks & nerds, consultants & business heads, admins & architects, managers & marketers and of course the business owners. A community where you can learn from, where you can contribute to. For you. For Salesforce. Read More...

Copyright 2019 Forcetalks. All Right Reserved.

Log in with your credentials

or    

Forgot your details?