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

List of Desktop Client test cases to automate #789

Closed
14 tasks done
saw-jan opened this issue Dec 13, 2022 · 10 comments
Closed
14 tasks done

List of Desktop Client test cases to automate #789

saw-jan opened this issue Dec 13, 2022 · 10 comments
Assignees
Labels

Comments

@saw-jan
Copy link
Member

saw-jan commented Dec 13, 2022

  • - [ ] Notifications (Squish cannot retrieve information of native desktop notification popup)

    Test Cases
    Priority ID Test Case Steps to reproduce Expected Result
    2 ❌ 1 Notifications 1. Upload a new file to the server Desktop client shows the notification: Sync Activity $file_name has been added
  • - [ ] Share via link Sharing dialog is deprecated. See [test-only] [full-ci] Verify fields of share response client#10959 (comment)

    Test cases
    Priority ID Test Case Steps to reproduce Expected Result
    8 Public link a folder and download it using direct download option 1. Open Public link dialog
    2. Create the link share
    3. Open ... menu of the created link
    4. Select copy public link to clipboard (direct download)
    5. Paste link in the browser and download it
    zip archive of the folder can be downloaded
    15 Enforce password protection 1. In the server, enable Enforce password protection
    2. From the Public link sharing dialog, try to create the link share
    Password enforced error message is shown
    16 Enforce password protection and try to disable the password 1. From the server, create a public link share with a password
    2. Enable Enforce password protection in the server
    2. From the Public link sharing dialog, try to uncheck the password
    Password enforced error message is shown
    17 Enforce expiration date 1. In the server, enable Set default expiration date -> Enforce expiration date
    2. From the Public link sharing dialog, create the link share
    The expiration date should be set by default
    18 Create a public link with a password. In the server, modify Password Policies and edit password 1. In the server, enable Password Policy app and set minimum password to 4 characters
    2. Open the public link share dialog and create the link share with password
    3. In the server, change password policy to minimum 8 characters
    4. From link sharing dialog, edit the password of that link share with short password (< 8 chars)
    5. Edit password with 8 or more characters
    - An error appears stating min password length 8 for the short password
    - Longer than 8 chars password works
  • - [ ] Share with Users and Groups Sharing dialog is deprecated. See [test-only] [full-ci] Verify fields of share response client#10959 (comment)

    Test cases
    Priority ID Test Case Steps to reproduce Expected Result
    8 Share a file bigger than 1 GB with a user 1. Open the sharing dialog for the file ( > 1GB)
    2. Search and share with user
    Shared file appears in the server for sharee
    13 Matching users are listed alphabetically 1. In the server, create users: user01, user02, user03, ...
    2. Open the sharing dialog
    3. Type 'use' in the search box
    - Exact match is listed first
    - Other users are listed alphabetically
    34 Disable Allow resharing and share a file with Share permission 1. In the server, disabled Allow resharing
    2. Share a file to user with Share permission in the server
    3. As share receiver, open the local sync folder
    4. Try to reshare the received file using Right click menu
    Resharing not allowed option is shown
    35 Restrict users to only share with users in their groups 1. In the server, enable Restrict users to only share with their group members
    2. Open the sharing dialog
    3. Search the users to share
    Only the users from the group are shown
    36 Share with autocompletion disabled 1. In the server, disabled Allow user autocompletion
    2. Open the sharing dialog and search the users
    Full username needs to be entered in order to share
    37 Try to share with Allow apps to use the Share API disabled 1. In the server, disable Allow apps to use the Share API
    2. Open the local sync folder
    3. Try to share a folder: Right click on folder -> ownCloud option
    There is no "Share" option while navigating to ownCloud menu option
    41 Move one shared folder to another shared folder (with permissions) 1. From the server, share two folders (Fodler1 and Folder2)
    2. As sharee, open the local sync folder from the desktop client
    3. Try to move Folder1 inside the Folder2
    Sync activity shows MOVE error (403 Forbidden) in the desktop client
    42 Share a file with many users 1. From the server, share a file with many users (40-80)
    2. Open the sharing dialog for that file in the desktop client
    List of users (share receivers) can be scrolled
  • [] Without connection (These test cases are better off for manual testing)

    Test cases
    Priority ID Test Case Steps to reproduce Expected Result
    1 1 Upload several files and folder to the sync folder without Internet 1. Add an account to the desktop client
    2. Disconnect the Internet
    3. Upload several files and folder in the sync folder
    4. Connect the Internet
    5. Wait for sync
    The files and folder are synced to the server
    redundant? 2 Upload several files and folder with special characters to the sync folder without Internet 1. Add an account to the desktop client
    2. Disconnect the Internet
    3. Upload several files and folder (having special characters) in the sync folder
    4. Connect the Internet
    5. Wait for sync
    The files and folder are sync with the server
    2 3 Upload the same folder from the server and form the client with different files inside 1. Add an account to the desktop client
    2. Disconnect the Internet
    3. In the server, upload a folder with some files
    4. In the local sync folder, upload same named folder with different files in it
    5. Connect the Internet
    6. Wait for sync
    The files and folder are synced to the server
    2 4 Remove folder from the client without Internet 1. Add an account to the desktop client
    2. Disconnect the Internet
    3. Remove a folder from the local sync folder
    4. Connect the Internet
    5. Wait for sync
    The folder is deleted from the server

    Difficulties with it:

    • ❗ need to disable the network adaptor during the test (which might also cause Squish to lose license connection and the action requires root permission)
    • ❗ after the internet is back, it takes a significant amount of time for sync to start again (which is not great for testing)
@saw-jan

This comment was marked as duplicate.

@saw-jan

This comment was marked as duplicate.

@HanaGemela

This comment was marked as duplicate.

@HanaGemela

This comment was marked as resolved.

@saw-jan

This comment was marked as resolved.

@saw-jan

This comment was marked as resolved.

@saw-jan

This comment was marked as duplicate.

@saw-jan

This comment was marked as duplicate.

@saw-jan

This comment was marked as resolved.

@saw-jan
Copy link
Member Author

saw-jan commented Dec 5, 2023

Remaining test cases will be done in respective tickets: owncloud/client#11346, owncloud/client#11418, owncloud/client#9788

@saw-jan saw-jan closed this as completed Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants