selenium-grid

Selenium Grid with parallel testing using C#/NUnit

谁都会走 提交于 2019-12-06 04:54:35
问题 I've got several unit tests written with NUnit that are calling selenium commands. I've got 2 win2k3 server boxes setup, one is running selenium grid hub along with 2 selenium rc's. The other box is running 5 selenium rc's. All of them are registered with the hub as running Firefox on Windows (to keep it simple). In my unit test setup method I've got it connected to the hub's hostname at port 4444. When running the tests, they only run sequentially (as expected). I've done a lot of reading on

Integrate Selenium Grid and Sikuli API

纵饮孤独 提交于 2019-12-06 03:29:42
Currently, I am working on the automation testing framework, which combines with both Selenium Grid and Sikuli API. I already implemented a library which includes functionality of Selenium and Sikuli, and it works well when I set up my hub and node on the same machine. However, this is just the same as running Selenium RC on the machine. So, in order to achieve parallel testing, my next step is to launch the nodes from other machines and register them to the hub machine. The idea environment is Amazon EC2 instance. Hub: Linux box Nodes: win server 2008 It works fine if I just ran the tests

Selenium Grid with Ant sequential + parallel execution

只愿长相守 提交于 2019-12-06 00:56:00
问题 I am trying to run the selenium tests with selenium grid 2 set up. My tests are more dependent . I have to well-define my sequential run & parallel run. Attaching my build.xml file for ref. Inside sequential node I have many parallel nodes with different targets. I am facing inconsistency issues in running this build.xml. Some times it picks up the targets of 2nd parallel node & sometimes its not. It is not giving error also. I tried running ant command in verbose mode, still not getting ant

Selenium Grid with Docker containers on different hosts

三世轮回 提交于 2019-12-05 21:42:52
I like to setup a Selenium Grid on AWS with the official Docker images, that can be found here https://github.com/SeleniumHQ/docker-selenium Hub and nodes should reside on different machines / docker hosts. I use an ambassador container, as described here: https://docs.docker.com/articles/ambassador_pattern_linking/ (hub) --> (selenium-ambassador) --network--> (selenium-ambassador) --> (node) I created two EC2 instances and executed the following commands: On the hub machine: $ docker run -d --name selenium-hub selenium/hub:2.47.1 $ docker run -d --link selenium-hub:selenium-hub --name

Run yaml file for parallel selenium test from R or python

爱⌒轻易说出口 提交于 2019-12-05 11:27:19
I have a simple yaml file: seleniumhub: image: selenium/hub ports: - 4444:4444 firefoxnode: image: selenium/node-firefox-debug ports: - 4577 links: - seleniumhub:hub chromenode: image: selenium/node-chrome-debug ports: - 4578 links: - seleniumhub:hub that I have executed in docker: docker-compose up -d I have one hub and two nodes running. Now I would like to run two very simple selenium commands in parallel (written in RSelenium): remDr$open() remDr$navigate("http://www.r-project.org") remDr$screenshot(display = TRUE) I would like to know how can I run above selenium commands in Python or R,

protractor remote tests multibrowser

◇◆丶佛笑我妖孽 提交于 2019-12-05 09:07:59
问题 I'm new to Protractor. Could you please advise if there is any way to run protractor E2E tests on multiple remote hosts (Ubuntu - Firefox,chrome, Windows - IE, Chrome, firefox, Mac - Firefox, Chrome, Mobile - Android device, Mobile - iOS etc..), with multi browsers. Please share sample config to specify remote hosts. Due to licensing costs not considering to use saucelabs, planning to setup in local test environment. Currently I'm able to run protractor E2E tests, with multibrowsers on one

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

て烟熏妆下的殇ゞ 提交于 2019-12-05 06:37:31
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 hub/node set-up my best option just purely for configuration flexibility? Hub/Node setup gives you the

Selenium Grid2 - Is it possible to run 10 Chrome instances?

≡放荡痞女 提交于 2019-12-05 06:02:20
Currently Selenium Grid2 running with the default config shows that it can run 5 firefox browsers, 5 chrome browsers and 1 IE. With a max of 5 instances at the same time. How can I change this so that it runs 10 chrome instances at the same time? I have succesfully changed the maxsession parameter of the node with -maxSession 10 . However when I run 10 tests, the hub shows that 5 are in queue waiting to be executed. I dont know if this matters or not, but the hub itself shows a maxSession params of 5. Yet this one I couldn't change. Any ideas on how to do this? I figured it out: run the node

Can I run Selenium on Computer A, and see the browser in Computer B?

妖精的绣舞 提交于 2019-12-05 04:22:36
问题 Imagine I have some Selenium Project ready on Computer A. When you run this project, a new browser opens in Computer A, and connects to www.somesite.com and runs the tests.. Now, also on computer A, imagine I am running a web page, which has a button, which triggers these tests... So when I navigate to www.ipofcomptera.com and click "Run Tests", a new browser opens in Computer A, and runs the tests... What I want is, I either want that browser opens in Computer B ( The computer I am reaching

Is there any video recorder for Selenium WebDriver?

雨燕双飞 提交于 2019-12-05 01:59:08
问题 i am working in Selennium Webdriver2 with IE specific application. i know we can take the screenshots of the execution. similarly, Is there any option to record selenium execution as a video? 回答1: This API helped me in solving the above problem, this is for your reference guys, 回答2: There is nothing in WebDriver. Sauce uses http://www.ffmpeg.org/ to record video's. There are other options like https://code.google.com/p/java-remote-control/. Generally the answer is that if you want to do it,