使用Microsoft测试管理器运行CodedUI测试用例时路径太长异常 [英] Path too long exception while running the CodedUI test cases using Microsoft Test manager

查看:90
本文介绍了使用Microsoft测试管理器运行CodedUI测试用例时路径太长异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

TFS 2013

Microsoft Test Manager 2017

Microsoft Test Manager 2017

Visual Studio Enterprise 2017

Visual Studio Enterprise 2017

测试Controller 2013 Update 5

Test Controller 2013 Update 5

Test Agent 2013 Update 5

Test Agent 2013 Update 5

我在运行测试用例时遇到路径太长的异常。

TestOutcome'警告';消息'警告:测试运行部署问题:无法访问文件'C:\ Users \ master\AppData \本地\ VSEQT \ QTController \rm \ 1603 \ mmaster_TESTCON2016 2017-07-28 08_10_50 \Out\2017\Enterprise \ Common7 \IDE \CommonExtensions\Microsoft\Architecture
Tools\Providers\AssemblyMetadata\Microsoft.VisualStudio.ArchitectureTools.AssemblyMetadataProvider.dll':System。 IO.PathTooLongException:指定的路径,文件名或两者都太长。完全限定的文件名必须少于260个字符,
目录名必须少于248个字符。'。"

TestOutcome 'Warning'; Message 'Warning: Test Run deployment issue: Failed to access the file 'C:\Users\master\AppData\Local\VSEQT\QTController\rm\1603\mmaster_TESTCON2016 2017-07-28 08_10_50\Out\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\Architecture Tools\Providers\AssemblyMetadata\Microsoft.VisualStudio.ArchitectureTools.AssemblyMetadataProvider.dll': System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.'."

TestOutcome'Warning';消息'警告:测试运行部署问题:无法访问文件'C:\ Users \ master\AppData \ Local \ VSEQT \ QTController \rm \1603 \mmaster_SW-TESTCON2016 2017-07- 28 08_10_50\Out\2017\Enterprise\Common7\IDE\Extensions\Microsoft \ Windows
Azure Tools\RemoteDebugger2.2CTP\Microsoft.VisualStudio.WindowsAzure.RemoteDebugger.Proxy.Core .22Support.dll':System.IO.PathTooLongException:指定的路径,文件名或两者都太长。完全限定的文件名必须少于260个字符,
且目录名称必须少于248个字符。'。"

TestOutcome 'Warning'; Message 'Warning: Test Run deployment issue: Failed to access the file 'C:\Users\master\AppData\Local\VSEQT\QTController\rm\1603\mmaster_SW-TESTCON2016 2017-07-28 08_10_50\Out\2017\Enterprise\Common7\IDE\Extensions\Microsoft\Windows Azure Tools\RemoteDebugger2.2CTP\Microsoft.VisualStudio.WindowsAzure.RemoteDebugger.Proxy.Core.22Support.dll': System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.'."

依此类推......

然后因异常而收到以下错误:

And then getting the following error because of the exception:

TestOutcome '警告';消息'警告:测试运行部署问题:由$ b $指定的部署项'C:\Program Files(x86)\ Microsoft Visual Studio'直接或间接引用的程序集或模块'Microsoft.VisualStudio.Services.Configuration' b未找到测试设置。'。"
$


TestOutcome'警告';消息'警告:测试运行部署问题:程序或模块'System.Security.Cryptography.ProtectedData'由测试$指定的部署项'C:\Program Files(x86)\ Microsoft Visual Studio'直接或间接引用b $ b设置未找到。'。"

TestOutcome 'Warning'; Message 'Warning: Test Run deployment issue: The assembly or module 'Microsoft.VisualStudio.Services.Configuration' directly or indirectly referenced by deployment item 'C:\Program Files (x86)\Microsoft Visual Studio' specified by the test settings was not found.'."

TestOutcome 'Warning'; Message 'Warning: Test Run deployment issue: The assembly or module 'System.Security.Cryptography.ProtectedData' directly or indirectly referenced by deployment item 'C:\Program Files (x86)\Microsoft Visual Studio' specified by the test settings was not found.'."

依此类推..

我在控制器框上也启用了"启用Win32长路径"。 

I have enabled 'Enable Win32 long paths' too on the controller box. 

不能够解决这个问题。




推荐答案

嗨gsrush,

Hi gsrush,

测试代理和控制器VS 2017 可用,尝试使用它们设置实验室环境,然后重试。

There are Test agent and controller for VS 2017 available, try to setup the lab environment with them and try again.

问候

Starain


这篇关于使用Microsoft测试管理器运行CodedUI测试用例时路径太长异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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