question

Richard M. avatar image
Richard M. asked ·

Passing Transactions to VMWare

I use the agents to test against Citrix and VMware VDI. The citrix part works fairly well however I am unable to get the commands sent to the VDI session. Example, The script launches and then connects to the virtual desktop. I need it to launch an application on the VDI window. I have tried launchapp, launch with parm and every other example I can find. It launches this app locally to the agent and does not send it in the VM. This makes it very difficult to have reliable results because right now I have to use images or direct click coordinates. Any ideas?

esmscripting
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Yuriy L. avatar image
Yuriy L. answered ·

Hi Richard,

You will need to start the application same way as you do it when you do it manually, say, by double-clicking on the desktop shortcut. Please take into account that VDI window is one control, the Recorder does not have access to any controls inside that window - those controls are on another machine. So, you will need to use images, OCR, keyboard shortcuts, or typing ahead to start the application. Hope this helps.

Thank you,

Yuriy

1 comment Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Windows Key + R to bring up the run box, add the command to the run box to start it?

-- Erik

0 Likes 0 · ·
Richard M. avatar image
Richard M. answered ·

I tried that as well. The agent will not focus. I get errors or it just does not work. I had opened a support case before and they were unable to assist. Figured I would see if anyone has had this issue. I am resigned to the fact that this is just how it worked. I will continue to use coordinate clicks, OCR and images until a different system can be found to do what we need. Thank you all for your help though.

3 comments Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

@Richard M.

Unsure if the VDI version of VMWare work any differently to the Workstation/ESXi variants, but they need a hotkey pressed for them to 'grab the input' (as they call it).

A mouse click in the window will do it, but may not be reliable, the keyboard short cut is

CTRL+G

and CTRL-ALT to ungrab.


0 Likes 0 · ·

you're unreliable behaviour may be due to the fact VMWare will grab input on ENTER as well (as CTRL+G), so maybe if you were sending keys it would have ignored all of them until an ENTER, then started accepting the remainder, leaving you in an unknown state.

You will have to ensure you grab/ungrab as appropriate, this is something citrix/remote desktop doesn't need they behave more like regular windows.

0 Likes 0 · ·
Yuriy L. avatar image
Yuriy L. answered ·

Hi Richard,

You need to put focus on the VDI window. Then you can start using the keyboard. The relations between the OS where you are and VDI could be complex. Try to put a shortcut on the desktop of the system accessed by VDI and start typing its name up until it is selected, then send {Return}. Rehearse it with manual execution first. If you still cannot start the application, please open a support case.

Thank you,

Yuriy

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Richard M. avatar image
Richard M. answered ·

Thanks Erik but that was one of the first things I tried. It opens on agent not VM. Thank you for responding though.

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.