Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

Windows support #105

Closed
VigneshVRP opened this issue Apr 25, 2017 · 7 comments
Closed

Windows support #105

VigneshVRP opened this issue Apr 25, 2017 · 7 comments
Labels

Comments

@VigneshVRP
Copy link

Can we please have support for Windows?
Thanks

@diemol
Copy link
Contributor

diemol commented Apr 25, 2017

Hi @TestAutomation85,
It should work on Windows out of the box, someone in the Gitter chat told me that this command works for Windows 8.1 (please check local paths)

docker run --rm -ti --name zalenium -p 4444:4444 -p 5555:5555 \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -v /c/Users/raj/temp/videos:/home/seluser/videos \
    dosel/zalenium start

Please try it and let us know.

@VigneshVRP
Copy link
Author

Thanks @diemol for your quick response. In case of Windows, would it run Internet Explorer locally in addition to Chrome and Firefox?

@diemol
Copy link
Contributor

diemol commented Apr 26, 2017

Ah ok, are you asking about:

  • Supporting Internet Explorer directly in Zalenium with docker? -> This is not possible yet since it is not possible to run Windows with a UI in docker, yet.
    or
  • You have your own machine with Internet Explorer and you want to connect it to Zalenium?

@VigneshVRP
Copy link
Author

Oh ok @diemol. Can you tell me a little more about adding your machine to the Zalenium grid? Does this mean I can have a mix of Docker containers and regular VMs connected to the Zalenium grid?
What advantages does the Zalenium grid offer over the regular Selenium grid? Thanks for answering my queries.

@diemol
Copy link
Contributor

diemol commented Apr 26, 2017

Sure @TestAutomation85

Can you tell me a little more about adding your machine to the Zalenium grid?

Just like registering a normal node to the grid, but please avoid using port 5555 if the node is in the same machine since we use it for something else. E.g. with Safari, please adapt for IE.
java -jar selenium-server-standalone-3.3.1.jar -role node -port 5556 -browser browserName=safari -hub http://localhost:4444/grid/register

Does this mean I can have a mix of Docker containers and regular VMs connected to the Zalenium grid?

In theory yes, but we have not tested it enough. If you can help us with that, it would be cool. Also with some documentation :)

What advantages does the Zalenium grid offer over the regular Selenium grid?

TL:DR -> To avoid the headache of setting up and maintaining a grid. Plus taking advantage of the "immutable infrastructure" promise by Docker.
Longer version, it is well explained in our Why.

@diemol
Copy link
Contributor

diemol commented May 7, 2017

@TestAutomation85 I'll close this issue due to inactivity.
If you have more questions you can create a new one or just join our Gitter chat https://gitter.im/zalando/zalenium
We can also discuss these things there :)

@charmi25
Copy link

docker run --rm -ti --name zalenium -p 4444:4444 -p 5555:5555 \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -v /c/Users/raj/temp/videos:/home/seluser/videos \
    dosel/zalenium start

@diemol and @VigneshVRP
I tried above command on windows but I am getting below error:

Single Line Commad:
docker run --rm -ti --name zalenium -p 4444:4444 -p 5555:5555 -v /var/run/docker.sock:/var/run/docker.sock -v /c/Users/503173907/temp/videos:/home/seluser/videos dosel/zalenium start

C:\Program Files\Docker\Docker\resources\bin\docker.exe: Error response from daemon: invalid volume specification: '/var/run/docker.sock:/var/run/docker.sock'.
See 'C:\Program Files\Docker\Docker\resources\bin\docker.exe run --help'.

I tried searching for the problem a lot but not getting any proper solution.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants