#Expose port 5920 to view display using VNC Viewer RUN chmod 755 /usr/qxf2_pom/entrypoint.sh \ #Provide read, write and execute permissions for entrypoint.sh and also take care of '\r' error which raised when someone uses notepad or note++ for editing in Windows. #Dockerfile built to run Qxf2 POM tests and view the test running across chrome/firefox using VNC viewer sh #Expose port 5920 to view display using VNC ViewerĮXPOSE 5920 #Execute entrypoint.sh at start of containerĮNTRYPOINT txt #Provide read, write and execute permissions for entrypoint.sh and also take care of '\r' error which raised when someone uses notepad or note++ for editing in Windows. #Install requirements using requirements.txt WORKDIR /usr/qxf2_pom/qxf2-page-object-model git #Set envirnmental variable for display & git clone com/qxf2/qxf2-page-object-model. #Change directory and clone Qxf2 Public POM repo # Add entrypoint.sh and other available files to image #Content of the entire Dockerfile #Dockerfile built to run Qxf2 POM tests and view the test running across chrome/firefox using VNC viewer For more details about how to use our Qxf2-pom-essential image for running Selenium tests refer to the blog post here. The Dockerfile below will run Qxf2 POM tests and view the test running across Chrome/Firefox using VNC viewer. Avoid git in case you are using a private repository due to security reasons. Ideally, we would prefer to use Docker volume feature to get the code inside the container. NOTE: For the demo, we will use git to get our open source code inside the container. This will help us to clone our Qxf2 public page object model into the container using git, install VNC server, expose port, enable VNC and run the test. To setup and enable VNC server, we need toī) Expose port to connect and share display data with VNC ViewerĬ) Enable VNC server along with the password and display arguments details.įor this post, we are going to use a Docker file and a shell script file. Connect to VNC server using IP and Port Address.Setup and enable VNC server on the Container.Below are the steps involved to get set up with VNC. Steps to setup with VNC and view container display:įor our demo, we will use the Qxf2-pom-essential docker base image and Qxf2 public page object model which we have discussed as part of our previous post. NOTE: If you are totally new to Docker, please consider reading our previous post first. This blog will help you in case you too want to setup VNC Server and VNC Viewer and view the Container display. To view the Docker container’s display, we setup up good old VNC in the container and used VNC viewer to see the display of Docker container. We found the ability to look at the tests especially useful when performing some complex actions like drawing, dragging, dropping, etc. This can help you to debug issues better and have more confidence in your tests. It is useful to be able to view your Selenium tests running within a Docker container.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |