GUI Tests: This operation requires an interactive window station

205 views
Skip to first unread message

Tomás Moreno Bernal

unread,
May 7, 2018, 10:57:50 AM5/7/18
to Vagrant
Hi everybody,

I'm trying to run my GUI tests into a Windows 10 box but I have this error: This operation requires an interactive window station

I don't have any problem when run the tests in a VirtualBox headless machine.

I have to set more config options in the Vagrantfile?

Thanks!

Alvaro Miranda Aguilera

unread,
May 7, 2018, 11:09:33 AM5/7/18
to vagra...@googlegroups.com
hello

not sure how this related to vagrant.

what are requirement for your test ?

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/09650ddc-4821-4260-8d4b-5c320ec52d61%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Tomás Moreno Bernal

unread,
May 7, 2018, 11:28:57 AM5/7/18
to Vagrant
I'm running tests built with a library that simulates user actions: mouse click, keyboard events, etc...

I need that Windows session is not blocked.

The tests run well when are executed in a VirtualBox machine but when I use Vagrant I have that error.







El lunes, 7 de mayo de 2018, 17:09:33 (UTC+2), Alvaro Miranda Aguilera escribió:
hello

not sure how this related to vagrant.

what are requirement for your test ?
On Mon, May 7, 2018 at 4:57 PM, Tomás Moreno Bernal <tmoren...@gmail.com> wrote:
Hi everybody,

I'm trying to run my GUI tests into a Windows 10 box but I have this error: This operation requires an interactive window station

I don't have any problem when run the tests in a VirtualBox headless machine.

I have to set more config options in the Vagrantfile?

Thanks!

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.



--
Alvaro

Alvaro Miranda Aguilera

unread,
May 8, 2018, 12:10:29 PM5/8/18
to vagra...@googlegroups.com
vagrant will create and provision the machine

but if you need to run the script over an interactive session, ie main console then you will need to have some wrappers


vagrant on it self doesn't use the main session.

Alvaro.


To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/7ce8fbce-55a6-4d8b-a75c-2f0540989dbf%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Tomás Moreno Bernal

unread,
May 9, 2018, 2:39:40 AM5/9/18
to Vagrant
I've tried with other box (https://app.vagrantup.com/senglin/boxes/win-10-enterprise-vs2015community) and with this one I can run my GUI tests.



--
Alvaro

Tomás Moreno Bernal

unread,
May 9, 2018, 6:59:39 AM5/9/18
to Vagrant
I've able to run my tests but don't work because winrm can't launch GUI apps:

https://stackoverflow.com/questions/39077768/how-to-run-gui-application-on-windows-vm

So I've tried to use vagrant rdp but I have this error:

Your computer could not connect to another console session on the remote computer because you already have a console session in progress.

How I can run vagrant rdp command?

Thanks

Jordan Borean

unread,
May 14, 2018, 12:27:56 AM5/14/18
to Vagrant
You're easiest option is to use something like psexec to launch the process under an interactive logon, to do this just run

PsExec.exe -i youproc.exe

I've had to resort to using this when trying to run an application that was driven through the GUI with automated clicks. It's not fun and the better alternative to use a scripted way but unfortunately that's not always available.

Thanks

Jordan

Tomás Moreno Bernal

unread,
May 15, 2018, 11:14:51 AM5/15/18
to Vagrant
Thanks so much Jordan!

I didn't know this command, I'm able to run my tests and interact with the GUI.
Reply all
Reply to author
Forward
0 new messages