I want to run a Ranorex Test Suite (.exe) on a virtual machine. Therefore I want to start the .exe from outside with a C#-Application using the library "Vestris.VMWareLib", which provides the command "RunProgramInGuest".
VMWareVirtualMachine.Process ranorexProcess = virtualMachine.RunProgramInGuest(@"c:\ranorex\Test_13_4.exe", string.Empty, 60 * 5);The directory containing the Ranorex Test-Files can you see here: [img2].
Until now, everything works fine.
But just as the test begins to execute, a window is displayed [img1], which says an interactive service was detected. I found, that this is a security thing of Windows itself, causes the application (in this case: the Ranorex Test .exe) to be executed on 'session 0'.
Well, this does not really affect the test directly, for I can see in the Task Manager, that the Program I am testing, is running. (Which obviously means the test is also running)
Now, the problem:
After the test exited, there are no log-files found in the folder, where the Ranorex Test .exe lays. There are no files created at all. If I run the test manually, by double-clicking, the files were created, but not so, if I start the test via my C# Application from outside with the code snippet above.
So I have no possibilities to ensure, if the test was executed successfully or not.
Thank you for your help at this.
My OS: Windows 8 (64 bit)
OS on the virtual machine: Windows Server 2008 R2 - Service Pack 1 (64 bit)
Ranorex version on the vm: 188.8.131.5272
.Net version on the vm: v4