-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WinAppDriver Starting/Stopping Task in azure devops not working as expected #1434
Comments
Are your tests working? |
@vishnuprakash9845 Maybe something with rights... |
I ran into this and am trying to remember the steps I took to resolve: Have you:
And as @Shakevg mentioned above, the Winappdriver Stop task output would be useful as well. |
Sorry for my late reply. Had to relocate to differnt location due to Pandemic tried all the possible ways to resolve not getting any lead on this. Any one on the community [@anunay1 , @Shakevg , @timheuer , @not-the-car ] please help me. 1. Yes WinAppDriver is launching when I start manually on the same agent machine [VM1] 3. Posting the Stop WinAppDriver logs 2021-05-29T10:32:37.6112549Z ##[section]Starting: Stop - WinAppDriver |
@vishnuprakash9845 I suppose your desktop session is locked. |
@Shakevg I have configured the agent to run as service, now reconfigured as per the instructions from the document for autologon as per below image.Triggered couple of tests, its running fine. Let me monitor for couple of days. how to achieve active maximized RDP session? Are yo referring to set Display Configurations as per below imageDue to some copyrights I am not supposed to share the entire code base. but can share the app launch code |
@vishnuprakash9845 |
I am not too sure about the error log. But I have encountered similar issue before: I had add 1 devops task before test task, then it solve my issue. Maybe you can try to have a look. Just run this task before your test task, and see if it able to help. |
I am currently automating the UWP application, so in the azure devops I tried to Include the WinAppDriver task to start the WinAppDriver server. But when I check the VM where the tests will run(Self hosted agent), I dont see winappdriver running or anything like that.
Bit confused with this task and how it works, can anyone please help me.
https://marketplace.visualstudio.com/items?itemName=WinAppDriver.winappdriver-pipelines-task
Configured Task in Azure Devops
![image](https://user-images.githubusercontent.com/24207575/106592967-33878d80-6576-11eb-8165-a0216520d216.png)
After running the Pipeline
![image](https://user-images.githubusercontent.com/24207575/106593023-4732f400-6576-11eb-9a3e-aa2a506ecc09.png)
Also when I tried to programmatically start the winappdriver like below its not working in VM, but working fine in Local machine where I build the code.
string winAppDriverPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86), @"Windows Application Driver\WinAppDriver.exe");
Process.Start(winAppDriverPath);
The text was updated successfully, but these errors were encountered: