webdrivermanager兼容TravisCI构建服务器。

huangapple go评论80阅读模式
英文:

webdrivermanager compatibility with TravisCI build server

问题

我们正在使用TravisCI进行所有构建,包括针对浏览器运行的集成测试。因此,在我们的travis.yml文件中,我们包含了以下内容:

addons:
  chrome: stable

以确保在构建开始之前,chrome浏览器将被安装在构建服务器实例中。

到目前为止,我们在存储库中包含了chromedriver二进制文件,但这是一个繁琐的工作,当有新版本发布到chrome时,我们必须更新它。

我猜想webdrivermanager是为了这个目的,但我想知道webdrivermanager如何发布版本。🚀

这是为了确保每当有新版本发布给chrome,webdrivermanager都会自动提供最新的驱动程序版本。因此,我们可以确保在我们的TravisCI构建服务器中安装的任何chrome版本,webdrivermanager都可以提供适当的驱动程序,而不会导致集成测试失败。

否则,手动维护驱动程序是安全的,而不是依赖外部库,我可以自由地立即进行更新。

英文:

We are using TravisCI for all our builds which includes integration tests that are running against a browser. So, in our travis.yml file we include

addons:
  chrome: stable

to make sure that before the build starts, chrome browser will be installed in the build server instance.

Up to now we were included the chromedriver binary file in our repository but it is tedious work that we have to update when there is a new version released to chrome.

I guess webdrivermanager is intended to this purpose but I want to know how webdrivermanager make releases. 🤔

This is to ensure that anytime if there is a new version released for chrome, webdrivermanager will provide the latest driver version automatically. So we can be safe that any chrome version that will be installed in our TravisCI build server, webdrivermanager can provide appropriate driver without failing our integration tests.

Otherwise it is safe to maintain the driver manually than to depend on an external library which I have freedom to update it instantly.

答案1

得分: 1

WebDriverManager提供了动态浏览器版本检测功能。这意味着对于像Chrome这样的浏览器,它是自动更新的,因此WebDriverManager会定期检查其版本,以确定合适的chromedriver版本。

简而言之,您不再需要担心chromedriver的版本问题,因为WebDriverManager会为您完成这项工作。

英文:

WebDriverManager provides dynamic browser version detection. It means that, for a browser like Chrome, which is evergreen and therefore is automatically updated, WebDriverManager checks periodically its version to determine what is the proper version of chromedriver.

In short, you don't need to worry anymore about the chromedriver versioning, since WebDriverManager will do that work for you.

huangapple
  • 本文由 发表于 2020年8月18日 01:17:54
  • 转载请务必保留本文链接:https://go.coder-hub.com/63455645.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定