开发者

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

开发者 https://www.devze.com 2023-01-10 12:24 出处:网络
I have written my first rest services and current开发者_运维知识库ly i am testing them in a browser.

I have written my first rest services and current开发者_运维知识库ly 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?


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


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.


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


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

0

精彩评论

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