使用vsts CI自动化测试。构建错误找不到chrome二进制文件 [英] Using vsts CI To automate tests. Build error can't find chrome binary

查看:97
本文介绍了使用vsts CI自动化测试。构建错误找不到chrome二进制文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经建立了Visual Studio团队服务的构建,当我签入时,它会对构建进行排队。我有一些我要运行的测试,但是当构建正在进行时它给了我一个错误。

 System.InvalidOperationException:unknown error:找不到Chrome二进制文件(驱动程序信息:chromedriver = 2.23.409699(49b0fa931cda1caad0ae15b7d1b68004acd05129),platform = Windows NT 6.3.9600 x86_64)。

我已将Chrome驱动程序包含在解决方案中,测试在本地运行。我需要将它添加到机器
构建运行吗?点击此链接 


https://www.visualstudio.com/en-us/docs/test/continuous-testing/getting-started/continuous-test-selenium


看来这些变化不是必需的。任何帮助欢迎





解决方案

你好,


感谢您在此发帖!


是的,你需要添加chrome驱动程序到您的构建机器。


如果您尚未配置自定义构建代理,请参阅此链接,

https://www.visualstudio.com/docs/build/admin/agents/v2-windows
可能对您有帮助。


此外,请参阅此链接,

https://blogs.msdn.microsoft.com/dgartner/2016/02/23/running-selenium-tests- as-your-your-your-your-for-vsts-release-management /
已经描述了类似的错误,这可能会对你有帮助。


希望这会有所帮助。


问候,


Swikruti



I have set up a build on visual studio team services, and when i check in, it queues a build. I have somes elenium tests I want to run, but when the build is in progress It gives me a error.

System.InvalidOperationException : unknown error: cannot find Chrome binary (Driver info: chromedriver=2.23.409699 (49b0fa931cda1caad0ae15b7d1b68004acd05129),platform=Windows NT 6.3.9600 x86_64).

I have included the chrome driver in the solution and the test are working locally. Do I need to add it to the machine the build is running on? following this link 

https://www.visualstudio.com/en-us/docs/test/continuous-testing/getting-started/continuous-test-selenium

It seems these changes arent needed. Any help welcome


解决方案

Hello,

Thank you for posting here!

Yes, you need to add chrome driver to your build machine.

If you have not configured custom build agent, please refer this link, https://www.visualstudio.com/docs/build/admin/agents/v2-windows which might help you.

Also, please refer this link, https://blogs.msdn.microsoft.com/dgartner/2016/02/23/running-selenium-tests-as-part-of-your-release-with-vsts-release-management/ which has been described related the similar error, which might help you.

Hope this helps.

Regards,

Swikruti


这篇关于使用vsts CI自动化测试。构建错误找不到chrome二进制文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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