Questions icon indicating copy to clipboard operation
Questions copied to clipboard

Migration of UI test cases pf a Desktop Application to Azure Virtual Machine Scale Set from Azure Virtual Machine

Open Anushka77singhh opened this issue 1 year ago • 0 comments

I am trying to migrate UI test cases of a desktop application to Azure Virtual Machine Scale Set. I am using C# and Winapp driver to automate UI testcases on a desktop application. When I am running UI test cases on Remote server through Azure deveops pipelines, I'm facing this error:

Error Message:

Test method UserInterface.Test.UIAndConsoleTestCases.VerifyAllField threw exception: OpenQA.Selenium.WebDriverException: Failed to locate opened application window with appId: C:abc.exe, and processId: 5112 Stack Trace: at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse) at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary2 parameters) at OpenQA.Selenium.Appium.AppiumDriver1.Execute(String driverCommandToExecute, Dictionary2 parameters) at OpenQA.Selenium.Remote.RemoteWebDriver.StartSession(ICapabilities desiredCapabilities) at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities) at OpenQA.Selenium.Appium.AppiumDriver1..ctor(ICommandExecutor commandExecutor, ICapabilities appiumOptions) at OpenQA.Selenium.Appium.AppiumDriver1..ctor(Uri remoteAddress, ICapabilities appiumOptions, TimeSpan commandTimeout) at OpenQA.Selenium.Appium.Windows.WindowsDriver1..ctor(Uri remoteAddress, AppiumOptions AppiumOptions, TimeSpan commandTimeout) at UserInterface.Test.CommonData.CreateNewSession(String InstalledPath) in D:\a\1\s\Projects\UITestcasesWinApp\UserInterface.Test\Helper\CommonData.cs:line 63 at UserInterface.Test.UIAndConsoleTestCases.VerifyAllFieldNamesAndTypes() in D:\a\1\s\Projects\UITestcasesWinApp\UserInterface.Test\UIAndConsoleTestCases.cs:line 267 at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor) at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) Standard Output Messages: WinAppDriver started successfully! Process ID: 432 Error: WaitForInputIdle failed. This could be because the process does not have a graphical interface. HTTP/1.1 500 Internal Error

Currently I am running single job to test, in which several testcases are there. I want to state one more thing that GRVU exe, it has several process Id,while its running, I got to know about this from the error log.

Please provide me solution to resolve this issue.

Anushka77singhh avatar Jul 20 '24 20:07 Anushka77singhh