Testing already stopped Salesforce Exception

Testing already stopped Salesforce Exception

Exception:

System.FinalException: Testing already stopped

Resolution:

Testing already stopped exception occurs when the Test Method in Salesforce apex has two Test.stopTest() method.

To resolve this issue or exception, avoid using Test.stopTest() more than once inside a single Apex Test Method.

Leave a Reply