15.11 Live Test Execution on Remote Machine
Overview:
OpKey users can now view the live test execution running on the remote machine. Once you triggered the test execution from OpKey Web or multi-browser, you need to click on the VNC Viewer icon and view the live test execution on the machine in a popup window. VNC Server utility is a remote control software and we recommend you install it on your machine on which test execution would be running and you want to view live execution on that machine. Make sure that OpKey Agent (For test execution on a local machine) is also installed on the same machine. You can also view the live test execution running on the Mac machine through Spock Agent by applying the few recommended settings and using our utility SpockAgentClientUtility. With the help of VNC Server, the user can now view the live test execution (executed from the multi-browser platform) running on an Android local device connected with a Windows machine.
VNC Server:
TightVNC is a remote control software and we recommend you install it on your machine on which test execution would be running and you want to view live execution on that machine. Make sure that OpKey Agent (For test execution on a local machine) is also installed on the same machine. You need to download the VNC Server (TightVNC) from here: https://www.tightvnc.com/download.php
Once the VNC Server (TightVNC) has downloaded successfully, install it on your local machine on which OpKey Agent is installed. You can follow the below-given installation steps for VNC Server (TightVNC).
Steps to install TightVNC:
- Launch the TightVNC setup file to begin the installation.
- Installation begins, click Next.
- Select the checkbox to accept the terms in the license agreement and click Next.
- Select the Complete setup type option and proceed installation.
- Click Next to proceed with the installation.
- Click the Install option and proceed to the installation process.
- Select Do not change the option from Password for Remote Access and Administrative Password option and click OK.
- The installation of the TightVNC utility has finished here.
- Further, we need to do a few required configurations.
- Open the TightVNC Utility on your machine & select the Server tab.
- Uncheck the Require VNC Authentication checkbox.
- (If this checkbox is checked and you set the password for Primary Password or View Only then you will be asked to enter this password during remote access of the machine through VNC Server.)
- Click on Apply and then OK.
- Open the Access Control tab.
- Check Allow loopback connections checkbox.
- Uncheck Allow only loopback connections checkbox.
- Click Apply and then OK.
- Once you have triggered the test execution on your local machine, you are redirected to the execution log page, as shown below.
- Click on the VNC Viewer icon to open the VNC Viewer window.
Note: Make sure that the TightVNC Server is running on the machine (on which test execution is triggered).
- VNC Server is connecting your machine with the remote machine on which test execution is running.
- Here, you can view the live test execution running on the remote machine. You can apply a few advanced settings regarding the access control of the remote machine.
Accessing live test execution on the remote windows machine
In order to access and view the live test execution running on the remote Windows machine (local), make sure that VNC Server (TightVNC) and OpKey Agent are installed on the same machine and they are working properly.
Configuration for auto-login to remote machines:
- Press Window + R button
- Enter netplwiz in Run wizard & click OK
- User Accounts wizard opens.
- Uncheck the Users must enter a user name and password to use this computer checkbox.
- Provide login credentials to be used for auto-login.
When we try to connect with this remote machine using VNC Server for the first time, it will ask for the credentials. We need to enter the above-given credentials. Later, when we try to connect with this machine using VNC Server, it connects automatically and does not ask for any credentials.
You can refer to the following links, they can be helpful for you.
- https://serverfault.com/questions/840557/auto-login-a-user-at-boot-on-windows-server-2016
- https://www.hostwinds.com/guide/allow-multiple-remote-desktop-rdp-connections-in-windows-server-2012-2016/
Accessing live test execution on remote Mac machine
OpKey offers a multi-browser testing environment that allows you to run you tests on Mac machines by using the Spock Agent. If you want to view the live test execution running on the Mac machines, you need to apply some settings on the Mac machines. In order to access remote-based Mac machines, there are few configurations required. This is the inbuilt VNC feature of the Mac machine and here we don’t need to use third-party VNC Server (like TightVNC for Windows machine). Let us see those configurations and settings. Here we first need to apply System Preferences configurations in Mac Machine and then using SpockAgentClient Utility on command prompt.
System Preferences configurations:
- Open the System Preferences on the Mac machine.
- Open the Sharing.
- Select the Screen Sharing, File Sharing & Remote Login checkbox.
- Click on the Computer Settings.
- Select both the given checkboxes like Anyone may request permission to control screen & VNC Viewers may control screen with a password.
- Click OK.
Using SpockAgentClient Utility on command prompt:
To run test execution on Mac machine using Spock Agent and view live execution running on Mac machine, you should have SpockAgentUtility that is provided by the OpKey Support team.
- Here, you can view the icon of SpockAgentClient Utility.
- Open command prompt, type java -jar, provide a space and then drag and drop the SpockAgentClient Utility and press Enter.
- SpockAgentClient Utility starts.
- SpockAgentClient starts finding Java on the system.
- SpockAgentClient installs Teleporting tunnel, creates a temp XML file, and registers Spock Agent Client on the server as shown below.
- Further, it asks to enter the Server URL (OpKey Web URL).
- Once the required information is provided successfully, it verifies and downloads the other required files.
- Here, it asks for the VNC Password that provided by you while applying System Preferences configurations above.
- It starts connecting to the server.
- SpockAgentClient Utility is now working correctly.
- Once the above-described settings are applied successfully, you can easily view the live test execution running on the remote Mac machines.
Accessing live test execution on remote Android Devices:
OpKey Web users can now view the live test execution (executed from the multi-browser platform) running on an Android local device connected with a remote Windows machine. The OpKey Agent should also be installed on the same Windows machine (with which Android device is connected).
Here, you don’t need to install the VNC Server utility on the remote machine. You just need to click on the VNC Server icon showing for the particular execution session.
- Click on the VNC Icon to view the live test execution running on an android device.
- View the live test execution on the android device.