Protractor-Docker


I was having hard time running a protractor test on chrome, though it was a learning phase where firefox was doing the job yet I was itching to see the tests run on chrome(being default browser for protractor).
DOCKER came to rescue
So this article in a nutshell will focus on running a protractor test using docker.
Note : Assumption is you already have a protractor test that runs successfully on your local browsers. We are just running test on standalone-chrome-debug

But first I would suggest you go through the content on the page redirected to through the image.
Step 1:
Have VNCviewer installed. Click image for download page

Step 2:
Have docker installed and run Docker Quickstart Terminal









Step 3:
docker pull container command
docker pull selenium/standalone-chrome-debug
Check its download
docker images

Step 4:
run container
docker run -d --name seleniumVB -p 5900:5900 -p 4444:4444 selenium/standalone-chrome-debug
It will run the selenium server
check running process
docker ps -a
docker logs containeridxyzabc

Step 5:
In protractor framework, change config.js values . Specify the selenium server address.
Step 6:
Install Kitematic and run it. It is a tool that runs containers through a simple, yet powerful graphical user interface.

Connect to the container using VMC viewer.
Use the ip address which is in conjunction with port 5900. For instance "11.11.11.11:5900"

                                                           Wait for it.....................
Container is here. The chrome browser will run in this machine
Step 6:
Run protractor test and see it happening in the container above.


Let's ship :)

Comments

  1. Wow this is really amazing post. Thanks for sharing the useful informative data. I appreciate your difficulty work. Keep blogging. Protractor Training in Electronic City

    ReplyDelete
  2. Our Nursing Recruitment Agency excels in matching talented nursing professionals with premier healthcare institutions nationwide. We craft tailored recruitment solutions that meet the unique needs of both healthcare employers and nurses. Our expansive network spans hospitals, clinics, and long-term care facilities, offering diverse opportunities for career advancement. Dedicated to quality and efficiency, we streamline the hiring process for a seamless experience. We cultivate long-term professional relationships, providing ongoing support to candidates throughout their careers. Our in-depth understanding of the healthcare sector ensures strategic placements that foster growth and satisfaction. Choose us for reliable healthcare staffing solutions that enhance your facility's staffing standards. Trust in our expertise for unparalleled service in nursing recruitment.
    https://www.dynamichealthstaff.com/nursing-recruitment-agency-in-usa

    ReplyDelete

Post a Comment

Popular Posts