Test Client for testing WCF Rest services or just use browser?

只愿长相守 提交于 2019-12-07 18:08:47

问题


I have written my first rest services and currently i am testing them in a browser.

Is there a test client or some sort that provides additional features or is this the normal way of testing i.e. in IE, Firefox etc?


回答1:


I use Fiddler. Browsers are a real pain to try and test with.




回答2:


You may want to consider testing them through a unit testing framework instead of through the browsers. E.g. NUnit or - depending on your Visual Studio edition - MS Test might be options.

You may be able to avoid the WCF protocol overhead and talk straight to the service implementations, unless you specifically want to test the protocol.

Automating the test will help you to test more often and increase the test coverage, so you can move faster.




回答3:


rest-client is simple and does the job. It is small and portable since it runs in a Java VM.




回答4:


There are two nice FireFox pluggins I use:

  • Poster
  • REST Client (I just switched from Poster to REST Client because you can save the requests here)

/fn



来源:https://stackoverflow.com/questions/3433812/test-client-for-testing-wcf-rest-services-or-just-use-browser

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!