-->

Bamboo with selenium webdriver

2020-07-18 11:40发布

问题:

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

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.

回答1:

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



回答2:

Use BrowserStack to execute test scripts and download reports/results as part of build as an artefact.

Or specify an agent that has the browser you need to test on.

https://www.browserstack.com/automate