You need to sign in to do that
Don't have an account?
Sergio Mac-Intosh
Testclass for webservice calls
How can my testclass test service calls.
When i run the testclass atm it stopt because of Salesforce doesn't support these calls.
When i run the testclass atm it stopt because of Salesforce doesn't support these calls.
Hi Sergio Mac-Intosh,
You can test web service calls in Test class. You have to implement WebServiceMock interface and override public void doInvoke() method and create dummy response for the web service.
Check the below link :
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_callouts_wsdl2apex_testing.htm
Thanks.