Skip to content
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 and Docker Windows #1046

Open
RobertJarlvik opened this issue Jan 30, 2020 · 9 comments
Open

WinAppDriver and Docker Windows #1046

RobertJarlvik opened this issue Jan 30, 2020 · 9 comments

Comments

@RobertJarlvik
Copy link

Has anyone been able to use Docker Windows with WinAppDriver? And is there more information about anyone succeeded with it?
I have tried but unfortunately failed.

Best regards
Robert J

@anunay1
Copy link

anunay1 commented Feb 4, 2020

Can you please share what all have you tried, even I want to try the same.

@anunay1
Copy link

anunay1 commented Feb 4, 2020

@hassanuz can you add some points to it.

@dquist
Copy link
Contributor

dquist commented Feb 13, 2020

There's no way to do headless UI testing for Windows application, so this is not possible. An active desktop session needs to active for Windows UI tests to work.

@rob83ert
Copy link

rob83ert commented Feb 14, 2020

There's no way to do headless UI testing for Windows application, so this is not possible. An active desktop session needs to active for Windows UI tests to work.

Seems that way. Many people use RDP, as my self, and set the connection to actice through a command or registry. Sadly this is not implemented yet.

I hope there will be a solution for it. The solution I work with now in the company I work at is that we create just several VM's and connect to Azure DevOps with agents to run the GUI test with WinAppDriver which works fine.
But it would be a more nice of a solution to scale up and down with in need with containers as we do with GUI testing with containers when GUI testing webb applications.

@nickrandolph
Copy link

@dquist are you saying that docker running a windows container in interactive mode wouldn't be able to launch a Windows app?
tbh the whole process gets blocked well before that as even trying to install dependency appx seems to fail - would love to know if anyone's had any luck installing an appx or msix based application.

@dquist
Copy link
Contributor

dquist commented Oct 21, 2020

are you saying that docker running a windows container in interactive mode wouldn't be able to launch a Windows app?

Correct. Interactive mode is not enough, you need to have an active desktop session. For example, a remote desktop session. Painful, but that's just the way it is.

There are scripts you can use to detach your remote desktop session while keeping the desktop active on the remote, that's the best solution I've come up with.

@nickrandolph
Copy link

This post led me to think that it might be possible - https://www.pdq.com/blog/ui-testing-a-wpf-app-in-windows-containers/
I'm guessing whilst it would appear that it's running the app, they still don't have an active desktop session, so wouldn't be able to interact with the app.
You would you have thought that it would be possible to at least run console uwp apps but this brings me back to the issue where I can't even get appx/msix to install.

@dquist
Copy link
Contributor

dquist commented Oct 21, 2020

Interesting, I had not come across that article before. Keep in mind he's using another tool, STUPS, instead of WinAppDriver.

@nickrandolph
Copy link

yep of course but I would imagine if we can get a windows app to install and run in a container, it would open the door to using which ever test tool you'd prefer to use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants