在docker中使用chromedriver在chrome上运行空手道测试 [英] Running karate tests on chrome with chromedriver inside docker

查看:226
本文介绍了在docker中使用chromedriver在chrome上运行空手道测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用docker容器中存在的chromedriver和chrome运行我的空手道测试.如何实现呢?我只能在chrome的本机版本上找到文档在这里

I would like to run my karate tests using the chromedriver and chrome present in a docker container. How can this be achieved ? I could only find the documentation on the native version of chrome here

推荐答案

我们仅支持通过Docker原生生成chrome.注意,您可以使用现有的硒"Grid"网格.下文,例如,请参见以下内容:

We only support chrome native via Docker. Note that you can use existing Selenium "Grid" infra, for e.g see these:

https://github.com/ptrthomas/karate-devicefarm-demo

https://stackoverflow.com/a/60992292/143475

您可以考虑创建自己的Docker映像(这是很常见的),也可以使用现有的"Selenium调味"的Docker映像.一.请注意,空手道是开源的.也许您有兴趣贡献这个Docker容器:)

You can consider creating your own Docker image (which is very common) or use an existing "Selenium flavored" one. Do note that Karate is open-source. Maybe you would be interested to contribute this Docker container :)

这篇关于在docker中使用chromedriver在chrome上运行空手道测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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