selenium-grid

How can I run Selenium 2 Grid from an Ant build?

*爱你&永不变心* 提交于 2019-12-14 03:05:25
问题 I'm working on modifying our existing Selenium Grid setup so that it will work with Selenium 2. The process of setting up the hub and nodes seems to be much simpler, but I'm having a problem getting it running in an Ant build the way I did before. I've read through the wiki on Selenium 2 Grid and tried to set up the Ant build accordingly. My problem is that the first target runs, starting the hub. Then, the other targets do not run, but the build completes. I'm attempting to run these on my

Chef Selenium: rubyzip failure to allocate memory issue on Windows Server 2008

二次信任 提交于 2019-12-14 02:32:42
问题 On Windows Server 2008 & 2008R2 the following exception occurs: ================================================================================ Error executing action `install` on resource 'chef_gem[rubyzip]' ================================================================================ Mixlib::ShellOut::ShellCommandFailed ------------------------------------ Expected process to exit with [0], but received '1' ---- Begin output of C:/opscode/chef/embedded/bin/gem install rubyzip -q --no

Selenium Node/Hub Authentication

痴心易碎 提交于 2019-12-13 08:40:12
问题 I am trying to stop a selenium hub registering a node by implementing a custom proxy. I have some code that works for a custom proxy. However, the client can get round this by not specifying the custom proxy in its configuration. Is there a way we can force the node to use the custom proxy and not to use DefaultRemoteProxy. Or is there something I can implement within the Selenium Project to authenticate a node with the selenium hub? 回答1: There's no elegant way of doing this. Here's a dirty

Selenium Grid Parallel Execution ThreadLocal WebDriver SessionNotCreatedException: Unable to create new service: GeckoDriverService

两盒软妹~` 提交于 2019-12-13 04:45:41
问题 Running tests in parallel on a windows node and a mac node using selenium grid would pass all tests but fail to run and skip the first test FilterMoreResultsBySquareFeet for either the Mac Firefox browser or the Windows Firefox browser. It keeps throwing this error org.openqa.selenium.SessionNotCreatedException: Unable to create new service: GeckoDriverService I am using latest java, latest selenium driver, latest browser driver, and lastest browser version. I have all drivers in the same

Need a machine to run selenium Grid test cases

£可爱£侵袭症+ 提交于 2019-12-13 04:36:17
问题 I would like to check my selenium grid test cases on a server(any machine other than localhost).I need chrome , firefox and IE browsers in the server. Is there any way to do this ? I checked few sites like koding.com , but it is only offering me unix interface,I need full windows/Ubuntu interface. Please let me know if there is any other method to execute my test cases ? 回答1: VirtualBox is good and works well for grid tests, I expect it to be a fairly common solution. Same IP is not a problem

Selenium Grid Hub with node(s) set up. Whats next? (Picture included)

核能气质少年 提交于 2019-12-13 04:34:35
问题 I am using Selenium 2 and I have the grid hub currently set up. I have a local node in place. This is what my hub looks like. I want to load the same webpage on a number of these browsers. Is it time for me to start writing the webdriver code?(using c# on VS?) 回答1: I can only provide you some java code, but C# should be quite similar. String gridconfig = "your grid url"; DesiredCapabilities capabilities = DesiredCapabilities.firefox(); RemoteWebDriver driver = new RemoteWebDriver(new URL(this

How to use different webdrivers based on environment

╄→尐↘猪︶ㄣ 提交于 2019-12-13 03:53:46
问题 I use selenium-jupiter. I am getting a webdriver from method arguments like this: @Test public void testWithChrome(ChromeDriver chromeDriver) { chromeDriver.get("someUrlHere"); } Now I want to run tests on grid so I need to use webdriver based on environment. For example when developing tests on my PC I want to use (local) ChromeDriver, but when running tests on grid with Jenkins, I want to use RemoteDriver. So I need something like this: (That gives me local Chrome when env = 0 or gives me

Selenium grid sessions not applied

こ雲淡風輕ζ 提交于 2019-12-13 03:36:23
问题 I'm using Selenium stanalone + Chrome headless + PHP + UwAmp server on my computer to parse some data (system: WIN7_32bit, 4GB RAM). I need to start 22 Chrome sessions at the same time so I'm using selenium grid with this settings: java -jar selenium-server-standalone-2.53.1.jar -role hub java -jar selenium-server-standalone-2.53.1.jar -role node -hub http://localhost:4444/grid/register -browser "browserName=chrome,maxInstances=22,seleniumProtocol=WebDriver" -maxSession 22 My problem is that

Using Chrome Driver with WebDrive and Selenium 2.4

谁都会走 提交于 2019-12-13 03:19:55
问题 I am trying to run google chroome with webdrive but i always get error java -jar ..\..\Selenium\selenium-server-2.4.0\selenium-server-standalone-2.4.0.jar -role webdriver -hub http://localhost:4444/grid/register -Dwebdriver.chrome.driver=..\..\Selenium\Driver\GoogleChroome\chromedriver.exe but i get this error: D:\PROJEKTI\crawler\WebCrawlerSuite\DLL\RunSelenium\Grid2>java -jar ..\..\Seleni um\selenium-server-2.4.0\selenium-server-standalone-2.4.0.jar -role webdriver -h ub http://localhost

Testcase not failing even if it has actually failed

寵の児 提交于 2019-12-13 02:56:20
问题 I use TestNG and its dataProvider mechanism to run testcases. I run the TCs parallely. I have a single Test method and that method calls the actual testcase logic defined in some other class using reflection. The testcase logic written in the other class does not have any @Test annotation over its methods. Now whenever any testcase case throws any exception I catch Exception and then Assert.fail(); But in the testNG report it says failed=0 even after some TCs fail. Why the TC is not failing ?