问题描述
你好团队,
我正在写一个PS脚本来远程执行测试。首先将测试程序集复制到远程计算机,然后使用
Invoke-Command -ComputerName $ remoteComputerName ... 来执行vstest.console。但是,带有/ Platform:x64 InIsolation的vstest.console失败并显示以下错误消息。
vstest.console:错误:无法初始化客户端代理:无法连接到vstest.discoveryengine.exe。
  + CategoryInfo       :NotSpecified :(错误:失败了... veryengine.exe.:String)[],RemoteException
  + FullyQualifiedErrorId:NativeCommandError
错误:没有端点监听net.pipe:// remoteComputerName /vstest.discoveryengine/9524接受
消息。这通常是由错误的地址或SOAP操作引起的。有关更多详细信息,请参阅InnerException(如果存在)。
似乎在隔离模式下,还有一个名为 vstest.discoveryengine
的附加进程做工作。也许这个过程有问题。
有趣的是,当我在没有x64平台设置的情况下运行vstest.console时,一切都很好。而且我还发现只有一个进程名称'vstest.console.exe'正在运行。
那么我该怎样做才能使x64-platform vstest.console远程运行?
环境信息:
我在Windows Server 2012 R2上安装了Microsoft Visual Studio Agents 2012 / Test Controller 2012
谢谢,
-Jingfei
继续参与!
Hi team,
I am writing a PS script to execute tests remotely. First the test assemblies are copied to the remote machine, and then use theInvoke-Command -ComputerName $remoteComputerName ... to execute vstest.console. However, vstest.console with /Platform:x64 InIsolation fails with below error message.
vstest.console : Error: Failed to initialize client proxy: could not connect to vstest.discoveryengine.exe.
+ CategoryInfo : NotSpecified: (Error: Failed t...veryengine.exe.:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
Error: There was no endpoint listening at net.pipe://remoteComputerName/vstest.discoveryengine/9524 that could accept the
message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
It seems that in isolation mode, there is an additional process named vstest.discoveryengineto do work. Maybe there is something wrong with this process.
Interestingly, when I run vstest.console WITHOUT the x64 platform set, everything is fine. And i also find there is only one process name 'vstest.console.exe' running.
So what am i gonna do to make x64-platform vstest.console running remotely?
Env information:
I've installed the Microsoft Visual Studio Agents 2012/Test Controller 2012 on my Windows Server 2012 R2
Thanks,
-Jingfei
Keep involved!
这篇关于vstest.console。无法远程执行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!