-3

I have to open an application like broffice on WINDOWS that is on AWS EC2 and write a text on it. This application is obviously windowed and I have to execute it from a Linux Server. I'm trying to use winexe, but I think that it does not open windowed apps. Is it possible to show windowed applications and performs clicks and writes tests on it remotely? Please, do not worry about what I want to do after show window. I need run windowed applications remotely and show the window.

dsbonafe
  • 185
  • 1
  • 4
  • 14

2 Answers2

0

You could use winexe to call another tool that can handle the UI automation for you. It looks like Autoit may be able to do what you need via creating a script and compiling aut2exe. https://www.autoitscript.com/site/autoit/

Jason Mathison
  • 1,181
  • 1
  • 10
  • 18
  • I have done it yet, and use autohotkey too, and other tools to automate. I run from remote Linux the command `winexe -U admin%admin //localhost "cmd /c path/script"` and, in this script, I've clicked on runProgram.exe. It did not work. I've tried autoitscript, autohotkey script, etc. I've tried to execute notepad.exe or explorer.exe instead script. And it didn't work too. I've tried to execute from Windows Scheculer some script and the same problem. I've tried to use verbose mode, and nothing. – dsbonafe Mar 28 '17 at 17:45
  • The problem, I think, is that MS Windows cannot execute windowed applications out of context. – dsbonafe Mar 28 '17 at 17:51
  • I don't know the context of what you are trying to do, but we have had to run automated UI tests in the past, and we were able to run a Jenkins executor on a windows VM without problem. It would kick off selenium to do UI testing on the machine. – Jason Mathison Mar 28 '17 at 17:57
  • I have a solution using the virtualization layer. I got it executing command via vmware hypervisor. But I can do something more generic here. – dsbonafe Mar 28 '17 at 17:57
  • was your Jenkins in Linux machine? Have the Windows machine some specific configuration? Do you remember it? – dsbonafe Mar 28 '17 at 17:59
  • Our Jenkins master runs on Linux. We no longer use a windows host to run the selenium tests. I don't know if we had Jenkins running as a service or as a console application, otherwise nothing much was special. – Jason Mathison Mar 29 '17 at 19:19
  • I found a solution here and share with all of you. Thanks everybody. – dsbonafe Apr 04 '17 at 10:59
-1

I fix our problem creating a secure REST WS that receive a key and execute the command internally. It works in a queue of remote commands and return us the answer code. With this code we validate if our command was correctly executed or not. Other solutions found: use servlet, soap or queues, or virtualmanager. All those solutions was discarded because, or was very complicated for our problem or we don't have permission to execute, or will generate security problems.

dsbonafe
  • 185
  • 1
  • 4
  • 14