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.

  • [adinserter block='9']
  • 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.