3

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.

Sarah QA
  • 105
  • 1
  • 1
  • 9

2 Answers2

6

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

Community
  • 1
  • 1
Saifur
  • 16,081
  • 6
  • 49
  • 73
  • 1
    I didn't get your point regrading "should not run any test on Bamboo server". – Sarah QA Feb 19 '15 at 19:11
  • @SarahQA **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** You should not run any test on Bamboo server. Bamboo should only trigger the UI tests machine to run them. Have you gone through the link I provide? – Saifur Feb 19 '15 at 21:01
  • Thank you. I managed to setup the grid (Hub & nodes).. but now I want to start the Hub & the Node automatically not manually. as you know... any help – Sarah QA Mar 05 '15 at 17:04
  • Yes, you can keep the configuration in a `json` file and create a batch file to execute the commands to start the hub and node. From Bamboo it's pretty simple to execute the batch commands See my thread [here](http://stackoverflow.com/questions/28842774/error-forwarding-the-new-session-selenium-grid-2) – Saifur Mar 05 '15 at 17:14
0

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

Zach
  • 986
  • 7
  • 19
  • Thank you, I tried it .. it very easy to use BUT I can't use it because BrowserStack can't access the testing environment in my company – Sarah QA Feb 19 '15 at 19:09
  • Using the BrowserStack Local Testing capabilities you will be able to access locally hosted apps, its fairly easy to set up http://www.browserstack.com/local-testing – Zach Feb 21 '15 at 13:04