Bamboo with selenium webdriver

2020-07-18 11:16发布

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.

2条回答
姐就是有狂的资本
2楼-- · 2020-07-18 11:51

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

查看更多
【Aperson】
3楼-- · 2020-07-18 11:57

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

查看更多
登录 后发表回答