运行编码的UI测试会使用.itrace文件填充C:\ Windows \\\ temp [英] Running Coded UI tests fills up C:\Windows\temp with .itrace files

查看:88
本文介绍了运行编码的UI测试会使用.itrace文件填充C:\ Windows \\\ temp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在TFS版本管理中,每晚我们的Coded UI测试都在两台代理机器上运行。要运行Coded UI测试,我们使用
Vs Test V2任务。


在代理计算机上安装了以下主要组件:


代理1:


Windows 7;  VS 15.9.0预览版4; Build Agent版本2.131.0 


代理2:


Windows 10; VS 15.8.0预览3;  Build Agent版本2.131.0


使用的TFS版本: 


< span lang ="EN-US"style ="font-size:11.5pt; font-family:'Arial','sans-serif';颜色:#333333"> TFS 2018 Update 3;版本16.131.28106.2


问题是,对于每个正在运行的测试,将在C:\ Windows \ temp中创建.itrace文件,此文件永远不会删除。这个
导致构建代理程序耗尽磁盘空间。该问题不依赖于Vs Test V2任务中启用的代码覆盖率。在代理计算机上,禁用VS选项IntelliTrace。通过VS或控制台在代理计算机
上本地启动编码UI测试时,将创建每个正在运行的测试的.itrace文件,然后删除。似乎此问题仅与TFS结合使用。

解决方案

PM_M,


如果您只是在没有TFS的情况下运行测试,我的意思是只使用VS IDE运行它,是否有这个问题?


什么是你的VS IDE你身边的版本?


这个问题似乎已经在产品团队之前报告过:


https://developercommunity.visualstudio.com /content/problem/195034/cwindowstemp-fills-up-with-itrace-files-after-upgr.html


您可以检查它是否与VS版本相关或使用删除文件的解决方法。


最好的问候,


杰克



In the TFS release management every night our Coded UI tests are running on two agent machines. To run the Coded UI tests we are using the Vs Test V2 task.

On agent machines the following main components are installed:

Agent 1:

Windows 7; VS 15.9.0 Preview 4; Build Agent version 2.131.0 

Agent 2:

Windows 10; VS 15.8.0 Preview 3;  Build Agent version 2.131.0

Used TFS version: 

TFS 2018 Update 3; Version 16.131.28106.2

The problem is that for each running test a .itrace file will be created in C:\Windows\temp and this file will never more remove. This results in the build agents to run out of disk space. The problem does not dependents on enabled code coverage in the Vs Test V2 task. On the agent machines the VS option IntelliTrace is disabled. When the Coded UI tests are started locally on the agent machines via VS or console a .itrace file for each running test will be created and afterwards remove. It seems that this problem appears only in combination with the TFS. 

解决方案

Hi PM_M,

If you just run your test without the TFS, I mean that just run it using the VS IDE, does it have this issue?

What is your VS IDE version in your side?

It seems that this issue has been reported to the product team before:

https://developercommunity.visualstudio.com/content/problem/195034/cwindowstemp-fills-up-with-itrace-files-after-upgr.html

You could check that whether it is related to the VS version or using a workaround to remove the files.

Best Regards,

Jack


这篇关于运行编码的UI测试会使用.itrace文件填充C:\ Windows \\\ temp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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