GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - suonto/Docker-Selenium-Example: Docker Compose to launch infra and tests with different browsers in seconds.

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

7 Commits
7 Commits

Folders and files

NameName
Last commit message
Last commit date
results
results
 
 
robot
robot
 
 
README.md
README.md
 
 
docker-compose.yml
docker-compose.yml
 
 

Repository files navigation

Docker Selenium Example

It's great to use docker-compose to build web testing infra and launch tests in a blink.

Setup

Versions:

(docker-selenium-rf) docker-selenium-rf % docker-machine version
docker-machine version 0.9.0, build 15fd4c7

(docker-selenium-rf) docker-selenium-rf % docker-compose version
docker-compose version 1.11.1, build 7c5d5e4
docker-py version: 2.0.2
CPython version: 2.7.12
OpenSSL version: OpenSSL 1.0.2j  26 Sep 2016

(docker-selenium-rf) docker-selenium-rf % docker version
Client:
 Version:      1.13.1
 API version:  1.26
 Go version:   go1.7.5
 Git commit:   092cba3
 Built:        Wed Feb  8 08:47:51 2017
 OS/Arch:      darwin/amd64

Server:
 Version:      1.13.1
 API version:  1.26 (minimum version 1.12)
 Go version:   go1.7.5
 Git commit:   092cba3
 Built:        Wed Feb  8 08:47:51 2017
 OS/Arch:      linux/amd64
 Experimental: false

Create Fresh Docker Engine (recommended)

Docker For Mac version 1.13 has knows issues. It's recommended to use docker-machine to create a clean engine for this example.

docker-machine create -d virtualbox test-machine
eval $(docker-machine env test-machine)

Launch

Test application:

docker-compose up -d demoapp

Test Infra:

docker-compose up -d hub firefox chrome

Robot Framework Tests with browsers:

docker-compose run test-ff
docker-compose run test-gc

Reports:
After test run the test output files will appear in results directory.

View & Debug Execution:
Connect with vnc to the browsers (in 5900 and 5901). When prompted for password the default is secret.

Cleanup

docker-compose down
docker-machine rm -f test-machine

About

Docker Compose to launch infra and tests with different browsers in seconds.

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.