+ Start a Discussion
VamsiVamsi 

testclass fails when executed through apex test handler and passes via developer console

Hi,

I have a test class, which seems to be passed when run through the developer console but when I run through the apex test execution it fails 

Any thoughts would be appreciiated 

Thanks..!!!
SandhyaSandhya (Salesforce Developers) 
Hi Vamshi Krishna,

Just see in the Setup > Develop > Apex Test Execution screen does it show it failed with the error "Could not run tests on class {id}" then this is the same issue.
To resolve: click the "View Test History" link on this page, then press the "Clear Test Results" button as many times as it takes to purge all the history. This can take more than a few minutes, depending on the org.
 
After that try re-running your tests.

Hope this helps you!


Please accept my solution as Best Answer if my reply was helpful. It will make it available for other as the proper solution. If you felt I went above and beyond, you can give me kudos.
 
Thanks and Regards
Sandhya

 
Magesh Mani YadavMagesh Mani Yadav
What was the error message?