Getting SendInput: Failed. Win32Error while running test list on virtual machine

1 Answer 192 Views
General Discussions
Shailesh
Top achievements
Rank 1
Shailesh asked on 03 Oct 2022, 10:13 AM

Hi,

I tried to run the test list on Remote VMs but its failing, the message 

SendInput: Failed. Win32Error: 
InnerException:
System.ComponentModel.Win32Exception (0x80004005): SendInput: Failed. Win32Error: 
   at ArtOfTest.WebAii.Win32.Win32NativeMethods.SendInputInternal(Input[] inputData)
   at ArtOfTest.WebAii.Win32.Mouse.HoverOver(Int32 x, Int32 y, Boolean useExecutionDelay)
   at ArtOfTest.WebAii.Win32.Mouse.HoverOver(Point pointToHoverOver)
   at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.DesktopActionDescriptor.Execute(Browser browser)
   at ArtOfTest.WebAii.Design.Extensibility.HtmlActionDescriptor.Execute(IAutomationHost autoHost)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)
------------------------------------------------------------

Is there any way to fix the issue ?

 

Thanks

1 Answer, 1 is accepted

Sort by
0
Plamen Mitrev
Telerik team
answered on 03 Oct 2022, 01:46 PM

Hello Santhosh,

Thank you for starting a discussion on this topic and for sharing details about the error message. 

Based on my experience with other customers and different environments, I would say that the remote VM machine did not have an active user session or that it was locked during the test run. Since there are some mouse or keyboard actions in the executed tests, the test fails with Win32Error exception.

Test Studio has built in mechanism to try and keep the machine awake and reconnect to the console session when you close the remote desktop connection to it. Those options come with the Execution Server and you can find more details in the section Test Studio Built-in Options to Control the User Session. There is also more information in the linked articles about the requirements and recommendations for running test lists remotely. 

Of course, I remain available to assist you further, if you encounter any issues along the way.

Regards,
Plamen Mitrev
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
Shailesh
Top achievements
Rank 1
Answers by
Plamen Mitrev
Telerik team
Share this question
or