Run Selenium tests on remote windows machine

We need to run Selenium test on a windows 7 / 8 machine on different browsers.

How can i do it using Bamboo OnDemand?

It seems like there is no relevant elastic instance for us and i can't install Bamboo agent on my own instance.

What is the trick here then?

Thanks

2 answers

This widget could not be displayed.

You can do it (if Amazon provides you Windows 7/8 AMIs) but we'll not be able to provide you the necessary support for this setup.

- https://confluence.atlassian.com/display/BAMBOO/Creating+a+custom+elastic+image

- https://confluence.atlassian.com/pages/viewpage.action?pageId=253231639

Cheers,

Lucas Lima

This widget could not be displayed.

cant you use selenium grid? your grid nodes have all configurations of OS/browser combinations. you specify where you want to run your tests using some json config like this.


SELENIUM_GRID_BROWSER_SPECS=FF_21_Linux_BrowserSpec.json,FF_WINDOWS_BrowserSpec_dacenter.json,IE_WINDOWS_BrowserSpec.json,CHROME_WINDOWS_BrowserSpec.json

Here I am specifying that my test can run on linux_FF, Windows_FF, Windows_IE, Windows_chrome. You can specify one or more browser specs for your tests  and your tests automatically run on the selenium grid and logs are copied to your CI system(in my case its jenkins) I am using here an inhouse automation tool. You can develop your code to run tests on grid in similar way.

One sample json file content looks as below.

{
"browserSpec":
[
{
"ignoreProtectedModeSettings":true,
"browserName": "ie",
"platform": "VISTA",
"maxInstances": 1
}
]
}

 

Here is a sample node spec.

{ "capabilities":
[
{
"browserName": "firefox",
"platform": "LINUX",
"version": "21.0",
"maxInstances": 10,
"firefox_binary": "/usr/bin/firefox_21/firefox"
}
],
"configuration":
{
"proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy",
"maxSession": 5,
"port": 8888,
"host": "adcd-017.adx.pool.corp.xxxxxx.com",
"register": true,
"registerCycle": 5000,
"hubPort": 4444,
"hubHost": ip
}
}

Hope it helps you to move in proper direction.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

137 views 1 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you