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

hi can anyone help me:how to write test class on Dom.XmlNode....please give one example

HI ,

You have to implement mock callouts for this .In test class the actual call wont be made and hence mock interface you can use to achieve code coverage.

refer this thread :Testing WebServiceCallout with HttpCalloutMock

caution:Testing HttpCallout with HttpCalloutMock and UnitTest Created Data

There is known issue of Pending DML statements

Refer the blog:

Thank You Ashis.