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

3.4-3.8 sprint planning #222

Closed
13 of 15 tasks
IRONICBo opened this issue Mar 3, 2024 · 5 comments
Closed
13 of 15 tasks

3.4-3.8 sprint planning #222

IRONICBo opened this issue Mar 3, 2024 · 5 comments

Comments

@IRONICBo
Copy link
Collaborator Author

IRONICBo commented Mar 3, 2024

MVP Feature List Testing

1. Login and Registration @LiusCraft

  • Test that the casdoor login page loads properly.
  • Tests valid and invalid login credentials, verifies the accuracy of error messages, and verifies that you can successfully login and be redirected to the expected page.
  • Attempting to log in with invalid login credentials, i.e., logging in with the wrong token.
  • Test the integrity of the multi-account login process, including WeChat, X, and Facebook, verifying that each login method is able to successfully log in and correctly handle the post-login state.
  • Verify multi-account binding, unbinding functionality

2. Posting and Editing Articles @Baihhh

  • Create a new article using the markdown editor and verify that the article is published successfully.
  • Edit an existing article, including modifying the content and title, verifying that the changes are saved, and verifying that the changes are saved correctly and reflected on the article.
  • Tests the permissions control of Add and Edit operations to ensure that only the author of the article or a user with the appropriate permissions can perform these operations.
  • Test the translation function to make sure it works correctly and that there is a prompt for it.
  • Test whether the video upload and resource upload can be displayed properly.

3. Viewing Posts @xhyqaq

  • Test the loading and displaying of the post list, including the paging function and the sorting rules of posts.
  • Verify that direct access to specific articles via article ID is accurate, including consistent content display and formatting.
  • Test that different types of content (e.g., images, video links) display correctly in posts, ensuring that media content is rendered correctly.
  • Test the like and read count functionality of posts to verify that user interactions are recorded and displayed correctly.
  • Verify that private users' posts are accessible on the public site

4. Video Playback @Baihhh

  • Test video playback features, including playback control and subtitle selection.
  • Verify that multi-video playback is parsed correctly.
  • Test video playback features, including play, pause, skip, and volume controls, to ensure that the player controls are working properly.

5. Translate Articles @IRONICBo

  • Test article translation features, including translation accuracy and response time.
  • Verify that the translated content is displayed and formatted consistently, including paragraph distribution and image placement, as well as the video section.
  • Test the response time of the translation function to ensure that users do not experience significant delays before receiving the translated results.
  • Test the accessibility of the article reading page.

6. Yap API Interface Testing @IRONICBo

  • Test all GET interfaces for normal response, verifying returned status codes and content.
  • Error handling tests for specific interfaces (e.g., /error, /failed), verifying error responses and status codes.

7. Media Resource Operations @xhyqaq

  • Tests Media resource uploads and returns the correct ID/URL.
  • Test success and failure cases of POST, PUT, and DELETE operations, including permission control and input validation.
  • Verifies data consistency after create, update, and delete operations.

PRA Test

1. User Information @LiusCraft

  • Verify that regular users can access admin user list operations beyond their privileges.
  • Verify that a normal user can access other user's editing privileges and pages directly via URL.

@LiusCraft
Copy link
Contributor

LiusCraft commented Mar 4, 2024

Fix goplus slow compilation issues in the Windows environment.

Troubleshooting found that the problem was caused by the slow Windows file system.

Read the source code to find that go build recursively caches the folder and loads the contents of the file to calculate the hash value

The test found that recursive files under Windows is a very slow behavior:
code:

package main

import (
    "fmt"
    "log"
    "os"
    "path/filepath"
    "time"
)

func recursiveFiles(directory string) error {
    err := filepath.Walk(directory, func(path string, info os.FileInfo, err error) error {
        if err != nil {
            return err
        }
        if info.Mode().IsRegular() {
            // fmt.Println(path)
        }
        return nil
    })
    return err
}

func main() {
    start := time.Now()
    directory := `go-build path`
    err := recursiveFiles(directory)
    if err != nil {
        fmt.Println(err)
    }
    log.Printf("%.2f", time.Since(start).Seconds())
}

windows 11 result:
image
linux(ubuntu) result:
image

@LiusCraft
Copy link
Contributor

read go source code: go build scope:
https://hxfoszvibov.feishu.cn/docx/OVy7d6rV5oMQgMxilEScVs7XnBb?from=from_copylink

@LiusCraft
Copy link
Contributor

LiusCraft commented Mar 5, 2024

test results(3/7 pass):

    • Test that the casdoor login page loads properly.
    • Tests valid and invalid login credentials, verifies the accuracy of error messages, and verifies that you can successfully login and be redirected to the expected page.
    • Attempting to log in with invalid login credentials, i.e., logging in with the wrong token.
      • Token has expired on casdoor, but community can still be used
    • Test the integrity of the multi-account login process, including WeChat, X, and Facebook, verifying that each login method is able to successfully log in and correctly handle the post-login state.
      • After successful login, returning to the community is blocked (no pop-up window or redirect permission) (pr: 2778)
      • There is a problem with Wechat binding.(Feedback to casdoor) (pr: 2774)
      • facebook need add vpn, and Only developers' account login is supported.
      • Twitter: There is a limit of 100 logins per day.
    • Verify multi-account binding, unbinding functionality
      • unLink api url change, Need to rewrite the request code (pr: 235)
    • Verify that regular users can access admin user list operations beyond their privileges.
      • wait admin code mrege to main repo
    • Verify that a normal user can access other user's editing privileges and pages directly via URL.

@CarlJi CarlJi reopened this Mar 11, 2024
@IRONICBo IRONICBo reopened this Mar 11, 2024
@IRONICBo
Copy link
Collaborator Author

Test doc has moved to #259.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants