带有硒网络驱动程序的竹子 [英] Bamboo with selenium webdriver

查看:19
本文介绍了带有硒网络驱动程序的竹子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

工具:Java、Selenium WebDriver、Maven、Git、Bamboo

Tools: Java, Selenium WebDriver, Maven, Git, Bamboo

我不确定如何在 Bamboo 下运行由 java 编写并由 maven 构建并存储到 Git 存储库中的测试用例.Bamboo 无法打开真正的浏览器(IE、Firefox、chrome..)当我尝试使用 HTMLUnitdriver(无头浏览器)而不是真正的浏览器时,它起作用了,但是 HTMLUnitdriver 的问题是它运行不正常(实际上,即使其他浏览器完美地运行,它也无法运行大多数测试场景).

I'm not sure how I can run my test-cases under Bamboo which are written by java and build by maven and stored into Git repository. Bamboo can't open a real browser (IE, Firefox, chrome..) It's worked when I tried to use HTMLUnitdriver (headless browser) instead of a real browser, BUT the problem with HTMLUnitdriver it is not functioning well (actually, it can't run most of the test scenarios even the other browsers do flawlessly).

我在谷歌上搜索过,但找不到任何关于如何操作的好信息.

I've Google it but could not found any good information on how to do it.

我将非常感谢任何帮助.

I'll really appreciate any help.

推荐答案

你不应该在 Bamboo 服务器上运行任何测试.CI 服务器并不意味着在其上运行任何测试.它应该只控制测试的执行方式.有多种方法可以处理这个问题.强烈推荐 Selenium Grid.查看另一个线程此处话题

You should not run any test on Bamboo server. CI server is not meant to run any tests on. It should only controls how the tests will be executed instead. There are multiple ways to handle this. Selenium Grid is highly recommended. See another thread here on same topic

这篇关于带有硒网络驱动程序的竹子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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