selenium-grid

Selenium Grid running tests in parallel

北城以北 提交于 2019-12-21 23:44:35
问题 Currently, I have a Selenium grid setup, with 1 local hub and 2 local nodes. The hub is capable of distributing the tests to run in parallel and distribute it over to the nodes. I am running the tests in parallel. The following is the base test public abstract class BaseTest { String testFolder; String testName; protected String envName; protected Configuration config; protected String host; protected RemoteWebDriver driver; protected String proxy; protected SomeData someData; protected

Using Selenium RemoteWebDriver behind corporate proxy

核能气质少年 提交于 2019-12-21 02:35:42
问题 How can I connect to a selenium grid such as BrowserStack via RemoteWebDriver from behind a corporate proxy? The application under test is outside the proxy and freely accessible from BrowserStack. This Using Selenium RemoteWebDriver behind corporate proxy (Java) stackoverflow question asked the same question but I couldn't follow the accepted answer. 回答1: I managed to get something working based on the accepted answer in the linked stackoverflow question, here's my implementation in case

Selenium Grid Video Recording

感情迁移 提交于 2019-12-21 01:41:27
问题 I'm trying to record videos of my Selenium-Tests. These Tests run parallel on Selenium Grid. I wanted to open a VNC-Server for each firefox and then start recording. So one grid-node would open 5 vncservers and then a program like 'recordMyDesktop' would record each one of them and store them in a different file. I found this: http://www.theautomatedtester.co.uk/blog/2010/castro-selenium-video.html but not for Java and Grid... Thank you in advance Richard (My environment is Firefox on Linux)

Unable to create new Chrome remote session

只愿长相守 提交于 2019-12-20 03:46:12
问题 I'm trying to launch a new Chrome browser using Selenium Grid but ending up with the below error Unable to create new remote session. desired capabilities = Capabilities [{browserName=chrome, version=55.0.2, platform=WINDOWS}], required capabilities = Capabilities [{}] Build info: version: '3.0.1', revision: '1969d75', time: '2016-10-18 09:49:13 -0700' System info: host: 'PL9710388', ip: '10.61.249.5', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_111' Driver

how to run my selenium test methods in parallel using testng

烈酒焚心 提交于 2019-12-19 10:58:14
问题 I am trying to run my automated tests(Selenium webdriver) in parallel using testng. this is the node which I am running: java -Dwebdriver.gecko.driver=chromedriver.exe -jar selenium-server-standalone-3.4.0.jar -role node -hub http://localhost:4444/grid/register -browser browserName=chrome,maxInstances=2 -maxSession 2 this is my test class: public class TestParallel { Login login; //@BeforeMethod(alwaysRun = true) public SeleniumDriverCore testSetup() throws FileNotFoundException, IOException{

Setting up Selenium Grid

烂漫一生 提交于 2019-12-19 09:47:02
问题 I am setting up Selenium Grid server and I have done successfully on my local machine and I'm wondering how to give the hostname so if other tester wants to register to the hub they should be able to do that, here is what I have done so far: on my local machine (assuming I will be allowing other tester to register the node here) Starting a Hub on my local machine: java -jar selenium-server-standalone-2.21.0.jar -hub Starting a Node java -jar selenium-server-standalone-2.21.0.jar -role node

Selenium 2 Grid - Knowing which node your test is using

隐身守侯 提交于 2019-12-18 12:26:55
问题 Is it possible to know which node the selenium grid hub assigned to your test? My tests need to talk to other services on the node machine in order to perform configurations which are not supported by selenium. Mark 回答1: Generally you shouldn't rely on knowing what machine your test is running on. Grid 2 provides a series of callback listeners that you could implement to provide machine configuration. But, if you really want to see what node a test is running on, you could use one of the API

Selenium is not able to launch the IE.

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-18 10:26:29
问题 Selenium is not able to launch the IE. 10:56:25,005 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: getNewBrowserSession[*iexploreproxy, http://192.168.132.105:8080/, ] on session null 10:56:25,005 INFO [org.openqa.selenium.server.BrowserSessionFactory] creating new remote session 10:56:25,005 INFO [org.openqa.selenium.server.BrowserSessionFactory] Allocated session 9fa93fe865904e3da895c91a86ebdcb0 for http://192.168.132.105:8080/, launching... 10:56:25,005

How to close a ChromeDriver when running on Grid?

◇◆丶佛笑我妖孽 提交于 2019-12-17 19:51:57
问题 I am currently running my tests with RemoteWebDriver with Selenium Grid 2 through TestNG suites. This works fine with Firefox and IE. Now I added Chrome and the tests run fine, but I always get an Exception when calling driver.quit() after all tests of a suite (works fine for FF and IE). The Exception looks like this: Error communicating with the remote browser. It may have died. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl

SessionNotCreatedException: Unable to create new service: GeckoDriverService with Selenium Grid on Ubuntu failing to drive Firefox

大城市里の小女人 提交于 2019-12-17 16:49:19
问题 I fail to drive Firefox from Selenium with geckodriver. This is odd, because chrome is driven with same framework without errors! These are my Version numbers: Firefox 54.0 (64-bit) Chrome Version 62.0.3202.94 (Official Build) (64-bit) selenium-server-standalone-3.7.1.jar client-combined-3.5.3-nodeps.jar geckodriver-v0.19.1-linux64 chromedriver_linux64 Ubuntu 16.10 The error I get from Selenium webdriver with java is the following: --------------------------------Error: leder@leder-VirtualBox