自定义的Visual Studio运行配置来运行应用程序启动后测试 [英] Customizing Visual Studio run configuration to run tests after launching application

查看:72
本文介绍了自定义的Visual Studio运行配置来运行应用程序启动后测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面是我的开发环境的详细信息:

Here are the details of my Development Environment:


  • 的Visual Studio 2012旗舰版与更新4

  • Visual Studio 2012 Ultimate with Update 4

谷歌Chrome版本38.0.2125.111米

Google Chrome Version 38.0.2125.111 m

Windows 7专业版32位操作系统。

Windows 7 Professional with 32-bit Operating System

codeD UITest生成器11.0.60315.1

Coded UITest Builder 11.0.60315.1

微软codeD UITest项目是ASP.NET Web应用程序的解决方案中。

Microsoft Coded UITest Project is within the ASP.NET Web Application Solution.

我们使用Microsoft codeD UITest项目上运行的Web应用程序的自动化UI测试。

We use the Microsoft Coded UITest Project to run Automated UI tests on the Web application.

下面是需要做什么。

我需要建立并运行ASP.NET Web应用程序解决方案,使Web应用程序将被部署到Visual Studio开发服务器,然后最终在谷歌浏览器中显示。 (换句话说,你突出Visual Studio和preSS F5生成并运行解决方案。)

I need to build and run the ASP.NET Web Application Solution so that the Web Application will be deployed to Visual Studio Development server, and then ultimately show up in the Google Chrome Browser. ( In other words, you highlight solution in Visual Studio and press F5 to build and run. )

问题是,如果我建立并运行应用程序,我想前面提到的微软codeD UITest项目运行自动化UI测试之后的Web应用程序启动并运行。

The problem is that if I build and run the application, I want the aforementioned Microsoft Coded UITest Project to run Automated UI tests after the Web Application is up and running.

另外,要记住,有需要为自动化UI测试延迟启动,因为这显然需要时间Web应用程序运行起来是很重要的。

Also, it's important to keep in mind that there needs to be a delayed start for the Automated UI tests because it will obviously take time for the Web Application to be up and running.

我如何可以自动上使用Visual Studio的编译和运行(即pressing F5)的过程?

How can I automate the above using Visual Studio's build and run ( i.e pressing F5) process?

推荐答案

我转向使用替代微软codeD UI框架NUni​​t的。不过,我还是使用Selenium。

I switched to using NUnit Framework instead of Microsoft Coded UI. However, I still use Selenium.

@ alagesan - 帕拉尼后(<一个href=\"http://stackoverflow.com/questions/13196712/integrating-nunittesting-gui-to-visual-studio-2012-and-debugging-test-cases\">Integrating NUnitTesting GUI到Visual Studio 2012和调试测试案例)已经帮我解决我的问题。

@alagesan-palani post ( Integrating NUnitTesting GUI to Visual studio 2012 and debugging Test Cases ) has helped me resolve my problem.

此外,@​​ alagesan - 帕拉尼还跟张贴下面的链接继续在一些细节如何运行NUnit的测试用例上述问题解释网页:

Moreover, @alagesan-palani was kind enough to post a the following link to a webpage that explains in some detail how to run NUnit test cases for the above problem:

http://blog.toddbauer.me/2011/02/17/debugging-net-nunit-tests-in-visual-studio/

这篇关于自定义的Visual Studio运行配置来运行应用程序启动后测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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