Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Run Selenium tests on remote windows machine

Shai October 9, 2013

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

1 vote
LucasA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 27, 2013

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

0 votes
Shankar KC September 8, 2014

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
TAGS
AUG Leaders

Atlassian Community Events