function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Neeraj GuptaNeeraj Gupta 

Could not run tests on Class <Class ID>

I am getting above error in both sandbox and production. I found similar posts but none of the workaround worked for me. It runs only first testmethod of test class and says its passed but class failed. I don't have salesforce support for this org.

Tried
  • Clear test Data 
  • Disable Parallel Test Run
  • Used Eclipse to deploy
  • Waited more than 12 hours
SUPPORT CAN YOU PLEASE HELP. Org seems to be stuck in some weird state and we don't have any custom code on prod. Unable to deploy even config stuff to prod. I believe something needs to be reset on salesforce end.
Scott Haleo 4Scott Haleo 4
Can you share with me screenshot of your error mesage.

Without seeing error I can't suggest your solutions.

Thanks

Scott Haleo
Neeraj GuptaNeeraj Gupta
User-added image
Scott Haleo 4Scott Haleo 4
Here your one test class is running successfully and remaining failed.

So try to run all classes one by one and verify why class is not pass.

Regards,
Scott Haleo
@Hytechpro.com