Automated GUI testing in VM

I currently have a robot file running on a Windows VM that opens a Windows application using pyautogui and compares images with DocTest.VisualTest.
What I need to know is: how do I access it by running a robot file from a remote PC and get the report.html ?

You can create another robot test/task to scp or using SSHLibrary to send the files to your machine. You can also have a very basic HTTP server on the Windows machine to serve the location of the reports. You can do this with python.
Maybe that Windows machine is also a Jenkins node, and this way you can have the job and get the report with it.

Also if your VM is running on a host you have access, there are some ways to access the files. For example by ssh/sftp to the VM.
I do this frequently in a Oracle’s Virtual Box host, with the client VM configured with a network card as “Host Only Network”.

Thanks Helio!

1 Like