https://github.com/serbanghita/webdriverio-docker
Run e2e tests with wdio and selenium-standalone in Docker containers.
https://github.com/serbanghita/webdriverio-docker
docker e2e-tests selenium-standalone webdriverio
Last synced: 23 days ago
JSON representation
Run e2e tests with wdio and selenium-standalone in Docker containers.
- Host: GitHub
- URL: https://github.com/serbanghita/webdriverio-docker
- Owner: serbanghita
- License: mit
- Created: 2018-05-17T18:54:02.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-06-07T17:33:35.000Z (almost 7 years ago)
- Last Synced: 2025-04-11T04:35:23.890Z (23 days ago)
- Topics: docker, e2e-tests, selenium-standalone, webdriverio
- Language: JavaScript
- Homepage:
- Size: 45.9 KB
- Stars: 7
- Watchers: 2
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## E2E using [Webdriver.io](https://github.com/webdriverio/webdriverio) and [selenium-standalone](https://github.com/vvo/selenium-standalone) in Docker
> Sample of project running E2E tests with `wdio` and `selenium-standalone`
each existing in separate Docker instances.See `selenium-standalone` Docker instance declaration
[Ubuntu.dockerfile](https://github.com/serbanghita/selenium-standalone-docker/blob/master/Ubuntu.dockerfile).**Run**
1. `git clone [email protected]:serbanghita/webdriverio-docker.git`
1. `cd my-wdio`
1. `docker-compose up` (` -d --build --force-recreate`)
1. `docker-compose ps`Name Command State Ports
--------------------------------------------------------------------------
my-wdio_seleniumapp_1 npm run selenium Up 0.0.0.0:4444->4444/tcp
my-wdio_testapp_1 tail -f /dev/null Up1. `docker exec my-wdio_testapp_1 npm run test` - You should see tests pass
**Wiki**
Using `docker` CLI command
```
docker network create --driver bridge testing-lan
docker run -d -p 4444:4444 --net testing-lan --rm --name seleniumapp serbanghita/selenium-standalone
docker build -t serbanghita/my-wdio .
docker run -d --net testing-lan --rm --name myapp serbanghita/my-wdio
docker exec myapp npm test
```Using `docker-composer` CLI command
* Start: `docker-compose up -d --build --force-recreate`
* Stop: `docker-compose stop`
* Reconfigure: `docker-compose down && docker-compose pull`