Loading

ArticlesPSA: Geolocation Error when Running Tests on Apex Classes - Error Message: "Methods defined as TestMethod do not support Web service callouts, test skipped"

Knowledge Article

PSA: Geolocation Error when Running Tests on Apex Classes - Error Message: "Methods defined as TestMethod do not support Web service callouts, test skipped"

A fatal error can occur in debug logs when running tests on Apex classes. The error, "Methods defined as TestMethod do not support Web service callouts, test skipped," is caused by Salesforce not permitting web service callouts within test classes. To resolve this, geolocation triggers should be disabled. The method for disabling these triggers depends on whether Search Resources is in use.

Title
PSA: Geolocation Error when Running Tests on Apex Classes - Error Message: "Methods defined as TestMethod do not support Web service callouts, test skipped"
URL Name
PSA-Geolocation-Error-when-Running-Tests-on-Apex-Classes-Error-Message-Methods-defined-as-TestMethod-do-not-support-Web-service-callouts-test-skipped

Release Version
Symptoms
Resolution
Cause
Additional Notes
Was this article helpful?
00
Upload Files
Recommendations
No results for undefined
Loading
Knowledge:PSA: Geolocation Error when Running Tests on Apex Classes - Error Message: "Methods defined as TestMethod do not support Web service callouts, test skipped"