I was tasked to automate our department's testing process.
To do the testing I first have to install a setup of our application on the host system and run another application, the tester, afterwards.
The tester application uses an ActiveX
control to control the previously installed application. In order to run the tester application I need a graphical interface, so I can't run the tests headless.
To automate the process I thought about using Hyper-V
and a Powershell
script to automatically deploy clean Windows VMs
, install the setup, run the tester application and destroy the VM
afterwards.
The deployment process works just fine but now comes the tricky part of actually running the tester application without manually interacting with the VM
.
Initially I thought that I could remote control the VM
via Powershell
and just execute the tester application that in turn opens up its GUI and does the testing.
Unfortunately I was wrong. I googled around for a bit but couldn't really find anything so far that worked.
My question is now if my approach is feasible and if it is how I possibly solve my problem?