[QA] Run automated GUI tests in Windows
Pre-submission Checks
- [X] I checked for similar issues, but could not find any. I also checked the closed issues. I could not contribute additional information to any existing issue.
- [X] I will take the time to fill in all the required fields. I know that the bug report may be dismissed otherwise due to lack of information.
Describe the QA issue
Currently we are running all the automated tests in ubuntu, but with some changes, we should be able to run the tests in Windows as well (at least run it locally).
Steps to reproduce the issue
- Download ownCloud client (already built) and install it in windows.
- Set up ownCloud core (if you are using virtual machine, then you can use the core that you have set up in your host, you might need to configure the host file of the virtual machine and trusted_domains domains on core config)
- Download squish for windows (for example squish-6.7.2-qt512x-win64-msvc141.exe) and install it
- Install python 3.8 on windows
- Download PythonChanger.py script and save it inside your squish installation directory
- run
python PythonChanger.pyfrom squish installation directory - Run owncloud-test-middleware (just like core, you can run it in host machine, if you are using virtual machine for windows. Alternatively, you can run middleware in drone). You might need node installed if you want to run middleware locally.
- Install required python libraries
- pip install requests
- pip install pycairo
- pip install PyGObject
NOTE the PyGObject library is not available in windows. You can install this library using mingw as shown here. However, the problem so far is that this tool can not be used to install python 3.8 so far. And we need python 3.8 for squish.
Screenshots
NA
Expected behavior
No response
Actual behavior
No response
It is blocked, until we can figure out a method to install python 3.8 and pgGObject library in python 3.8 in windows
Now we can run Squish tests in Windows. Docs: https://doc.owncloud.com/desktop/next/appendices/guitest.html