Salesforce Fact #170 | More info about Testsetup()

SOQL statements in Testsetup() method and not in the scope of Test.startTest() & Test.stopTest() are counted towards the total count of SOQL statements in the test class. And another point to note, every test method gets its own set of governor limit.

Attached is the screenshot.


 

Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

Salesforce Fact #457 | Get current user role name in flow