Skip to content

Run Ocaramba tests with Docker container

Jakub Raczek edited this page Jan 2, 2020 · 4 revisions

Install Docker

  1. Download installer from - https://download.docker.com/win/stable/Docker%20for%20Windows%20Installer.exe

  2. Follow installation wizard with admin privileges, stick with default configuration (if requested please provide admin user credentials)

  3. Restart PC

  4. Log in as an administrator

  5. Navigate to „Edit local users and groups”, Open „Groups” folder and add your regular user and admin user to „docker-users” group

  6. Log in as a regular user, launch docker from the start menu

Configure your local docker for windows

Docker share your local drivers

Build docker image Dockerfile

docker build -t ocaramba/selenium .

or Pull docker Ocaramba/Selenium image from docker hub

docker pull ocaramba/selenium

Create container from image and start

docker run -it -v C:\projects\Docker:/Ocaramba ocaramba/selenium /bin/bash

Mount a volume from your local drive C:\projects\Docker on docker container /Ocaramba

Build project inside container and run tests

cd Ocaramba/Ocaramba.UITests/

dotnet build Ocaramba.UITests

dotnet vstest Ocaramba.UITests/bin/Debug/netcoreapp2.2/Ocaramba.UITests.dll

Clone this wiki locally