WCF Testing-->How to test simple wcf program

本文将指导您如何设置WCF环境并测试简单WCF接口,包括使用编程方式测试、WCF客户端测试和WCF风暴工具测试,提供详细步骤和工具介绍。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Before you learn how to test WCF, you need to know what is WCF is. Try to set up a WCF helloworld Program will help you understand it.

 

Prepare a program of WCF Hello World. You can refer to this link: http://www.codeproject.com/Articles/97204/Implementing-a-Basic-Hello-World-WCF-Service.  Via this link, detail steps will tell you how to set up a helloworld WCF solution. I prepared an example. You can download it from the attachment.

Try to publish the service host. There is detail introduction on how to publish WCF in the link above I listed. And if you have any problems, you can contact me.

 

OK, now the WCF environment is setup. I will introduce how to test a simple WCF interface. I think you must have known how to quote WCF interface from the website we just published

                       

The first method comes up: Tested via quoting WCF interface in program and check the test result on command window. But you need to prepare the test cases in advance.

 

Of course, reference framework needs to be setup according to different project. And if you want to check the test result much easier, you can also focus on format outline. If you are interested in this, you can have a try.

 

Second: Tested by WCF Client.

This is a tool to test WCF program which published by guys in Microsoft(I think you must know ZiZhu science park. Yep, it is their productJ).

Detail using method, you can refer this link:  http://xhinker.blog.51cto.com/640011/210465/. It is very easy.

Find this tool WcfTestClient.exe under C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDEDouble click this tool

  1. Added service, the service is the WCF link you just hosted.

                

      2.

      3. Now I think you have known how to operate. Please see the picture below.

 

 

The weak point of this tool you must have noticed. That is you can just execute more than one test cases. That’s right. So the third tool resolves this problem.

 

Third, WCFStorm Tool.

This tool resolves the problem we talked above. And it is an excellent test tool to test WCF program. And it also offers test result analysis report. But it is a pity that it is not free software. L

I haven’t found any key to cracks this software.

You can refer link: http://www.wcfstorm.com/wcf/home.aspx

Since I don’t have any method to crack, I cannot demo to you. But if any of you find keys, tell me. Thank you!

 

Now I think you must know how to test a simple WCF program. But to complex project, there needs to setup different frame according to the condition of project.

If you have any other better methods. Welcome to exchange experiences.

转载于:https://www.cnblogs.com/ilazysoft/archive/2013/01/25/2877129.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值