This is a migrated thread and some comments may be shown as answers.

Getting SendInput: Failed. Win32Error while running test list on remote VM

1 Answer 601 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ankit
Top achievements
Rank 2
Ankit asked on 08 Mar 2017, 09:50 AM

Hi here,
Running the test list on Remote VMs & its failing, the message 'SendInput: Failed. Win32Error:' is shown as result !

Is there any way to fix the issue ?

Tharinda
Top achievements
Rank 1
commented on 09 Mar 2017, 04:10 PM

check this out

http://docs.telerik.com/teststudio/knowledge-base/scheduling-kb/keep-active-session

Ankit
Top achievements
Rank 2
commented on 10 Mar 2017, 10:37 AM

Hi tharinda
Thanks for reply,
but this already we are doing.

Some of the test (from test list) is passing, but some are failing with "Failed. Win32Error" message

Tharinda
Top achievements
Rank 1
commented on 10 Mar 2017, 03:09 PM

Ok. But based on your error - "inputerror", i can only think of Telerik  not being able to send mouse and keyboard inputs to the pplication. check if your failing script contain mouse clicks and keyboard input simulations. Check if test runner is maximized to run the browser in full screen mode.
Nikolay Petrov
Telerik team
commented on 13 Mar 2017, 08:57 AM

Hello Ankit,

To @Tharinda: thank you for pointing out the right direction here.

To keep an active session means not to minimize the active remote window as well. If that exception is the only one reason for tests failure to keep the active session would be the solution. 

Please have a look at this article if there are other problems when execution remotely as well.

Regards,
Nikolay Petrov
Telerik by Progress
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!

1 Answer, 1 is accepted

Sort by
0
Accepted
Elena
Telerik team
answered on 27 May 2022, 10:24 AM

Hi guys,

I wanted to post an update on this topic as there is a feasible solution implemented in Test Studio. 

So, this type of error is usually caused by the lack of active desktop session on the execution machine. This is a requirement for the UI functional tests executed in a head-ed mode of the browsers (not mandatory for headless Chrome execution).

You can read some additional details on this topic here and also check the solutions, which Test Studio suggests. The one I recommend is to take advantage of the built-in options to control the user session - ensure to enable the Keep Machine Awake and Reconnect to Console on Disconnect in the Test Runner on the remote machine and then close the RDP window. The session should be reconnected and the tests should be executed as expected. 

You could revisit your setups and try the suggested options from the Execution client.

Regards,
Elena
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Test Studio course! Check it out at https://learn.telerik.com/.
Tags
General Discussions
Asked by
Ankit
Top achievements
Rank 2
Answers by
Elena
Telerik team
Share this question
or