selenium-grid

java.lang.NullPointerException Selenium 2 classes

笑着哭i 提交于 2020-01-04 08:05:25
问题 My program works fine when run from my local machine with out using selenium grid with Remote Web driver. However when i set up the same test cases using selenium grid with Remote Web driver . Get message in eclipse saying: java.lang.NullPointerExceptionat PP_OBJ_Login.Adminlogin(PP_OBJ_Login.java:38) at PP_Main.step01_Login(PP_Main.java:86) Now I know the above means that line 38 and line 86 is where the problem is in both classes my problem is i don't know why this is happening when I use

Selenium: Session externalKey not available

一世执手 提交于 2020-01-04 04:42:09
问题 The Selenium Grid Hub I am running displays this error message whenever a Robot Framework automation test (kicked off by a Jenkins job) requests a Chrome browser from the Hub: Session [(null externalkey)] not available and is not among the last 1000 terminated sessions. I've spent hours searching and trying proposed solutions with no luck. Running a Linux server as a Selenium Grid Hub and a windows server as a Selenium Grid Node. Have tried each node with versions 3.0.1, 3.5.3, 3.13.0, and 3

Running Selenium IDE tests via Selenium Grid

做~自己de王妃 提交于 2020-01-04 02:34:12
问题 I should start off by saying that I am regretfully and painfully a noob . But I'm trying to change that!! I do not know any programming languages, but have managed to "make things happen" by doing enough research to get whatever job I've ever needed done done. Anyway, I have been creating Selenium tests using the Selenium IDE and I am having a bit of trouble getting these test to run via Selenium Grid. I have been exporting the tests as JUnit 4 (Webdriver) files. I am running the grid on a

how to run more then one selenium testing suite on the same machine

耗尽温柔 提交于 2020-01-03 21:06:32
问题 I am using Java/Selenium webdriver with testng to run my test automation, i have many automated project, each project is using a testing suite.xml, how can i run two suites or more at the same time on the same machine, here is my code for the creation of the driverInstance object: public WebDriver getDriverInstance( String Url, String browser ) throws MalformedURLException { WebDriver driver = null; URL url = new URL( Url ); if( browser.equals( "firefox" ) ) { DesiredCapabilities capability =

how to run more then one selenium testing suite on the same machine

旧城冷巷雨未停 提交于 2020-01-03 21:06:07
问题 I am using Java/Selenium webdriver with testng to run my test automation, i have many automated project, each project is using a testing suite.xml, how can i run two suites or more at the same time on the same machine, here is my code for the creation of the driverInstance object: public WebDriver getDriverInstance( String Url, String browser ) throws MalformedURLException { WebDriver driver = null; URL url = new URL( Url ); if( browser.equals( "firefox" ) ) { DesiredCapabilities capability =

WebDriverException: Message: Missing 'marionetteProtocol' field in handshake

对着背影说爱祢 提交于 2020-01-02 14:11:35
问题 I'm currently trying to run a robotframework test scripts locally (Ubuntu 12.04 LTS 64 bit). The issue that I faced was not able to launch FF browser in Open Browser. Below is the details/specs of the setup that I have. Firefox (v26.0) Selenium2Library selenium-server-standalone-2.53.1.jar geckodriver-v0.9.0 Please note that I used same machine as hub and node (selenium grid) Here the command to launch my hub : java -jar selenium-server-standalone-2.53.1.jar -role hub -port 4444 While here's

What is the difference between running the selenium standalone server and hub/node setup

喜夏-厌秋 提交于 2020-01-02 03:42:07
问题 I started with the selnium stand alone server setup java -jar selenium-server-standalone-2.32.0.jar Which allowed to me successfully connect and run my tests, with multiple browsers running at a time. What is the difference when i use the following set-up, as a hub... java -jar selenium-server-standalone-2.42.2.jar -role hub and an attached node... java -jar .\selenium-server-standalone-2.42.2.jar -role node -hub http://localhost:4444/grid/register which also seemed to work the same. Is the

selenium grid with cucumber

大兔子大兔子 提交于 2020-01-01 18:30:17
问题 I am trying to setup selenium grid to achieve parallel execution of my tests. First, I'll explain the my current scenario. I have my fully functional test suite written in cucumber with watir webdriver I need to execute all my tests in multiple environments. I created a setup for selenium hub and node I can run my tests on a single node through hub My goal is to run my tests on multiple vm's simultaneously. I missing a part where I need to configure my tests to run in parallel. there are some

Driver behavior executing parallel TestNG selenium tests with dataprovider

大憨熊 提交于 2020-01-01 03:43:07
问题 I want to run selenium tests in TestNg in parallel that use the @dataprovider. Ideally tests are parallel by method (one test = one method) and not simple suite parallelism by browser. I have read somewhere that about 5 instances of ChromeDriver can be controlled at a time so I thought this should be possible. Later I plan to move to grid2. For developement I'm running things with IntelliJ Idea test runner by right-click + run on the XML config file. I had problems running my tests in

Selenium Grid on Multiple Browsers: should each test case have separate class for each browser?

亡梦爱人 提交于 2019-12-30 08:26:11
问题 I'm trying to put together my first Data Driven Test Framework that runs tests through Selenium Grid/WebDriver on multiple browsers. Right now, I have each test case in it's own class, and I parametrize the browser, so it runs each test case once with each browser. Is this common on big test frameworks? Or, should each test case be copied and fine tuned to each browser in it's own class? So, if I'm testing chrome, firefox, and IE, should there be classes for each, like: "TestCase1Chrome",