I can save metadata and execute anonymous apex via my Force.com project, so presumably my login credentials and token are working, but I receive an error when trying to run a test suite that I have saved locally and to the server.

Authentication error when trying to run test suite

  • It's possible that Eclipse wiped out your password for whatever reason (I've seen it happen). Check your project's Force.com settings. – sfdcfox Aug 7 '18 at 20:46
  • Thanks for suggestion. I turns out my run configuration setting being used wasn't right. It was pointing to a different project with different credentials. – bullcitydave Aug 7 '18 at 20:51

My Run Configuration for Apex Test was pointing to a different org. I needed to update it, and the test suite ran fine.

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.