Running Desktop UI Automation tests in Azure pipelines

700 views Asked by At

I have UI Automation Tests written in SpecFlow & C# and automated using FlaUI. The tests are running absolutely fine on my local machine. Lately, I wanted them to be the part of my UI Automation Build Pipeline.

Further to this, I had an Azure WVD as a secondary workspace so I went ahead and installed the Interactive Agent on it. The tests were running fine till the Time the WVD is logged in & its the current Active Window of my local machine. When I tried minimizing it and monitored the Agent, I started receiving errors mentioned below.

 "KeyBoard input not received"

    "Mouse Input not received"

I am using a lot of Mouse.Click() , KeyBoard.Type()& understand that because of minimizing the WVD things don't work

I want to ask our experts that what If I move the complete execution to a dedicated VM on Azure configured with an interactive UI agent and running 24*7? I would not like to login to the VM but expect that the tests should all run without any hindrance and the pipeline doesn't have above execution errors.

0

There are 0 answers