Is there an alternative for WCF Test Client application with better Facilities?
I use wcf test client
for testing my wcf services, but it has some shortages. Is there an alternative for WCF Test Client application wi开发者_如何学编程th better Facilities?
Yes there is better application with much bigger feature set called SoapUI but it is not integrated with Visual Studio and its bigger feature set expect that you understand web services. SoapUI is probably leading tool for testing web services and it has free edition but it is not related to MS technologies and because of that it probably doesn't support WCF only features (like duplex, net.tcp, etc.)
Anyway if you want to have testing tool for your service there is nothing more easier then creating test (MS test, NUnit or any other framework) and simply use a proxy to test your deployed service.
I am using WCF Storm which let me save big methods with a lot of parameters in XML. So I can easily load them back later by simply copy-pasting it back. But, the software (at the current stage 2.5.0) lacks of finish... shorcuts are something counter intuitive and recursive cause sometime problem. Still, it's a great application that offer more than the default Wcf Test Client.
Based on your comments i suggest using an unit testing framework such as MSTest or NUnit
In your tests you can setup instances of your service as you would normally, then call them as you would in your production code and verify the results.
Note also that you dont have to launch a whole service host to do this, you can simply make an instance of the class that is implementing your service contract and call it directly. there are some differences to doing this and hosting the service (when hosting, arguments are always serialized, that is, they are passed by value, not by reference) but it usually doesnt matter.
精彩评论