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
mike1.3910160257587908E12mike1.3910160257587908E12 

Apex Test Failure ConvertLead class name

I am trying to deploy a custom solution from my Sandbox, and when I try to validate in production I keep getting errors in the Apex test Failures from the ConvertLead class name.  I am not a developer, so I am struggling with how to fix this.  Any suggestions?  Here are the failures:

ConvertLead     |    basicTestWithoutConvertedStatus     |     Methods defined as TestMethod do not support Web service callouts 
Stack Trace: null
ConvertLead     |     basicTestwith     |     Methods defined as TestMethod do not support Web service callouts 
Stack Trace: null
ConvertLead     |     basicTestwithAccount     |     Methods defined as TestMethod do not support Web service callouts 
Stack Trace: null
ConvertLead     |     basicTestwithAccounts     |     Methods defined as TestMethod do not support Web service callouts 
Stack Trace: null
 
Sumeet_ForceSumeet_Force
You need to run classes with test methods using Mock Callouts in order to properly generate test coverage for apex classes to be validated in Prod.
mike1.3910160257587908E12mike1.3910160257587908E12
How would I do this?  Is this link a start: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_restful_http_testing.htm