vSphere problem with Interactive Service Detection
Hi,
As a QA Engineer I am trying to automatically test application's UI (using MS AutomationUI) on a virtual Machine with
Windows 7 Pro SP1.
The main point is to run test automatically during night without any user interaction.
Test task is to verify application's UI objects and interactions with user
I am starting test using vSphere PowerCLI:
Connect-VIServer localhost
Invoke-VMScript -VM $VM -GuestUser $gu -GuestPassword $gp -HostUser $hu -HostPassword $hp -ScriptText "C:\MyScript.cmd" -ScriptType 'Bat'
$GuestUser is member of domain group which is member of VirtualMachine's Administrators group.
On a client machine I am receiving Interactive Service Detection popup.
When I select View Message button everything goes ok. I can see my application, context menus, interactions with user... test pass, but this is unacceptable for me to click anything.
If I do not select View Message, AutomationUI is unable to detect context menus, so the test automatically fail every time.
I have done some research and it seems that Invoke-VMSript start script in session 0 for some reason instead of provided user context.
I have also found vmrun tool which supports -activeWindow and -interactive switches, but in VSphere it needs path to .vmx file. It is also unacceptable because this approach would prevent me to move VirtialMachime between servers.
Please advise if it is possible to run script in user context.
May 29th, 2012 5:09am
Hello,
for Windows Powershell please ask in
http://social.technet.microsoft.com/Forums/en/winserverpowershell/threads and also use the VMWare support instead Microsoft for specific VMWare requirements.Best regards
Meinolf Weber
MVP, MCP, MCTS
Microsoft MVP - Directory Services
My Blog: http://msmvps.com/blogs/mweber/
Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.
Free Windows Admin Tool Kit Click here and download it now
May 29th, 2012 5:55am


