如何在编码的UI测试中使用runsettings fies获得正确的代码覆盖率 [英] How to get right Code Coverage in Coded UI Testing Using runsettings fies

查看:93
本文介绍了如何在编码的UI测试中使用runsettings fies获得正确的代码覆盖率的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi Team,



此查询类似于以下链接中发布的问题,但它不是来自MTM,而是如何获取代码覆盖与编码ui测试(对于在IIS上运行的应用程序),使用runsettings文件添加到VNext发布管理中的"运行功能测试"任务。


https://social.msdn .microsoft.com /论坛/ zh-CN / 57496eb5-6c36-4eb0-9f14-5a72562fcae6 / how-to-get-right-code-coverage-in-coded-ui-testing?forum = vsautotest


我需要获取codecoverage的应用程序dll和重复的pdb文件都位于testagent2015的C:\Program Files \ App Name \ xyz \ Web \ bin目录中(目标机器)已经用作代理(即构建代理)和testagent2015)


我的Runsettings文件内容如下所示为模块路径,但是当我运行'运行功能测试'时,我得到了代码覆盖率仅编码ui dll但不适用于应用程序dll。


runsettings文件片段:


 < ModulePaths>

  &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; < Include>

  &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; < ModulePath>。* \ English $< / ModulePath>

  &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; < ModulePath>。* \。$< / ModulePath>


  &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP;   < ModulePath> C:\Program Files \ App Name \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; < / Include>

  &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; <排除>

  &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; < ModulePath>。* CPPUnitTestFramework。*< / ModulePath>

  &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; < / Exclude>

  < / ModulePaths>




请告诉我哪个部分以及如何(格式) ,我需要在runsettings文件中提供Web应用程序二进制文件位置/路径以获取代码覆盖率结果。


谢谢,


Naga







$

解决方案

嗨Naga,


感谢您的帖子。


您使用的是TFS还是VSTS? 如果是关于他们中的任何一个,我会帮助你将这个帖子移到相应的论坛。



祝你好运,


Fletch



Hi Team,

This query is similar to question posted in below link but it's not from MTM but how to get code coverage with coded ui tests(for application running on IIS) using runsettings file added to 'Run Funtional Test' tasks that is part of VNext Release management.

https://social.msdn.microsoft.com/Forums/en-US/57496eb5-6c36-4eb0-9f14-5a72562fcae6/how-to-get-right-code-coverage-in-coded-ui-testing?forum=vsautotest

Both application dlls and repepective pdb files for which i need to get codecoverage are located in C:\Program Files\App Name\xyz\Web\bin directory of the testagent2015 (The target machine has used as both agent(i.e build agent) and testagent2015)

my Runsettings file content is like below for module path, but when i run the 'Run Funtional Test' i am getting code coverage to only coded ui dlls but not for application dlls.

snippet of runsettings file:

 <ModulePaths>
              <Include>
                <ModulePath>.*\.dll$</ModulePath>
                <ModulePath>.*\.exe$</ModulePath>

                <ModulePath>C:\Program Files\App Name\xyz\Web\bin\.dll$</ModulePath>

              </Include>
              <Exclude>
                <ModulePath>.*CPPUnitTestFramework.*</ModulePath>
              </Exclude>
  </ModulePaths>

Please let me know in which section and how(format), i need to provide the web application binaries location/path in runsettings file to get code coverage results.

Thanks,

Naga

解决方案

Hi Naga,

Thanks for your post.

Are you using TFS or VSTS ?  If it's about either of them, I will help you move this thread to the corresponding forum.

Best regards,

Fletch


这篇关于如何在编码的UI测试中使用runsettings fies获得正确的代码覆盖率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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