Skip to main content
Hi everyone,

I am calling this method from test class and it is not covering the statements inside if condition.

what's going wrong!!

Any help would be appreciate.database.executeBatch is not covered by test class
5 件の回答
  1. 2018年9月6日 7:22
    Hi Sandeep,

    Remove test.isRunningtest line and check once.

    Hope this helps you!

    If my answer helps resolve your query, please mark it as the 'Best Answer' & upvote it to benefit others.

    More Info : 

    https://help.salesforce.com/articleView?id=000205831&type=1

    https://developer.salesforce.com/forums/?id=9060G000000Ub1HQAS

    Thanks

    Varaprasad

    @For SFDC Support: varaprasad4sfdc@gmail.com

    Blog: http://salesforceprasad.blogspot.com/

    Salesforce latest interview questions  :

    https://www.youtube.com/channel/UCOcam_Hb4KjeBdYJlJWV_ZA?sub_confirmation=1