client icon indicating copy to clipboard operation
client copied to clipboard

[QA] Run automated GUI tests in Windows

Open Talank opened this issue 3 years ago • 1 comments

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

  1. Download ownCloud client (already built) and install it in windows.
  2. 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)
  3. Download squish for windows (for example squish-6.7.2-qt512x-win64-msvc141.exe) and install it
  4. Install python 3.8 on windows
  5. Download PythonChanger.py script and save it inside your squish installation directory
  6. run python PythonChanger.py from squish installation directory
  7. 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.
  8. 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

Talank avatar Jun 30 '22 06:06 Talank

It is blocked, until we can figure out a method to install python 3.8 and pgGObject library in python 3.8 in windows

Talank avatar Jun 30 '22 06:06 Talank

Now we can run Squish tests in Windows. Docs: https://doc.owncloud.com/desktop/next/appendices/guitest.html

saw-jan avatar Jan 01 '24 06:01 saw-jan