Tongyan | Fifth Assignment — Alpha Sprint Testing Essay
| Item | Details |
|---|---|
| Which course does this assignment belong to? | 2601_FZU-MU_SE Software Engineering |
| Where are the requirements for this assignment? | Fifth Assignment: Alpha Sprint |
| The goal of this assignment | Verify the workflow from finding a role and applying to joining a team and completing task review. Document the test tools, cases, defects, and results. |
| Other references | Tongyan pilot site · Project code and verification records · Original pilot evaluation report |
1. Test Organization
During integration, each module was covered by API regression tests, followed by browser checks of end-to-end workflows. The Alpha Sprint used A10 to verify access controls, state transitions, and vacancy counts, followed by A11 checks on the public pilot site. The November 27, 2026 evaluation covered anonymous visitors, students, and project owners. Writes were limited to two pilot accounts and evaluation records. The project owner published a test opening, and the student applied for that role, joined the team, and submitted a task deliverable.
Anonymous checks and the initial login attempt used Chrome 147 on Windows. Chrome 146 on cloud-hosted Linux repeated the anonymous checks and was used for the remaining evidence collection and writes. The desktop viewport was 1280 × 960 and the mobile viewport was 360 × 740. The two pilot accounts signed out and signed in sequentially within the same browser profile. Concurrent acceptance of the final vacancy was tested through the API against an isolated test database.
2. Testing Tools and Automation
| Tool | How it was used |
|---|---|
| Chrome and DevTools | Walked through pages and inspected login requests, errors, filter parameters, and API responses. On mobile, a scroll width of 360 CSS pixels was used to verify that there was no horizontal overflow. |
| pytest and HTTPX | Called FastAPI endpoints against an isolated database and asserted status codes, vacancy counts, team membership, and private resource permissions. |
| PostgreSQL and Alembic | Set up test data and migrations, then verified team formation transactions and restored records. |
| Playwright | Reproduced two-account workflows and mobile layouts and captured browser evidence of the invitation and team entry screens. |
| Release verification script | Checked frontend and backend archives, service health, and 13 page routes before running API regression tests. |
| Nginx and the load test script | Verified maintenance mode and recovery in an isolated HTTPS environment and measured concurrent query failures and P95 latency. |
Automation grew from account and project API tests to concurrent invitation acceptance, older invitations, task review, and deployment recovery. After configuring an isolated verification database, run python scripts/verify_release.py. Backend test suite · Release verification script
3. Integration Testing and Alpha Regression
| Round | Tests performed | Results |
|---|---|---|
| W2–W5 core integration | Checked invite-code registration, profiles and bookmarks across sessions, account isolation, project search, and combinations of filters applying to the same role. Two accounts exercised publishing, applying, inviting, and accepting. Tests covered repeated actions, competition for the final vacancy, reconfirmation of older invitations, and loss of access after leaving a team. Further checks covered task dependencies, revision and resubmission, version conflicts, shared resources, club management, knowledge article review and publication, reporting, and takedowns. | All 14 HTTP regression tests passed on 3e5c4df. The W2 integration page passed checks in two browser sessions and at 360 pixels wide. The API client matched all 71 OpenAPI routes at that stage. |
| W6–W7 pilot iterations | Tested searching project summaries, sharing and withdrawing contact details, viewing prior versions of roles, copying recruitment posts, paging through 21 recruitment revisions, project-owner activity history and access controls, shared skill labels across pages, broken-link reports and replacements, the pilot guide, and mobile layout. | Successive PostgreSQL-backed suites passed 16, 17, and 18 tests. After deployment, checks covered HTTPS, static file hashes, sign-in restrictions, and database migration readiness. |
| W8 rule-based matching and team skill coverage | Tested filtering eligible roles, match explanations, skill gaps, eligible candidates, capacity limits, and the one-role-per-user constraint when forming a team. Used 10 applications to check proposed combinations and recalculation after a student joined. Compared feasibility against exhaustive search on 600 small cases. | All 20 regression tests passed on 904d144, and all 600 cases agreed with exhaustive search. Three introductory articles were also used to test drafts, review, publication, filtering, and source attribution. |
| Alpha workflow regression | Checked all public recruitment states, preserving the application text and prompting role reselection when a role filled up, concurrent withdrawal and acceptance, refreshing older invitations, task reassignment after departure, locating reported resources, return navigation after sign-in, and single-use and reusable invite codes. Rehearsed rolling back a full demo import, then verified 20 demo accounts, 12 projects, and 31 roles after import. | Successive releases passed 21, 22, 23, and 24 HTTP regression tests. Concurrent acceptance of the final vacancy created one membership record. Other requests received 409 ROLE_FULL. |
| Alpha home page and action items | Checked recommendation rotation, where role skill tags come from, button alignment at the bottom of cards, keyboard focus after bookmarking, and prevention of repeated clicks. Walked through natural-language filters, project selection for duplicate names, guide and knowledge sources, public recruitment status, and action items. | 4b37c98 passed 24 API regression tests and checks for 13 page routes. Three focused action-item tests were rerun to cover applications becoming invitations, submissions moving to review, completed items leaving the queue, and reassignment after departure. Home page actions were checked on desktop and mobile. |
| Staged release candidates | Checked follow-up questions about a project on the home page, rule-based skill matching, conversion of recruitment notes to drafts, task reminders, and batch confirmation. Simulated a successful batch save followed by a lost response, then refreshed and retried to verify batch and task IDs. | 193d927 and 5786684 each passed 47 backend regression tests and checks for 13 page routes. The mobile retest confirmed that retrying did not create duplicate tasks. |
Cases were rerun across releases. Each round reports its own totals. The repository organizes test cases by module, and the development log records the checks performed at each stage. Backend test cases · Development and testing history · Browser integration records
4. Deployment, Performance, and Recovery Testing
| Test | Environment and procedure | Results |
|---|---|---|
| Early performance and HTTPS checks | Ran queries against 1,000 synthetic projects at a concurrency of 50, using local Nginx and an isolated Alibaba Cloud environment. | Local P95 was 267 ms. The two early Alibaba Cloud rounds, corresponding to the 14- and 16-test regression suites, each completed 500 requests with zero failures. P95 was 1,062 ms and 1,064 ms, respectively. |
| Launch verification and release checks | Verified TLS, 12 page routes, and two-account team formation at launch. Subsequent read-only checks covered 13 page routes, static file hashes, API readiness, anonymous access restrictions, and existing routes on the shared host. | All 44 public file hashes matched frontend patch feb6de7. The pilot API ran 4b37c98 with database migration 008. The scheduled backup completed at 03:10 on November 28 and excluded session data. |
| Release and restore tooling | Ran packaging and clean-database verification on Windows and Alibaba Cloud. Tested hash mismatches, truncated archives, version mismatches, nonempty target databases, concurrent reuse, repeated execution, and rollback after a failed switch. Verified that off-site retrieval could skip a verified copy and replace a corrupted one. | All seven Ubuntu release switch and rollback tests passed. Early restore comparisons covered 21 to 22 business tables. Old sessions expired after restoration, and new sessions completed team formation over HTTPS. |
| Alibaba Cloud load test rounds | Repeated the 1,000-project, 50-concurrent, 500-query workload at the 18- and 20-test regression stages. Ran comparable tests on b2caf1d, 093ddf8, and staged candidate 5786684. | All five rounds recorded zero failures. P95 was 1,059.29, 1,086.84, 1,046.52, 1,035.03, and 1,063.22 ms, respectively. The candidate met the requirement for query P95 below two seconds. |
| Upgrade and rollback from 008 to 011 | Rehearsed cloning, migration, rollback to the previous release, and maintenance mode in an isolated Alibaba Cloud database. Checked database permissions, original business tables and sessions, and safeguards against connecting a release to the wrong schema. | The separate 009 rehearsal verified 23 tables and batch receipts. Task history remained readable after rollback. Upgrading the clone to 011 preserved all 21 original business tables, and the test session created before cloning remained valid. The candidate returned 503 against the old database, and rolling back restored readiness. In maintenance mode, the isolated API returned 503 while static pages and shared routes stayed available. |
| Final backup and restore rehearsal | Restored the rehearsal database with PostgreSQL 16 and pgvector, compared row counts and hashes for each table, then tested registration, application, and team entry over HTTPS. | The 46-test suite on b2caf1d covered pgvector retrieval and vacancy rechecks. All 47 tests passed on 093ddf8. All 27 tables matched, and old sessions were invalidated. Eight seconds elapsed from the start of restoration to completion of the two-account HTTPS verification. |
Load test latencies came from synthetic queries in isolated environments. The recovery time reflects a single rehearsal. The November 27 public pilot used schema 008. The 011 results came from staged candidates and isolated databases. Deployment and verification records · Non-AI pilot acceptance report
5. AI Reliability and Baseline Evaluation
| Test | Coverage | Results |
|---|---|---|
| NFR07 reliability | Ten cases each for recommendations, knowledge Q&A, requirements clarification, team skill coverage explanations, and task drafts. Model stubs exercised malformed responses, timeouts, and fallbacks. Tests checked permissions, source validity, handling of restricted content and contact details, and the absence of business data writes before confirmation. | 193d927 and 5786684 each passed all 50 cases. The latter candidate also checked full-width digits, numbers written with separators, and matches at excerpt boundaries. |
| Recommendation baseline | Ran 30 fixed queries against the same synthetic project data to verify expected matches and empty results. | All 25 queries with expected matches found them. The other five returned empty results as expected. |
| Knowledge Q&A baseline | Ran keyword searches for 20 fixed questions and checked the sources individually. | All 20 matched the expected source. |
Reliability tests used simulated model output. The baseline evaluation used rule-based matching and keyword retrieval. The candidate is configured for qwen3.7-flash. Recommendation relevance, citation quality, and latency still require evaluation with the live model. Quality metrics are used for comparison, and every permission, source, and write constraint must pass acceptance. Reliability cases and rerun instructions · Baseline evaluation records
6. November 27 Pilot Site Tests
27 cases were executed. 25 passed and 2 failed. Evidence IDs match the original evaluation report.
| No. | Test case | Observed result | Status | Evidence |
|---|---|---|---|---|
| 1 | Rotate home page recommendations | Three recommendations appeared. Clicking to see another batch updated the content, notification, and batch parameter. | Pass | S01 |
| 2 | Filter projects as an anonymous visitor | Field, weekly hours, beginner eligibility, and skill filters worked. The Python filter found four AI projects. | Pass | S02–S03 |
| 3 | Filter with no matches | The page displayed “No projects match your filters.” | Pass | S04 |
| 4 | View project details as an anonymous visitor | The page displayed responsibilities, hours, prerequisites, vacancies, duration, and the application deadline. | Pass | S05 |
| 5 | Apply as an anonymous visitor | The application page required sign-in. | Pass | S06 |
| 6 | Check mobile layouts as an anonymous visitor | The home, catalog, and details pages each had a scroll width of 360 pixels. | Pass | S07–S09 |
| 7 | Sign in as a student | Sign-in worked on the first attempt in cloud-hosted Chrome. | Pass | S10 |
| 8 | Save a student profile | The synthetic profile was saved and the page displayed a confirmation. | Pass | S11 |
| 9 | Find roles by criteria | Several roles accepted beginners and required at most four hours per week. Finding the first qualifying role took about 22 seconds. | Pass | S12 |
| 10 | Retain bookmarks across sessions | Bookmarks remained in the workspace after signing out and back in. | Pass | S13–S14 |
| 11 | Ask about a public opening | The answer matched the API for the three-hour weekly commitment, three remaining openings, and deadline. It included the recruitment revision and a link to the details. | Pass | S15 |
| 12 | Ask a how-to question | The answer matched the registration and sign-in section of the pilot guide and linked to the source. | Pass | S16 |
| 13 | Apply natural-language filters | All three phrasings mapped to beginner-friendly roles with at most four hours per week. | Pass | S34 |
| 14 | Ask about a specific opening | “Find projects” searched for the whole sentence, returned no matches, and offered no guidance to the appropriate mode. | Fail (F2) | S35 |
| 15 | Check draft visibility | Anonymous search omitted the draft, and the details API returned 404. | Pass | S17–S18 |
| 16 | Publish a recruitment post | The project moved to Published with initial recruitment revision 1. | Pass | S19 |
| 17 | Submit an application | The application moved to Pending Review. | Pass | S20 |
| 18 | Send a team invitation | The application moved to Awaiting Confirmation. One vacancy remained. | Pass | S21 |
| 19 | Confirm team entry | After checking the confirmation box, the student joined. Vacancies fell from one to zero. | Pass | S22 |
| 20 | Create and assign a task | The task appeared under To Do with the configured assignee and deadline. | Pass | S23 |
| 21 | Start and submit a task | The task moved from In Progress to Pending Review, and the deliverable link was visible. | Pass | S24 |
| 22 | Open a deliverable link anonymously | The public example link opened successfully. | Pass | S27 |
| 23 | Approve a task as project owner | The task showed Completed and retained the review comments. | Pass | S25 |
| 24 | Access a private team as an anonymous visitor | The page required sign-in. The team and tasks APIs returned 401. | Pass | S26 |
| 25 | Check mobile layouts after sign-in | The workspace, filters, details, and publishing form each had a scroll width of 360 pixels. | Pass | S28–S31 |
| 26 | Close recruitment | The public details showed that recruitment had ended and removed the application entry. | Pass | S32–S33 |
| 27 | Check sign-in stability | Chrome on Windows encountered closed connections on the first two attempts and succeeded on the third. The issue did not recur in cloud-hosted Chrome. | Fail (F1) | Written record in the original report |


The two figures are from earlier automated browser regression runs. The original November 27 evaluation report indexes its own screenshots as S01–S35.
7. Failed Cases and Impact
| ID | Reproduction and observed result | Impact and retest focus |
|---|---|---|
| F1 — Connection closed during sign-in | Signing in with valid credentials in local Chrome on Windows produced ERR_CONNECTION_CLOSED on two consecutive POST requests. The third attempt succeeded. The page prompted the user to check their username and password. Cloud-hosted Chrome did not reproduce the issue. | The message gives users no way to distinguish a connection failure from invalid credentials. For the retest, compare requests made on the same network with server logs. The original report did not identify the root cause. |
| F2 — No guidance for opening-specific questions in “Find projects” | In “Find projects,” ask about the weekly hours, vacancies, and deadline for a role in a named project. The page submitted the entire sentence as a keyword query and showed no matches. In “Ask a question,” the same question returned a public recruitment card with its source. | Users may assume the project does not exist. Retest both questions about named projects and the existing beginner eligibility and weekly hours filters. See S15, S34, and S35. |
8. Lessons and Conclusions
- Verify both status and stored data. One vacancy remained after sending an invitation, and none remained after acceptance. The concurrent regression test also confirmed that the final vacancy produced exactly one membership record. Asserting status, capacity, and membership together gives a more complete result than checking the message on screen alone.
- Measure user interaction time and API latency separately. The roughly 22 seconds covered one pilot session from opening the catalog to finding a qualifying role, including filtering and reviewing results. P95 came from an isolated query load test with a fixed workload. The two measures describe the role-finding experience and API performance, respectively.
- Record the circumstances of each failure. F1 captured both local connection failures, the successful third attempt, and the absence of the issue in cloud-hosted Chrome. F2 used the same question in “Find projects” and “Ask a question.” Retesting can follow the original steps and browser conditions.
The public pilot completed the workflow from finding a role through application, team entry, task submission, and review. Two failed cases remain on record. API regression tests extended coverage to concurrency, permissions, and recovery from failures. Migration, safety constraints, and model fallback results apply to their respective isolated test environments.
相关推荐
复现基于李雅普诺夫的模型预测控制MPC水下机器人AUV方法路径跟踪(Matlab代码实现)
内容概要:本文系统介绍了基于李雅普诺夫稳定理论的模型预测控制(MPC)方法在水下机器人(AUV)路径跟踪中的应用,并提供了完整的Matlab代码实现。该方法融合MPC的多步预测与滚动优化优势,通过构造李雅普诺夫函数严格证明闭环系统的渐近稳定性,有效提升了AUV在复杂海洋环境下的轨迹跟踪精度、抗干扰能力与控制鲁棒性。文档不仅详述了控制系统建模、约束处理与稳定性分析的关键步骤,还配套列举了大量相关科研资源,涵盖路径规划、运动控制、智能算法等多个方向,突出其在顶刊算法复现、科研验证与工程仿真中的高参考价值。; 适合人群:具备自动控制理论、机器人学或海洋工程等相关专业背景,熟悉Matlab/Simulink仿真工具,且具有一定控制算法基础的研究生、科研人员及自动化领域工程技术人员。; 使用场景及目标:①开展水下机器人高精度路径跟踪控制算法的研究与仿真验证;②深入学习李雅普诺夫稳定性理论与MPC控制策略的有机结合方法;③作为高水平期刊论文复现的技术支撑,服务于科研项目推进、学术论文撰写与算法创新设计; 阅读建议:建议结合文档中提及的反步法、滑模控制、非线性MPC等先进控制技术进行对比分析,重点研读代码中的动力学建模、优化问题构建、约束处理机制与稳定性证明逻辑,根据具体研究需求灵活调整系统参数与仿真场景,以实现最优控制性能并深化理论理解。
风光火储多源协同参与电网一次调频与二次 AGC 调频控制策略研究(Simulink仿真实现)
内容概要:本文聚焦于风光火储多源协同参与电网一次调频与二次AGC调频控制策略的研究,基于Simulink平台构建完整的多能源系统仿真模型,深入探讨风力发电、光伏发电、火力发电与储能系统在电网频率调节中的协同工作机制。研究系统分析了一次调频的快速响应特性与二次自动发电控制(AGC)的动态调节能力,重点设计并验证了多源协调控制算法,通过仿真评估不同电源间的出力互补性与动态响应性能,有效提升了含高比例新能源电网的频率稳定性和运行可靠性,具有突出的理论深度与工程应用价值。; 适合人群:适用于具备电力系统分析、自动控制理论及新能源并网技术背景的研究生、科研人员以及从事电网调度、新能源集成与储能系统设计的工程技术人员。; 使用场景及目标:①研究多能源系统协同参与电网频率调节的动态机制;②设计与优化面向复杂电网环境的一次调频与AGC协调控制策略;③开展新能源大规模接入背景下电网稳定性仿真分析;④支撑高水平学术论文撰写、科研项目申报或实际工程方案的技术验证与原型开发。; 阅读建议:建议结合Simulink仿真环境动手复现文中控制模型,对照控制逻辑与时序响应曲线深入理解多源协同控制的设计原理,同时可参考文中关联的MATLAB/Simulink案例进行拓展性研究与算法改进。
厂外外包管制作业规范.doc
制造技术
科技型中小企业申请政府资助时,孵化器管理系统需要提供哪些关键数据支撑材料?.docx
科易网基于行业知识库+行业大数据+科技资源要素+AI模型,以AI,赋能技术转移、成果转化、技术经理人培训、知识产权管理、区域产业分析与布局、地方科技招商、创新创业大赛等场景,推出科技创新领域的AI工具、场景化服务和数智化解决方案,推动科技创新与产业创新智能化发展。
地方发改委在评审成果孵化转化载体资质时,主要依据哪些核心指标体系?.docx
科易网基于行业知识库+行业大数据+科技资源要素+AI模型,以AI,赋能技术转移、成果转化、技术经理人培训、知识产权管理、区域产业分析与布局、地方科技招商、创新创业大赛等场景,推出科技创新领域的AI工具、场景化服务和数智化解决方案,推动科技创新与产业创新智能化发展。


