即使将DeleteTempFilesAferTestRun设置为“no”,QTAgent文件夹仍会被清除。 [英] QTAgent folder keeps getting cleared, even with DeleteTempFilesAferTestRun set to "no"

查看:65
本文介绍了即使将DeleteTempFilesAferTestRun设置为“no”,QTAgent文件夹仍会被清除。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

过去一周我一直在试着让TFS测试代理在每次测试运行后都清除QTAgent文件夹。

I have been tearing my hair out for the past week trying to stop the TFS Test Agent from clearing the QTAgent folder after each test run.

我跟着此主题中的说明:

I followed the instructions in this thread:

https://social.msdn.microsoft.com/Forums/expression/en-US/46a090d6-2727-425b-a085-40c9dfb471ab/how-to- retain-test-binaries-and-test-data-files-in-the-location-from-the-the-test-are-run?forum = vsmantest

https://social.msdn.microsoft.com/Forums/expression/en-US/46a090d6-2727-425b-a085-40c9dfb471ab/how-to-retain-test-binaries-and-test-data-files-in-the-location-from-where-the-test-were-run?forum=vsmantest

我经历了每一次测试代理上的Visual Studio文件夹并添加了"< add key =" DeleteTempFilesAfterTestRun"值= [否" />"每个"< appSettings> ...< / appSettings>"阻止我可以找到的每个QTAgent * .exe.config
文件,但每次测试运行后,QTAgent文件夹仍然被清除。

I went through every Visual Studio folder on the test agent and added "<add key="DeleteTempFilesAfterTestRun" value="no" />" to every "<appSettings>...</appSettings>" block in every QTAgent*.exe.config file I could find, but the QTAgent folder is still being cleared after every test run.

如何停止TFS测试代理程序进程清除QTAgent文件夹?

How do I stop the TFS Test Agent process from clearing out the QTAgent folder?

推荐答案

您好CurtisHx4334,

Hi CurtisHx4334,

欢迎来到MSDN论坛。

Welcome to MSDN forum.

请帮助确认你在哪里进行测试?您是否使用测试控制器和测试代理从Visual Studio运行测试?或者来自MTM的实验室环境?

Please help to confirm where did you run test? Did you run test from Visual Studio with test controller and test agents? Or from MTM with a lab environment?

>>我浏览了测试代理上的每个Visual Studio文件夹,并添加了"< add key =" DeleteTempFilesAfterTestRun""值= [否" />"每个"< appSettings> ...< / appSettings>"阻止我可以找到的每个QTAgent * .exe.config
文件,但每次测试运行后QTAgent文件夹仍然被清除。

>> I went through every Visual Studio folder on the test agent and added "<add key="DeleteTempFilesAfterTestRun" value="no" />" to every "<appSettings>...</appSettings>" block in every QTAgent*.exe.config file I could find, but the QTAgent folder is still being cleared after every test run.

请添加< add键= QUOT; DeleteTempFilesAfterTestRun"值= [否" /> < appSettings> ...< / appSettings>下的 QTController.exe.config 文件中的
节点
(不在QTAgent * .exe.config文件中)

Please add <add key=" DeleteTempFilesAfterTestRun" value="no" /> in QTController.exe.config file under <appSettings>…</appSettings> node (not in QTAgent*.exe.config file).

并设置< add key =" DeleteTestRunStorageData" value =" no" />。然后,重新启动控制器服务。

And set <add key="DeleteTestRunStorageData" value="no"/>. Then, restart the controller services.

您可以在测试控制器计算机中找到QTController.exe.config文件,它通常位于
C:\Program Files(x86)\ Microsoft Visual Studio 12.0 \Common7 \IDE。

You could find the QTController.exe.config file in test controller machine, and it usually located in C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE.

 

祝你好运,

Fletcher


这篇关于即使将DeleteTempFilesAferTestRun设置为“no”,QTAgent文件夹仍会被清除。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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