Web应用程序的Visual Studio 2012编码的UI测试-代码覆盖率 [英] Visual Studio 2012 Coded UI Testing of Web Application - Code coverage

查看:89
本文介绍了Web应用程序的Visual Studio 2012编码的UI测试-代码覆盖率的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Web应用程序。我正在使用VS 2012编码的UI来测试Web应用程序。我已经记录了测试并运行了它,并且工作正常。但是代码覆盖率窗口仅提供测试项目的代码覆盖率,而没有提供网站项目和Web项目中引用的其他dll项目的代码覆盖率。

I have a web application. I am using VS 2012 Coded UI for testing the web application. I have recorded the test and running it, and it works fine. But the code coverage window gives code coverage of the test project only, it doesnt give code coverage of the website project and other dll project which is referred in the web project.

我已经在解决方案中添加了testsetting文件,并选择了它。

I have added the testsetting file in the solution and selected the same.

有什么线索吗?

推荐答案

要验证的事物

a)是否添加了所有这些程序集都通过测试设置进入代码覆盖率配置的程序集列表中?

a) Have you added all these assemblies into the code coverage configuration's list of assemblies via the testsettings?

b)您是否在测试运行过程中部署了Web应用程序?如果是这样,那么理想情况下应该选择仪器就位选项

b) Is your deployment of the web app happening as a part of your test run? If so then you should ideally have the "instrument in place" option selected

这篇关于Web应用程序的Visual Studio 2012编码的UI测试-代码覆盖率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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