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
GunnarGunnar 

Creating test on webservice?

 

I'm pretty good with writing the unit tests - typically over 90% coverage.

 

But !  I can't figure out how to write a test for a web service.

 

I get around this by the web service instantiating a class and passing whatever it gets. And structure it so that I can call this class from another program and get the class to pass testing.

 

But the web service ??

All Answers

GunnarGunnar

Thanks. Would have been nice if SFDC said something about this in the chapter on tests.