I develop a custom webservice[SOAP] in salesforce and I want to test that webservice. Is a testclass ok for that custom webservice or should I test additional things.

  • What is your question? Are you asking if you should do additional testing beyond a test class? – Daniel Hoechst Dec 17 '13 at 13:50
  • @DanielHoechst I am asking test class is suffcient for test the custom webservice or beyond that i have to perform anytype of testing..?? – Sathya Dec 17 '13 at 13:58

The test class is good for making sure your code works when you deploy initially as well as when you deploy other changes that are seemingly unrelated.

I would also recommend using a tool like SoapUI to test to make sure the response is what you are expecting.

For both test classes and SoapUI, make sure to use assertions so you are verifying that the code does what you expect it to do.

| improve this answer | |
  • if i want to do functional testing in salesforce how can i do that.any tools is there to do functional testing. – Sathya Dec 17 '13 at 14:15
  • The only platform tool available are test classes. They are really kind of a mix between unit tests and functional tests. You can run them any time you want. – Daniel Hoechst Dec 17 '13 at 15:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.