Can someone please let me know when exactly Test.startTest & Test.stopTest can be used?
- Can I use it always in my Test Class as a Best Practice while doing a DML to get a separate context and Governor limit exactly for the code inside Start & Stop Test. Basically do I need to use it in an simple program with light DML operation?. Also is there any problem for using it in a simple scenario, whether it will cause any additional load?
- Or this can be only used when there is some complex is used with DML commands and can potentially run into Governor limit exception.