简体   繁体   English

无法从VSTS执行CodedUI测试

[英]Unable to execute CodedUI tests from VSTS

I have created a CodedUI project in VS2017, i am able to execute the tests on my machine directly in VS2017. 我已经在VS2017中创建了CodedUI项目,我能够在VS2017中直接在计算机上执行测试。

I can easily bind test methods to VSTS online Test case. 我可以轻松地将测试方法绑定到VSTS在线测试用例。 However, when i build and deploy the project and the assemblies on VSTS online and try to lauchn them from VSTS, i always got errors related to Deploying a Test agent on target machine(s) to be able to execute the test. 但是,当我在线上在VSTS上构建和部署项目及程序集并尝试从VSTS启动它们时,我总是会遇到与在目标计算机上部署测试代理以执行测试有关的错误。

Just for information, the web pages we want to test are on a on-premise website, so not accessible from internet. 仅作为参考,我们要测试的网页位于本地网站上,因此无法从Internet访问。

Do someone know how to make this work, ie how to set up the test machine, how to set up the Test agent on that machine (the microsoft documentation is not reallly clear about that), and what we need to make VSTS be able to communicate with our on-premise test machine. 是否有人知道如何进行此工作,即如何设置测试计算机,如何在该计算机上设置测试代理(Microsoft文档对此并不十分清楚),以及我们需要使VSTS能够与我们的内部测试机通信。

The easy way is that you can setup a private build agent that can access test machine, then build the project through this private agent: Deploy an agent on Windows . 一种简单的方法是,您可以设置一个可以访问测试计算机的私有构建代理,然后通过该私有代理构建项目: 在Windows上部署一个代理

If you want to use Hosted agent, your test machine need to be accessible from internet. 如果要使用托管代理,则需要从Internet访问测试计算机。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM