Is there way to tell if an automated logon to a virtualbox windows guest has completed?

I'm currently using virtualbox machines as part of a test process on windows, but at the moment I have to manually wait for login to complete. Is there a way to script this? Perhaps a command I could use in association with VBoxManage guestcontrol?

link|improve this question
1  
Are you certain you need "automated logon"? I am currently using 'vboxmanage guestcontrol' to execute code on guest as part of my own test process. I am simply manually waiting time for the guestcontrol logon to complete until my automated tests execute. although: this may not work for you if a desktop dession / gui is required for your test suites. – JJack Dec 26 '11 at 18:04
Unfortunately, as you suggested, this is a problem because it does relate to GUI testing – Andrew Walker Dec 26 '11 at 20:02
feedback

1 Answer

Note: I haven't tried this myself.

Could you not have a logon script in the guest that does VBoxControl guestproperty set LogonCompleted true and then do VBoxManage guestproperty MyVM wait LogonCompleted on the host to detect when this has run?

link|improve this answer
Thanks, I'll look into this – Andrew Walker Jan 6 at 3:26
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.