问题在远程计算机上未安装VS 2017的情况下执行CodedUITest [英] Problem Executing CodedUITest without VS 2017 installed on the remote computer

查看:68
本文介绍了问题在远程计算机上未安装VS 2017的情况下执行CodedUITest的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我使用的是TFS 2018和Visual Studio 2017 Enterprise。我最近将我的TFS 2015服务器迁移到了TFS 2018,我正在尝试设置自动化测试(CodedUITest)以在远程计算机上工作。我有构建功能,代理安装在虚拟环境中 
,我可以看到接收该作业的代理。 


我的远程环境没有安装Visual Studio,或者我不希望它安装在执行TA的环境中。我已经尝试了很多东西来解决我的问题,但我不能让它工作。 


如果配置正确我在运行任务时总是遇到这个错误。


2018-03-16T14:34:36.9375607Z ## [section]开始:测试计划的测试运行

解决方案

Hi Yan Badeaux,


欢迎来到MSDN论坛。


>>  
我的远程环境没有安装Visual Studio,或者我不希望它安装在执行TA的环境中。


根据我的理解,如果我们使用
运行测试 Visual Studio Test 任务,它应该从构建代理调用VSTest.Console.exe来运行测试脚本。因此,如果远程环境没有安装Visual Studio,则任务无法找到VSTest.Console.exe来执行测试,这可能导致此问题


我建议您安装
远程环境中的测试代理,检查结果。安装测试代理后,您可以在路径下找到VSTest.Console.exe:


Path1:C:\Program Files(x86)\ Microsoft Visual Studio \\\ 2017 \ Enterprise \ Common7 \ IDE \CommonExtensions\Microsoft\TestWindow\vstest.console.exe


Path2:C:\Program Files(x86)\ Microsoft Visual Studio \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \ TestPlatform\vstest.console.exe


希望可以帮到你。


另外,如果你想了解更多关于ho的信息如果要使用TFS构建来运行编码的UI测试,我建议您将问题发布在
Stack Overflow
开发人员社区
,TFS的MS支持工程师将为您提供帮助。


感谢您的理解。


问候,


Judyzh


Hi,

I am using TFS 2018 and Visual studio 2017 Enterprise. I recently migrated my TFS 2015 server to TFS 2018 and i'm trying to setup Automated Test (CodedUITest) to work on a remote machine. I have the build functional, the Agent installed on the virtual environment  and I can see the agent receiving the job. 

My remote environment does not have Visual studio installed or neither I want it installed on my environment that execute TA. I have tried a lot of things to get around my problem, but I can't have it working. 

When configured properly I always got this error when running the task.

2018-03-16T14:34:36.9375607Z ##[section]Starting: Test run for Test plans

解决方案

Hi Yan Badeaux,

Welcome to the MSDN forum.

>>  My remote environment does not have Visual studio installed or neither I want it installed on my environment that execute TA.

Based on my understanding, if we run tests using Visual Studio Test task, it should call the VSTest.Console.exe from the build agent to run test script. So, if the remote environment does not have Visual Studio installed, the task can’t find VSTest.Console.exe to execute tests, this might be causing this issue.

I suggest you install the Test Agent on your remote environment, check the result. After you install test agent, you could find VSTest.Console.exe under path:

Path1: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe

Path2: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\Extensions\TestPlatform\vstest.console.exe

Hope could help you.

In addition, if you want to know more information about how to use TFS build to run coded UI test, I recommend you could post your issue on Stack Overflow or Developer Community, where the MS support engineers for TFS will assist you with it.

Thanks for your understanding.

Regards,

Judyzh


这篇关于问题在远程计算机上未安装VS 2017的情况下执行CodedUITest的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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