测试运行部署问题:无法复制测试方法DLL [英] Test Run deployment issue: Failed to copy Test Method dll

查看:91
本文介绍了测试运行部署问题:无法复制测试方法DLL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用Visual Studio 2013测试控制器和测试代理来分布式执行自动化测试。它是没有TFS连接和实验室帐户的本地化测试控制器。测试控制器有10台远程测试代理机器连接到它
。使用'mstest'触发测试。在测试用例"simbaenable"下面。几乎同时执行(每次触发之间间隔5秒) 在4个不同的测试代理机器中,但是当部署测试时,下面显示警告

We are using Visual studio 2013 Test controller and test agents for distributed execution of automated tests. It is a localised Test controller without TFS connection and lab account. Test controller has 10 remote test agent machines connected to it . Testing is triggered using 'mstest' . Below Test case "simbaenable" is executed almost simultaneously (5 seconds gap between each trigger) in 4 different Test agent machine, but when the test was deployed below warning was shown

警告  10-07-2017 2 :19:05 PM 警告:测试运行部署问题:无法为 'd:\RTDBAutomationProjects\simbaenable\bin\debug\simbaenable.dll' 复制文件"d:\HistoryTestResults\HA4-FreshInstall \ 10-07102017 \Administrator_IN-V-CPMTA140 2017-07-10
14_18_50 [1] \Out\simbaenable.dll':System.IO.IOException:进程无法访问文件'D: \HistoryTestResults\HA4-FreshInstall\10-07102017\Administrator_IN-V-CPMTA140 2017年7月10日14_18_50 [1] \Out\simbaenable.dll",因为它正由另一个进程  IN -V-CPMTA140"

Warning 10-07-2017 2:19:05 PM Warning: Test Run deployment issue: Failed to copy file 'D:\RTDBAutomationProjects\simbaenable\bin\debug\simbaenable.dll' to 'D:\HistoryTestResults\HA4-FreshInstall\10-07102017\Administrator_IN-V-CPMTA140 2017-07-10 14_18_50[1]\Out\simbaenable.dll': System.IO.IOException: The process cannot access the file 'D:\HistoryTestResults\HA4-FreshInstall\10-07102017\Administrator_IN-V-CPMTA140 2017-07-10 14_18_50[1]\Out\simbaenable.dll' because it is being used by another process. IN-V-CPMTA140"

由于上述问题,测试运行也失败了导致丢失'simbaenable.dll'文件

because of the above issue, test run also failed reasoning the missing 'simbaenable.dll' file

我相信VS2013支持同时执行山姆多代理机器中的测试方法。如果我错过了什么请建议

I believe VS2013 supports simultaneous execution of same test method in multiple agent machines. please advice if I am missing something

推荐答案

嗨朋友,

<强>>> System.IO.IOException:过程不能访问该文件"d:\HistoryTestResults\HA4-FreshInstall\10-07102017\Administrator_IN-V-CPMTA140 2017年7月10日14_18_50 [1] \Out\simbaenable .dll'
,因为它正由另一个进程使用。  IN-V-CPMTA140"

根据我的理解,它尝试访问一个文件,并且它无法访问,因为另一个进程(甚至同一个进程)正在使用它(并且它没有允许任何共享)。

我注意到simbaenable发生的错误.dll文件复制到
输出 夹。每个测试运行文件夹都包含一个名为Out的文件夹,它是实际的部署文件夹,其中 程序集和其他部署文件在测试开始时存储为
。 

请检查您的测试部署,请参阅以下链接:

https://msdn.microsoft.com/en-us/library/ms182475.aspx

https://msdn.microsoft.com/en-us/library/ms182475(v = vs.90).aspx

顺便说一下,你是如何同时在多个测试代理上运行相同的测试方法的? ?如果您可以分享更好的细节,以便我们分析您的问题。

 

 

最好的问候,

Fletcher


这篇关于测试运行部署问题:无法复制测试方法DLL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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