tag:help.appveyor.com,2012-11-13:/discussions/questions/2228-windows-equivalent-of-linux-export-display-for-gui-app-testingAppVeyor: Discussion 2018-10-19T08:17:48Ztag:help.appveyor.com,2012-11-13:Comment/395858012018-07-24T12:42:28Z2018-07-24T12:42:29ZWindows equivalent of Linux export DISPLAY for GUI app testing?<div><p>HI,</p>
<p>I have the exact same problem as you had.<br>
Did you find a solution to launch GUI python tests on AppVeyor?</p>
<p>Best regards.</p>
<p>Lucie</p></div>Lucie OUVRIER-BUFFETtag:help.appveyor.com,2012-11-13:Comment/395858012018-07-24T13:15:38Z2018-07-24T13:15:38ZWindows equivalent of Linux export DISPLAY for GUI app testing?<div><p>How would you do this on your local Windows machine?</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/395858012018-07-24T14:29:51Z2018-07-24T14:29:52ZWindows equivalent of Linux export DISPLAY for GUI app testing?<div><p>Hi,</p>
<p>It's a PyQt5 QApplication, so just launching the script of tests with python command is working on my local machine.</p>
<p>The project is open source, you can see the repository on GitHub here: <a href="https://github.com/populse/populse_sandbox">https://github.com/populse/populse_sandbox</a><br>
More precisely, the AppVeyor file is here: <a href="https://github.com/populse/populse_sandbox/blob/master/appveyor.yml">https://github.com/populse/populse_sandbox/blob/master/appveyor.yml</a><br>
The script of tests is here: <a href="https://github.com/populse/populse_sandbox/blob/master/python/populse_mia/src/scripts/test.py">https://github.com/populse/populse_sandbox/blob/master/python/popul...</a></p>
<p>When I try to launch the script in AppVeyor, nothing is happening.<br>
I tried to write a print at the very beginning of the program, but it is not displayed, and the environment is like stuck.</p>
<p>Best regards</p>
<p>Lucie</p></div>Lucie OUVRIER-BUFFETtag:help.appveyor.com,2012-11-13:Comment/395858012018-07-24T14:39:48Z2018-07-24T14:39:48ZWindows equivalent of Linux export DISPLAY for GUI app testing?<div><p>Try to add <a href="https://www.appveyor.com/docs/how-to/rdp-to-build-worker/">RDP</a> at <code>init</code> stage and connect to VM when it stuck. Maybe you will see why it stuck right away.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/395858012018-07-26T14:21:47Z2018-07-26T14:21:48ZWindows equivalent of Linux export DISPLAY for GUI app testing?<div><p>Hi,</p>
<p>I tried what you suggested, it's a very nice tool!</p>
<p>I saw what the problem is, when I launch the python script, the following popup appears:</p>
<p>This windows version does not support the required bluetooth api.</p>
<p>I will try to fix it, thanks!</p>
<p>Best regards</p>
<p>Lucie</p></div>Lucie OUVRIER-BUFFETtag:help.appveyor.com,2012-11-13:Comment/395858012018-07-26T14:29:07Z2018-07-26T14:29:07ZWindows equivalent of Linux export DISPLAY for GUI app testing?<div><p>Thanks a lot for the update!</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/395858012018-07-26T14:44:25Z2018-07-26T14:44:27ZWindows equivalent of Linux export DISPLAY for GUI app testing?<div><p>It was just a problem with the version of PyQt5 module.</p>
<p>PyQt5-5.10 was causing this issue, the valid one is 5.9.2.</p>
<p>I uninstalled and reinstalled the good version and everything is working well now !</p>
<p>Thank you again</p></div>Lucie OUVRIER-BUFFET