Activity Forums Salesforce® Discussions What is Test.isRunningTest() in Apex ?

  • Deepak

    Member
    August 12, 2020 at 12:04 PM

    Test. isRunningTest() method in the Apex class, batch or trigger code is used to identify the pieces of code being executed & invoked from a Test class execution.It is used to define whether the code is executed by the Apex test class.

  • Marziya

    Member
    August 12, 2020 at 1:10 PM

    isRunningTest(): The Test. isRunningTest() method in the Apex class, batch or trigger code is used to identify the pieces of code being executed & invoked from a Test class execution.

  • Manish

    Member
    August 12, 2020 at 3:16 PM

    isRunningTest(): The Test. isRunningTest() method in the Apex class, batch or trigger code is used to identify the pieces of code being executed & invoked from a Test class execution. The Test. isRunningTest() method is used to define whether the code is executed by the Apex test class.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos

Salesforce Interview Questions and Answers - For Freshers and Experienced Candidates

Video in

Learn most important Salesforce Interview Questions and Answers, asked at every interview. These Interview questions will be useful to all entry-level candidates, beginners, interns, and…