To connect with VNC Viewer, you need to follow following steps. Next, we need to connect with VNC viewer using both IP and port address. entrypoint.sh file below will help to configure and run the VNC server along with starting the xvfb, pulling the code from git and then running the test.ĭocker run -it -p 5920: 5920 image-name-which-provided-in-step- 1ĭocker run -it -p 5920:5920 image-name-which-provided-in-step-1Ībove command connects/maps local host port 5920 to container port 5920 and to view the running tests on display, you need to connect with VNC server quickly because once test run gets finished it will show you only black screen. #Execute entrypoint.sh at start of container #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
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |