Skip to main content
Sandeep Yadav (Salesforce) 님이 #Apex에 질문했습니다
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