开发者

How to differentiate public methods and private methods during api testing?

开发者 https://www.devze.com 2022-12-26 06:13 出处:网络
Is it possible to test private methods of a web service, during api testing? If yes, how to differentiate public methods and private method开发者_如何学Pythons? I am using the object browser in VSTS t

Is it possible to test private methods of a web service, during api testing? If yes, how to differentiate public methods and private method开发者_如何学Pythons? I am using the object browser in VSTS to see the list of methods available.



When you write private method, it means that this method will be used by public methods of your service. And when you test public methods you automaticly test private methods.

I think you should not test private methods because you should test only bahaviour (API) of library/web service, and it is enough for full coverage of work cases. But may be it will be more difficult for debug.

Also you can read this answer for same question.

One more thread.

0

精彩评论

暂无评论...
验证码 换一张
取 消