如何在Visual Studio中测试Web服务? [英] How do I test web services in Visual Studio?

查看:97
本文介绍了如何在Visual Studio中测试Web服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一个我想发帖一段时间的问题,但只是刚刚开始了!


我目前使用SoapUI来执行网页服务测试。这些请求是作为WSDL文件的一部分生成的,并且基于我传递的参数,这决定了输出是什么。然后,我可以检查数据库,例如确保已向其写入正确的数据


我现在正在研究如何在视觉上运行Web服务测试工作室,因为这是我们所有其他测试运行的地方(无论是在单元级别,UI级别等)。我已经做了一些谷歌搜索,但无法真正看到任何关于如何
的全面教程我可以在visual studio中创建Web服务测试,所以我在如何做到这一点之后有一些建议?我可以将SoapUI与Visual Studio集成,还是需要重新启动并重新创建我已经在SoapUI中编写的Visual Studio中的测试。


最终目标是这些Web服务然后测试可以与我们的每日隔夜回归运行集成,所以我只想弄清楚它是如何组合在一起的。



谢谢



Andy




Andrew Tilston

解决方案

Hi tilston1001,


欢迎来到MSDN论坛。


>>

我现在看看我如何在visual studio中运行Web服务测试


你想测试什么样的Web服务?


你想使用Visual Studio为Web服务进行Web性能和负载测试吗?


如果是,Web性能和负载测试更容易使用测试记录器记录请求。有时我们可以使用fiddler捕获请求,
将它们转换为Web性能测试。请参考:
https://msdn.microsoft.com/en- us / library / ms182557(v = vs.120).aspx


>>

我可以将SoapUI与Visual Studio集成,还是需要重新启动并重新创建我已经在Visual Studio中的SoapUI中编写的测试。


据我所知,没有关于Visual Studio与SoapUI集成的功能。但是,你可以从MSTest运行SoapUI测试。有关更多信息,你可以参考这个博客

http://blog.simplecode.eu/post/Soap-UI-testing-with- MsTest


>>

最终目标是这些Web服务测试可以与我们的每日隔夜回归运行集成,所以我只是想弄清楚它是如何组合在一起的。


你是如何每天在一夜之间进行回归运算?你想使用Visual Studio也每天进行一次回归运行,对吗?


根据我的知识,我们无法使用Visual Studio直接进行回归。


感谢您的理解。


问候,


Judyzh

This is a question I've been meaning to post for a while but have only just got around to it!

I currently use SoapUI in order to carry out web service testing. The requests are generated as part of a WSDL file and based on the parameters I pass this dictates what the output is. I can then check the database for example to ensure the correct data has been written to it.

I'm now looking at how I can potentially run web service tests in visual studio, given that this is where all our other tests run(be it at the unit level, UI level etc). I've done some googling but cannot really see any comprehensive tutorials around how I can create web service tests in visual studio, so I'm after some advice on how to do this? Can I integrate SoapUI with Visual Studio or do I need to start again and re-create the tests I have already written in SoapUI, in Visual Studio.

The end goal is that these web service tests can then be integrated with our daily overnight regression run, so I'm just trying to work out how this pieces together.

Thanks

Andy


Andrew Tilston

解决方案

Hi tilston1001,

Welcome to MSDN forum.

>> I'm now looking at how I can potentially run web service tests in visual studio

What kind of Web services you want to test?

Do you want to do Web Performance and Load Test for Web services using Visual Studio?

If yes, Web Performance and Load Test is easier to record the requests using the test recorder. And sometimes we could use fiddler to capture the requests and convert them to web performance tests. Please reference: https://msdn.microsoft.com/en-us/library/ms182557(v=vs.120).aspx

>> Can I integrate SoapUI with Visual Studio or do I need to start again and re-create the tests I have already written in SoapUI, in Visual Studio.

As far as I know, there’s no feature about Visual Studio integrated with SoapUI. But, you could run SoapUI tests from MSTest. For more information, you could refer to this blog: http://blog.simplecode.eu/post/Soap-UI-testing-with-MsTest

>> The end goal is that these web service tests can then be integrated with our daily overnight regression run, so I'm just trying to work out how this pieces together.

How did you do the regression run daily overnight? You want to use Visual Studio also do the regression run daily overnight, right?

Based on my knowledge, we could not use Visual Studio do the regression directly.

Thanks for your understanding.

Regards,

Judyzh


这篇关于如何在Visual Studio中测试Web服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆