Run Robot Tests on Docker WSL
senior QA
Here we cover a complex topic of running Docker in Windows without using Docker Desktop. We use WSL 2 in Windows, setup Docker and run our robot tests.
Checkout my Medium Post to get commands used in this video: https://medium.com/@simraina/run-robot-framework-tests-in-docker-using-wsl-in-windows-aec2cbfd2bbc OR Find the commands below: wsl --install
Open your Linux terminal in WSL (you can do this by running wsl in PowerShell). Update the package manager: sudo apt-get update
Install dependencies: sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
Add Docker’s official GPG key: curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
Add Docker's repository: sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
Install Docker: sudo apt-get update sudo apt-get install docker-ce docker-ce-cli containerd.io
Enable Docker service: sudo service docker start
Check Docker service status: sudo service docker status
Now that Docker is running on WSL, you can run a Robot Framework Docker container. Pull a Robot Framework Docker image: docker pull ppodgorsek/robot-framework
Run tests: docker run -v /mnt/c/Users/path/to/tests:/opt/robotframework/tests ppodgorsek/robot-framework
Find container id: docker ps -a
Copy report files from container to your system docker cp container-id:/opt/robotframework/reports /mnt/c/Users/path/to/tests
Checkout other playlists: Robot Framework (Eclipse + PyCharm): https://www.youtube.com/playlist?list=PLxpZfOtJA71xmuTyJkm7yMB7CWGgzTowy Selenium WebDriver (with Java): https://www.youtube.com/playlist?list=PLxpZfOtJA71ysE8joiOrbc6pOn-bqk3Hy Java for QA: https://www.youtube.com/playlist?list=PLxpZfOtJA71xfPSjBg9F378U7I-bPJd11 Python for Beginners: https://www.youtube.com/playlist?list=PLxpZfOtJA71w-hfH0kAPZ0gER-r8dY5oq Espresso Mobile Test Automation: https://www.youtube.com/playlist?list=PLxpZfOtJA71zLdXKHCO_D3tpoIYF5pdOx TestNG for QA: https://www.youtube.com/playlist?list=PLxpZfOtJA71z_kTSpMTG52g5ziwobhz_5 Hybrid UI Test Automation Framework (Selenium with Java): https://www.youtube.com/playlist?list=PLxpZfOtJA71wFV_Dz-Bz5HBto5gHRPesM BDD (Cucumber): https://www.youtube.com/playlist?list=PLxpZfOtJA71w4V2NbfSSFCGYWzMZdkQCv WebServices Testing: https://www.youtube.com/playlist?list=PLxpZfOtJA71yXUCqxfJj8YazYOLVKJNBY Postman for API testing: https://www.youtube.com/playlist?list=PLxpZfOtJA71zQ1yPJ4tf4Ra4kKmULcSxZ Rest-Assured for API test automation: https://www.youtube.com/playlist?list=PLxpZfOtJA71xWPfknvoSN2INB_Fu_O7fb
My Tech Stack:
Video Editing: Da Vinci Resolve 18 You can download it from here for free: https://www.blackmagicdesign.com/products/davinciresolve
Thumbnails: Canva Pro https://www.canva.com/youtube-thumbnails/templates/ ... https://www.youtube.com/watch?v=Y0jf5ooT8Gs
74140366 Bytes