Activity › Forums › Salesforce® Discussions › What is Test.isRunningTest() in Apex ?
-
What is Test.isRunningTest() in Apex ?
Posted by Ayush on August 12, 2020 at 8:54 AMWhat is Test.isRunningTest() in Apex ?
Manish replied 5 years, 9 months ago 4 Members · 3 Replies -
3 Replies
-
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']
-
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.
-
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.