Wednesday, June 22, 2016

Method only allowed during testing" Error in Test Classes

Issue:

Lets take an example where you have a test class which contains Test.startTest() and Test.stopTest() methods and you have more than one test method in test class.When you run this test class in any way it touches any class that implements the Queueable interface your test classes methods more than one will fails

WorkAround:

Split all your test class methods into individual test class in salesforce. For more information please refer salesforce known issues page 


Thanks for visiting...Enjoy!

1 comment:


  1. Many experts believe that integrating technology into education can greatly enhance student engagement and understanding. However, some argue that it may also lead to increased distractions if not properly managed. To ensure effective learning, schools should implement balanced approaches that incorporate both traditional and digital methods. For further insights, you can visit the SOURCE. Ultimately, the goal is to create a learning environment that prepares students for the future.

    ReplyDelete