From fc6e2daf6421dc1057874f7c32216e0926478f5d Mon Sep 17 00:00:00 2001 From: ishabaral Date: Wed, 26 Feb 2025 16:02:39 +0545 Subject: [PATCH 1/4] Adding smoke test docs for desktop client --- Desktop/new/Smoke_Test.md | 59 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 Desktop/new/Smoke_Test.md diff --git a/Desktop/new/Smoke_Test.md b/Desktop/new/Smoke_Test.md new file mode 100644 index 00000000..c41c057f --- /dev/null +++ b/Desktop/new/Smoke_Test.md @@ -0,0 +1,59 @@ +## Desktop Sync Client Smoke Test - TestRail + +## T5066: Desktop Sync Client Smoke Test + +| **Status** | Type | Priority | Estimate | References | Is Automated | Automation Type | Need Implement | +|----------|--------------|----------|----------|------------|--------------|----------------|----------------| +| Untested | Smoke & Sanity | Medium | None | None | No | None | No | + + +--- + +## Preconditions +This is the smoke test for the community desktop sync client and a regression test for the branded desktop sync client. + +Background +- Latest stable server +- Includes visual checks + +--- + +## Steps + +| Step | Description | +|------|------------| +| **1. Windows:**
- Fresh install the ownCloud desktop client using the `.msi` installer.
- During installation, check the MSI details page for:
   - **Verified publisher**
   - **Certificate expiry** | **Verified publisher:** ownCloud GmbH
**Show information about the publisher's certificate:**
- Issued to: ownCloud GmbH
- Issued by: `` Code Signing CA
- Valid from `` to ``
**Reference:** [Enterprise Issue #4334](https://github.com/owncloud/enterprise/issues/4334#issuecomment-749115521) | +| 2. Check the version from Settings tab → About | ownCloud installed version is correct | +| 3. Sync a file to the server | Ensure the file has been synced. | +| 4. Check the overlay icons (VFS enabled) | Confirm overlay icons are present. | +| 5. Disable VFS | - Disable VFS.
- Confirm overlay icons have changed.
- Check that all cloud files are downloaded and NOT deleted (in both client and server).
Reference: [GitHub Issue #11331](https://github.com/owncloud/client/issues/11331) | +| 6. Verify that the crash reporter works | Confirm that the crash reporter sends messages to Sentry. | +| **7. Mac**
     - Install the ownCloud desktop client using the `.pkg` installer.
     - Check the version from the **Settings tab → About** |
ownCloud installed version is correct. | +| 8. Sync a file to the server | File has been synced. | +| 9. Check the overlay icons | Overlay icons are present. | +| 10. Enable VFS
       Dehydrate one file and double-click to open it | VFS has beed enabled
File is downloaded and no `.owncloud` suffix. | +| 11. Verify that the crash reporter works | Confirm that the crash reporter sends messages to Sentry. | +| **12. Ubuntu or Debian with GNOME desktop**
     - Install ownCloud client.
     - Install Nautilus extension:
      ```sudo apt install owncloud-client-nautilus```
     - Check the version from the Settings tab -> About| ownCloud installed version is correct +| 13. Sync a file to the server | File has been synced. | +| 14. Check the overlay icons | Overlay icons are present. | +| 15. Enable VFS
       Dehydrate one file and double-click to open it. | VFS is enabled
File is downloaded without the `.owncloud` suffix. | +| **16. Fedora with GNOME desktop**
     - Install ownCloud client.
     - Install Nautilus extension:
      ```sudo yum install owncloud-client-nautilus```
     - Go to **Settings tab → About** | ownCloud installed version is correct. | +| **17. Testpilot on Windows:**
     - Install the Testpilot client.
     - Check the version from Settings tab → About. | ownCloud installed version is correct | +| **18. Verify initial sync worked** | Initial sync worked | +| 19. Testpilot doesn't show ownCloud only name and logo | Testpilotcloud name and logo are present | +| **20. Linux AppImage**
     Run and sync a file | Verify that the AppImage works | +| 21. Verify that the crash reporter works | Crash reporter sends messages to Sentry. | + + +### Results + +| Untested
QA T.
6/3/2024 7:35 AM
Assigned To | This test was marked as 'Untested'. | +|----------|-------------------------------| + + + + + + + + From 3a7f320660fbc84a9615ab891c48237b1e3a18fd Mon Sep 17 00:00:00 2001 From: ishabaral Date: Thu, 27 Feb 2025 17:07:53 +0545 Subject: [PATCH 2/4] Update Regression_test_plan_minor_release with smoke test --- Desktop/Regression_Test_Plan_Minor_Release.md | 21 ++++--- Desktop/new/Smoke_Test.md | 59 ------------------- 2 files changed, 14 insertions(+), 66 deletions(-) delete mode 100644 Desktop/new/Smoke_Test.md diff --git a/Desktop/Regression_Test_Plan_Minor_Release.md b/Desktop/Regression_Test_Plan_Minor_Release.md index 78ac5cd5..77e84a8e 100644 --- a/Desktop/Regression_Test_Plan_Minor_Release.md +++ b/Desktop/Regression_Test_Plan_Minor_Release.md @@ -77,7 +77,7 @@ but testing should be also done with a 'real' server, for that the BTR team can ID | Test Case | Steps to reproduce | Expected Result | Result | Related Comment (Squish-Test) | Server -- | --------- | ------------------ | --------------- | ------ | ----------------------------- | ------ 1 | Update Installation | 1. You need to have installed a previous version
2. Update to the new version || :construction: Win
:construction: macOS
:construction: Linux || -2 | Install the new version | 1. Delete the previous version
2. Install the new version || :construction: Win
:construction: macOS
:construction: Linux || +2 | Install the new version | Delete the previous version

**Windows:**
- Install ownCloud desktop client using .msi installer.
- During installation, check the MSI details page for:
   - Verified publisher
   - Certificate expiry

**Mac:**
- Install ownCloud desktop client using .pkg installer

**Ubuntu or Debian with GNOME desktop:**
- Install ownCloud client.

**Fedora with GNOME desktop:**
- Install ownCloud client.
- Install Nautilus extension:
 ```sudo yum install owncloud-client-nautilus```

**Testpilot on Windows:**
- Install testpilot client

**All platforms:**
- Check the version from the Settings tab -> About | **Windows:**
Verified publisher: ownCloud GmbH
Show information about the publisher's certificate:
- Issued to: ownCloud GmbH
- Issued by: `` Code Signing CA
- Valid from `` to ``
[Enterprise Issue #4334](https://github.com/owncloud/enterprise/issues/4334#issuecomment-749115521)

**All platforms:**
ownCloud installed version is correct

On **Testpilot** verify that it doesn't show ownCloud name and logo but rather shows Testpilotcloud name and logo | :construction: Win
:construction: macOS
:construction: Linux || 3 | Verify that you can enter a server address (self signed cert) | 1. Launch desktop client
2. Enter a server address
3. Click on Next
4. If it is the first time you should accept the certificate || :heavy_check_mark: | tst_addAccount | :robot: oC10
:robot: oCIS| 4 | Valid Login | 1. Log in with the correct username and password | Login successful | :heavy_check_mark: | tst_addAccount | :robot: oC10
:robot: oCIS 5 | Invalid Login | 1. Try to log in with wrong username or password | Error message `Login failed: username and/or password incorrect` is shown | :heavy_check_mark: | tst_addAccount | :robot: oC10
:robot: oCIS @@ -324,10 +324,17 @@ ID | Test Case | Steps to reproduce | Expected Result | Result | Related Comment ID | Test Case | Steps to reproduce | Expected Result | Result | Related Comment (Squish-test) | Server -- | --------- | ------------------ | --------------- | ------ | ----------------------------- | ------ -1 | If the system is offline, there are no overlay icons present | 1. Disconnect the Internet
2. Launch the Desktop client
3. Check the overlay icons in the local sync folder | The overlay icons are not shown| :construction: || -2 | When you pause the sync, the overlay icons are still shown | 1. Launch the Desktop client
2. Check the overlay icons
3. Pause the sync
4. Check the overlay icons | The overlay icons disappear | :construction: || -3 | Green check (All files within a folder all the way down the tree are synced with the server) | 1. Open the local sync folder
2. Add a folder having multiple nested files and folders
3. Check the overlay icons | The green check is shown in all the folders/files | :construction: || -4 | Blue spinning icon (Some or all files/folders in the directory are waiting to sync or are actively in sync) | 1. Open the local sync folder
2. Add some files and folders
3. Check the overlay icons | The files/folder that are waiting to sync have the blue icons | :construction: || -5 | Yellow warning triangle (There is an error in sync somewhere in the directory such as a path longer than 255 characters, a bad character in a name or a file firewall problem) | 1. Open the local sync folder
3. Add a problematic file
3. Check the overlay icons | The files that are not synced due to a problem have the yellow warning triangle icons | :construction: || -6 | Red error Icon (There is a fatal problem in the sync process that can't be resolved) | 1. Open the local sync folder
3. Create a sync error
3. Check the overlay icons | The files/folders that are not synced due to a fatal problem have the red error icons | :construction: || +1 | Check the overlay icons (VFS enabled) | 1. Launch the Desktop client
2. Check if VFS is already enabled
3. Open the file explorer | Check owncloud overlay icons are present. | :construction: Win || +2 | If the system is offline, there are no overlay icons present | 1. Disconnect the Internet
2. Launch the Desktop client
3. Check the overlay icons in the local sync folder | The overlay icons are not shown| :construction: Win || +3 | When you pause the sync, the overlay icons are still shown | 1. Launch the Desktop client
2. Check the overlay icons
3. Pause the sync
4. Check the overlay icons | The overlay icons disappear | :construction: Win || +4 | Green check (All files within a folder all the way down the tree are synced with the server) | 1. Open the local sync folder
2. Add a folder having multiple nested files and folders
3. Check the overlay icons | The green check is shown in all the folders/files | :construction: Win || +5 | Blue spinning icon (Some or all files/folders in the directory are waiting to sync or are actively in sync) | 1. Open the local sync folder
2. Add some files and folders
3. Check the overlay icons | The files/folder that are waiting to sync have the blue icons | :construction: Win || +6 | Yellow warning triangle (There is an error in sync somewhere in the directory such as a path longer than 255 characters, a bad character in a name or a file firewall problem) | 1. Open the local sync folder
3. Add a problematic file
3. Check the overlay icons | The files that are not synced due to a problem have the yellow warning triangle icons | :construction: Win || +7 | Red error Icon (There is a fatal problem in the sync process that can't be resolved) | 1. Open the local sync folder
3. Create a sync error
3. Check the overlay icons | The files/folders that are not synced due to a fatal problem have the red error icons | :construction: Win || +8 | Disable VFS | 1. Launch the Desktop client
2. Disable VFS | - VFS has been disabled.
- Overlay icon is changed to green check overlay icon
- Check that all cloud files are downloaded and NOT deleted (in client and server).
Github issue: [#11331](https://github.com/owncloud/client/issues/11331) |:construction: Win || +### 13. Crash reporter + +ID | Test Case | Steps to reproduce | Expected Result | Result | Related Comment (Squish-test) | Server +-- | --------- | ------------------ | --------------- | ------ | ----------------------------- | ------ +1 | Verify that the crash reporter works | 1. Download the App image
2. In the terminal, go to the location where App image is installed:
`./ownCloud-X.X.X.AppImage --debug`
3. Right click on ownCloud taskbar
4. Debug actions -> Crash now-qFatal | Crash reporter sends messages to Sentry | :construction: Win :construction: Linux || diff --git a/Desktop/new/Smoke_Test.md b/Desktop/new/Smoke_Test.md deleted file mode 100644 index c41c057f..00000000 --- a/Desktop/new/Smoke_Test.md +++ /dev/null @@ -1,59 +0,0 @@ -## Desktop Sync Client Smoke Test - TestRail - -## T5066: Desktop Sync Client Smoke Test - -| **Status** | Type | Priority | Estimate | References | Is Automated | Automation Type | Need Implement | -|----------|--------------|----------|----------|------------|--------------|----------------|----------------| -| Untested | Smoke & Sanity | Medium | None | None | No | None | No | - - ---- - -## Preconditions -This is the smoke test for the community desktop sync client and a regression test for the branded desktop sync client. - -Background -- Latest stable server -- Includes visual checks - ---- - -## Steps - -| Step | Description | -|------|------------| -| **1. Windows:**
- Fresh install the ownCloud desktop client using the `.msi` installer.
- During installation, check the MSI details page for:
   - **Verified publisher**
   - **Certificate expiry** | **Verified publisher:** ownCloud GmbH
**Show information about the publisher's certificate:**
- Issued to: ownCloud GmbH
- Issued by: `` Code Signing CA
- Valid from `` to ``
**Reference:** [Enterprise Issue #4334](https://github.com/owncloud/enterprise/issues/4334#issuecomment-749115521) | -| 2. Check the version from Settings tab → About | ownCloud installed version is correct | -| 3. Sync a file to the server | Ensure the file has been synced. | -| 4. Check the overlay icons (VFS enabled) | Confirm overlay icons are present. | -| 5. Disable VFS | - Disable VFS.
- Confirm overlay icons have changed.
- Check that all cloud files are downloaded and NOT deleted (in both client and server).
Reference: [GitHub Issue #11331](https://github.com/owncloud/client/issues/11331) | -| 6. Verify that the crash reporter works | Confirm that the crash reporter sends messages to Sentry. | -| **7. Mac**
     - Install the ownCloud desktop client using the `.pkg` installer.
     - Check the version from the **Settings tab → About** |
ownCloud installed version is correct. | -| 8. Sync a file to the server | File has been synced. | -| 9. Check the overlay icons | Overlay icons are present. | -| 10. Enable VFS
       Dehydrate one file and double-click to open it | VFS has beed enabled
File is downloaded and no `.owncloud` suffix. | -| 11. Verify that the crash reporter works | Confirm that the crash reporter sends messages to Sentry. | -| **12. Ubuntu or Debian with GNOME desktop**
     - Install ownCloud client.
     - Install Nautilus extension:
      ```sudo apt install owncloud-client-nautilus```
     - Check the version from the Settings tab -> About| ownCloud installed version is correct -| 13. Sync a file to the server | File has been synced. | -| 14. Check the overlay icons | Overlay icons are present. | -| 15. Enable VFS
       Dehydrate one file and double-click to open it. | VFS is enabled
File is downloaded without the `.owncloud` suffix. | -| **16. Fedora with GNOME desktop**
     - Install ownCloud client.
     - Install Nautilus extension:
      ```sudo yum install owncloud-client-nautilus```
     - Go to **Settings tab → About** | ownCloud installed version is correct. | -| **17. Testpilot on Windows:**
     - Install the Testpilot client.
     - Check the version from Settings tab → About. | ownCloud installed version is correct | -| **18. Verify initial sync worked** | Initial sync worked | -| 19. Testpilot doesn't show ownCloud only name and logo | Testpilotcloud name and logo are present | -| **20. Linux AppImage**
     Run and sync a file | Verify that the AppImage works | -| 21. Verify that the crash reporter works | Crash reporter sends messages to Sentry. | - - -### Results - -| Untested
QA T.
6/3/2024 7:35 AM
Assigned To | This test was marked as 'Untested'. | -|----------|-------------------------------| - - - - - - - - From 1e4a46eca035f109d1aeae2860214cc676d0ea74 Mon Sep 17 00:00:00 2001 From: ishabaral Date: Mon, 3 Mar 2025 14:14:56 +0545 Subject: [PATCH 3/4] add crash reporter --- Desktop/Regression_Test_Plan_Minor_Release.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Desktop/Regression_Test_Plan_Minor_Release.md b/Desktop/Regression_Test_Plan_Minor_Release.md index 77e84a8e..244c9707 100644 --- a/Desktop/Regression_Test_Plan_Minor_Release.md +++ b/Desktop/Regression_Test_Plan_Minor_Release.md @@ -335,6 +335,15 @@ ID | Test Case | Steps to reproduce | Expected Result | Result | Related Comment ### 13. Crash reporter +#### Preconditions: + +1. Open desktop client +2. Go to Settings tab +3. In the middle there are Advanced settings including 'Show crash reporter' checkbox + ID | Test Case | Steps to reproduce | Expected Result | Result | Related Comment (Squish-test) | Server -- | --------- | ------------------ | --------------- | ------ | ----------------------------- | ------ -1 | Verify that the crash reporter works | 1. Download the App image
2. In the terminal, go to the location where App image is installed:
`./ownCloud-X.X.X.AppImage --debug`
3. Right click on ownCloud taskbar
4. Debug actions -> Crash now-qFatal | Crash reporter sends messages to Sentry | :construction: Win :construction: Linux || +1 | Check crash report window | Start the client running the below commands (all of them):
- macOS: /Applications/owncloud.app/Contents/MacOS/owncloud --debug
- macOS: /Applications/owncloud.app/Contents/MacOS/owncloud --debug
- Ubuntu: owncloud --debug

Trigger the crash from the tray context menu:
- Right click on ownCloud taskbar
- Click Debug actions -> Crash now-qFatal| Crash window has been opened ||| +2 | Check button | Click 'Don't send' button to close the window | Window has been closed, no report sent |||| +3 | Verify crash report has been sent | 1. Trigger the crash again
2. Add a comment (so it is obvious that this is a test crash report)
3. Send the report | - Message has been shown: Sent! Many thanks. Please refer to crash bp-612d8ff3-e41d-4070-9d65-7282e2190619 in bug reports.
- Report has been sent to crash report server and it's shown there | +4 | Verify the report includes correct data | | Comment and version are correct | \ No newline at end of file From 5071aca596bba25f583ca3364448f442b668e6d1 Mon Sep 17 00:00:00 2001 From: ishabaral Date: Mon, 3 Mar 2025 15:10:20 +0545 Subject: [PATCH 4/4] refactor code --- Desktop/Regression_Test_Plan_Minor_Release.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Desktop/Regression_Test_Plan_Minor_Release.md b/Desktop/Regression_Test_Plan_Minor_Release.md index 244c9707..ea68ee95 100644 --- a/Desktop/Regression_Test_Plan_Minor_Release.md +++ b/Desktop/Regression_Test_Plan_Minor_Release.md @@ -343,7 +343,7 @@ ID | Test Case | Steps to reproduce | Expected Result | Result | Related Comment ID | Test Case | Steps to reproduce | Expected Result | Result | Related Comment (Squish-test) | Server -- | --------- | ------------------ | --------------- | ------ | ----------------------------- | ------ -1 | Check crash report window | Start the client running the below commands (all of them):
- macOS: /Applications/owncloud.app/Contents/MacOS/owncloud --debug
- macOS: /Applications/owncloud.app/Contents/MacOS/owncloud --debug
- Ubuntu: owncloud --debug

Trigger the crash from the tray context menu:
- Right click on ownCloud taskbar
- Click Debug actions -> Crash now-qFatal| Crash window has been opened ||| +1 | Check crash report window | Start the client running the below commands (all of them):
- macOS: /Applications/owncloud.app/Contents/MacOS/owncloud --debug
- Windows: cd "C:\Program files (x86)\owncloud" && owncloud --debug
- Ubuntu: owncloud --debug

Trigger the crash from the tray context menu:
- Right click on ownCloud taskbar
- Click Debug actions -> Crash now-qFatal| Crash window has been opened ||| 2 | Check button | Click 'Don't send' button to close the window | Window has been closed, no report sent |||| 3 | Verify crash report has been sent | 1. Trigger the crash again
2. Add a comment (so it is obvious that this is a test crash report)
3. Send the report | - Message has been shown: Sent! Many thanks. Please refer to crash bp-612d8ff3-e41d-4070-9d65-7282e2190619 in bug reports.
- Report has been sent to crash report server and it's shown there | 4 | Verify the report includes correct data | | Comment and version are correct | \ No newline at end of file