Techiio-author
Started by Kelsey RoySep 11, 2021

Open
Where does selenium generates the test execution logs? // selenium grid // docker

0 VIEWES 0 LIKES 0 DISLIKES SHARE
0 LIKES 0 DISLIKES 0 VIEWES SHARE

I am trying to run Selenium test cases inside docker through Jenkins. The docker is on Amazon EC2 instance. I start docker with the following command:

docker run -d -v /var/jenkins_home:/var/jenkins_home:z -p 80:8080 -p 50000:50000 -v "/home/ec2-user/source/jenkins" -v /var/run/docker.sock:/var/run/docker.sock -v $(which docker):/usr/bin/docker -v $(which docker-compose):/usr/bin/docker-compose  jenkins/jenkins:lts

Below is the docker-compose.yaml file:

version: "3"
services:
hub:
image: selenium/hub:3.14
ports:
- "443:4444"
chrome:
image: selenium/node-chrome-debug:3.14
ports:
- "9000:5900"
depends_on:
- hub
environment:
- HUB_HOST=hub
firefox:
image: selenium/node-firefox:3.14
shm_size: '1gb'
depends_on:
- hub
environment:
- HUB_HOST=hub
test-module:
image: pu/tc
depends_on:
- chrome
- firefox
environment:
- HUB_HOST=hub
- BROWSER=chrome
- MODULE=testng.xml
volumes:
- ./output/test-result:/home/ec2-user/test-output

The yaml file creates one chrome, one firefox, and one hub docker instances. I want to know where does it store the test case execution logs and reports?

0 Replies

You must be Logged in to reply
Techiio-logo

Techiio is on the journey to build an ocean of technical knowledge, scouring the emerging stars in process and proffering them to the corporate world.

Follow us on:

Subscribe to get latest updates

You can unsubscribe anytime from getting updates from us
Developed and maintained by Wikiance
Developed and maintained by Wikiance