Back to Browse

TestProject Tutorial 17 | How to setup additional containers for headless browsers - Part 2

3.0K views
Sep 23, 2020
8:57

TestProject - http://bit.ly/31EpFnk FREE - https://automationstepbystep.com/ Notes: Prerequisite - What is Docker Introduction - Why do we need TestProject Agent on Docker Docker Setup - Download and Install How to start TestProject agent on Docker How to run tests on Docker agent References & Links: https://docs.testproject.io/testproject-agents/testproject-agent-in-docker https://blog.testproject.io/2020/05/30/running-testproject-agent-in-docker-container/ https://hub.docker.com/r/testproject/agent Docker is a platform that enables to build, share and run application or services in isolated containers In order to run test you need an agent Agent is a powerful wrapper for Selenium and Appium Once you install and start agent, can run tests on all browsers and devices connected on that system Agent contains all drivers and configurations setup for selenium and appium *Why do we need TestProject Agent on Docker* Flexible - Can setup and run agent anytime - quickly and easily Can use a single command to setup a Docker container with required browsers and TestProject agent Can create a container when required and remove after execution Can use permanent or temporary (ephemeral) docker containers No need of physical machines with separate OS, browsers etc Saves resource, time & cost Integrates well with CI/CD workflow How to download and install Docker https://docs.docker.com/get-docker/ https://www.youtube.com/playlist?list=PLhW3qG5bs-L99pQsZ74f-LC-tOEsBp2rK How to start TestProject agent on Docker Step 1 - Install Docker Step 2 - Setup TestProject Agent in Docker Permanent 1 - Create and Copy API Key from your TestProject Account Integration - API - Create API 2 - Open Terminal and run the command docker run --name testproject-agent -e TP_API_KEY="Your API Key" -e TP_AGENT_ALIAS="My First Agent" -v “location of local host folder”:/var/testproject/agent testproject/agent:latest Ephemeral 1 - Create and Copy API Key from your TestProject Account 2 - Copy the JOB ID 3 - Run the command docker run --rm -e TP_API_KEY="REPLACE_WITH_YOUR_KEY" -e TP_JOB_ID="REPLACE_WITH_YOUR_JOB_ID" testproject/agent:latest Using Docker Compose to create multi-container service for Test Execution Step 1 - Install Docker Step 2 - Create a YAML file as shown Step 3 - Update the API Key, Job ID and local volume path Step 4 - Run the command docker compose -f “filename” up -d DOCKER COMMANDS docker -v docker --version docker version docker info docker ps -a -q -- list all container id docker stop $(docker ps -a -q) docker system prune You can support by Joining Automation Step By Step channel: https://www.youtube.com/automationstepbystep/join Every LIKE & SUBSCRIPTION gives me great motivation to keep working for you You can support my mission for education by sharing this knowledge and helping as many people as you can If my work has helped you, consider helping any animal near you, in any way you can. ________ ONLINE COURSES TO LEARN ________ https://automationstepbystep.com/online-courses/ Udemy Discounts - https://automationstepbystep.com/udemy-discounts/ GitHub - https://github.com/Raghav-Pal/ Udemy - https://www.udemy.com/user/raghav-pal-3/ Training by Raghav at your venue - [email protected] Training schedule - https://automationstepbystep.com/trainings-2/ Never Stop Learning Raghav

Download

1 formats

Video Formats

360pmp415.3 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

TestProject Tutorial 17 | How to setup additional containers for headless browsers - Part 2 | NatokHD