Group2_Fubangbang_Alpha Testing Report
Fubangbang Alpha Testing Report: From Baseline Checks to Delivery Verification
| Item | Details |
|---|---|
| Course | EE308FZ Software Engineering |
| Assignment requirements | Fifth Assignment — Alpha Sprint |
| Team | Group 2 — Fubangbang |
| Project | Campus second-hand trading and information-sharing platform |
| Alpha reporting period | November 21–28, 2026 |
| Assignment objective | Explain the testing arrangement, tool selection, test cases, recorded results, testing experience and quality assessment for the Alpha phase. |
| Project repository | RederChen/fubangbang-alpha |
| Other references | Four sprint records; the title-validation contract; backend tests; browser results; source/build integrity records and the final acceptance matrix. |
1 Testing Objectives and Arrangement
Fubangbang already had account access, product publication and search, transactions, forum interactions and notifications before this Alpha phase. Testing first established what the existing application could do, then guided a limited set of improvements and checked their effect on the rest of the application.
The frontend uses Vue 3, TypeScript and Vite. It calls the FastAPI backend through request helpers under src/api/; backend routes, schemas, services, models and database access have separate responsibilities. Keeping both application parts in one repository does not remove this separation. Our checks therefore covered both the API contract and the behavior visible in the browser.
| Sprint | Testing arrangement | Purpose and output |
|---|---|---|
| Sprint 1, November 21–22 | Run existing checks, verify core flows with two accounts, compare title boundaries through the UI and API, and inspect publishing responsibilities. | Establish a baseline and record reproducible discrepancies before changing code. |
| Sprint 2, November 23–24 | Turn the agreed title rule into parameterized backend cases and focused live API/browser checks; repeat existing workflows. | Verify that creation, editing, browser feedback and persisted data use one rule. |
| Sprint 3, November 25–26 | Check the extracted cover composable in isolation and through real uploads, drafts, publication and editing. | Verify the responsibility boundary and cover failure/retry behavior. |
| Sprint 4, November 27–28 | Repeat final regression; install and build in an independent directory; check compiled startup, packaging and restart persistence. | Establish evidence for a reproducible final delivery. |
These are reporting windows. Original execution dates remain in the linked records: the initial checks were recorded on November 21 and the later implementation/regression/delivery checks on November 23. GitHub submission dates are recorded separately.
Chen Jiayuan and Chen Haoyang jointly led the technical coordination and integration. The frontend/backend group handled the rules, scripts and technical verification; testing support organized cases and reviewed evidence; UI/presentation work covered image captions and readable result presentation. Automated tool assistance supported execution and browser capture.
2 Testing Tools and Environment
| Tool or method | Why it was selected | Application in this project |
|---|---|---|
pytest and FastAPI test client | Support parameterized API cases and assertions on returned and stored values. | Title normalization, invalid input, partial updates, permissions and backend regression; console and JUnit reports. |
vue-tsc | Check TypeScript and Vue single-file component types. | npm run typecheck before accepting the frontend changes. |
| Vite | Check that the selected frontend can produce build assets. | Development asset builds and the compiled release build. |
puppeteer-core with Microsoft Edge | Exercise actual page actions and live API responses. | Title input, real image selection, drafts, publication, editing, transactions, forum flows and request recovery. |
| Isolated cover-module checks using real Vue refs | Make state transitions and exact metadata boundaries directly observable. | Upload-state guards, cancellation, validation, removal and controlled upload failures. |
| SHA-256 source and asset manifests | Detect a delivery that mixes changed source with an older build. | Source/export verification, compiled-file comparison and packaging integrity. |
The later recorded environment was Windows, Node.js 24.19.0, npm 11.17.0, Python 3.13.12 and Microsoft Edge. Backend and browser suites used isolated SQLite databases, temporary ports, disposable accounts and separate upload directories. Dependencies were installed from the project lock files for the fresh-delivery checks.
The tests did not use the team's normal local database as disposable test storage. Screenshots show test accounts and products. The reported database results apply to the recorded SQLite environment.
3 How Testing Revealed the Initial Problems
The initial backend suite reported 57 passed and 3 skipped cases. Existing browser checks and the additional two-account core-flow acceptance also passed. We then compared normal inputs with boundary and invalid inputs instead of treating a successful normal workflow as complete coverage.
3.1 UI, Creation and Editing Compared
The focused investigation recorded 17 API observations and two UI checks. Each update used an independently prepared product, and a subsequent read checked what had actually been stored.
| Input or operation | Original creation API | Original update API | Interpretation |
|---|---|---|---|
| 31 or 120 ASCII characters | Accepted and saved | Accepted and saved | Inconsistent with the browser form's 30-character limit. |
| Whitespace-only title | Rejected | Accepted and stored | Editing could save a title with no visible content. |
| Surrounding spaces around a valid title | Trimmed before storage | Spaces retained | Creation and editing normalized the same field differently. |
| 121 characters or an empty string | Rejected | Rejected | Recorded original behavior. |
| Price-only update omitting the title | Not applicable | Existing title retained | Behavior to preserve during the fix. |

Figure 1. The original UI limits the input to 30 characters. The API observations above establish the conflicting server behavior; this screenshot alone does not show the API result.
Evidence: initial automated checks, title boundary investigation and raw pre-fix observations.
3.2 Refactoring and Delivery Risks
Source inspection showed that the publishing view coordinated image selection and upload alongside form, draft and submission policy. This was a maintenance concern, rather than a claim that normal publication was broken. The cover extraction therefore needed behavior-preserving regression checks.
Delivery testing exposed another problem: older scripts assumed separate frontend/backend Git roots, while the current project uses one parent repository. Fresh installation and packaging checks were added to verify the selected source, compiled build and startup instructions together.
4 Test Cases and Expected Behavior
The title contract accepts 1–30 UTF-16 code units after ECMAScript-compatible trimming. Supplementary emoji occupy two code units. Creation and editing share that rule; omitted titles in partial updates retain the stored value.
The table below summarizes representative verification scenarios. A row can cover multiple parameterized cases or assertions, so the rows are not added to the test totals in Section 5.
| Area | Inputs or operation | Expected behavior and verification |
|---|---|---|
| Valid title boundary | One unit and 30 units; valid surrounding spaces | Creation and editing accept the normalized value; subsequent reads match it. |
| Invalid title boundary | 31 units, empty or whitespace-only values | API rejects with HTTP 422 and a title error; the UI blocks invalid submission. |
| Unicode counting | 30 Chinese characters; 15 and 16 supplementary emoji; mixed ASCII/emoji | Counting agrees with browser UTF-16 behavior; 15 supplementary emoji are valid and 16 exceed the limit. |
| Whitespace compatibility | ECMAScript trim characters, including U+FEFF and U+3000; internal spaces | Surrounding trim characters are removed; valid internal spaces remain. |
| Invalid types | Explicit null, numbers, booleans, arrays and objects | Supplied titles are rejected rather than coerced into strings. |
| Partial update | Change price while omitting title | Existing title remains unchanged, including an older long title. |
| Rejected multi-field update | Invalid title supplied with other changed fields | The update is rejected; rereading confirms that the checked fields remain unchanged. |
| Older long titles | Open and edit an existing over-limit title | Existing content remains readable; supplying the title through the form requires correction. |
| Valid cover formats | Real JPEG, PNG and WebP uploads | The server returns one cover URL and the page displays the selected cover. |
| Cover type and size | Unsupported MIME; exactly 5 MiB; 5 MiB plus one byte | Unsupported/over-limit selections are blocked; exact-boundary client screening is checked separately with a controlled upload response. |
| Corrupt or empty image | Accepted MIME metadata with invalid image content | The real API rejects it; the previous cover remains available. |
| Upload recovery | Interrupt upload, then select the same file again | The old cover is retained on failure; the same-file retry can succeed and clear the error. |
| Busy-state protection | Trigger a second selection or conflicting actions while uploading | Overlapping upload/removal and conflicting draft/submission actions are blocked. |
| Drafts and owner edits | Save/reload a draft; publish/refresh; replace a product cover and edit | Supported draft fields restore; saved product and replacement cover persist. |
| Ownership and transaction | Use separate seller/buyer accounts | Unauthorized edits are rejected; the transaction reaches the expected completed and SOLD states. |
| Detail recovery | Interrupt the product-detail request, then retry | An actionable error is displayed; Retry retrieves the saved product and image. |
| Independent delivery | Fresh dependency setup, rebuild and compiled startup | The independent build matches all 61 compiled-file hashes and serves pages/API correctly. |
| Restart persistence | Publish, switch to the compiled entry, then restart again | Product title, price, cover URL and image bytes remain consistent. |
| Delivery integrity | Alter a verified export, use an invalid path or mismatch source/build | Integrity checks reject the inconsistent delivery. |
The full final 28-group acceptance matrix records actions, expectations, observed results and evidence references. Executable title cases are in test_product_titles.py; the title contract is documented in the implementation record. Cover cases are recorded in the module results and live-browser results.
5 Recorded Results
| Verification scope | Recorded result |
|---|---|
| Initial backend baseline | 57 passed, 3 skipped, 0 failed |
| Initial two-account core-flow acceptance | 10 core checks passed |
| Final frontend type check and asset build | Passed |
| Final backend regression | 158 passed, 3 skipped, 0 failed |
| Focused title API/browser checks | 15 passed |
| Isolated cover-module checks | 10 passed |
| Focused cover browser checks | 14 passed, including the page-error check |
| Existing full-browser regression | 16 scenario groups passed |
| Additional fresh-login and detail recovery checks | Passed |
| Fresh installation and independent rebuild | Passed; all 61 compiled-file hashes matched |
| Fresh-environment backend suite | 158 passed, 3 skipped, 0 failed |
| Fresh delivery integrity and deployment-entry checks | 12 integrity checks and 4 deployment-entry checks passed |
| Full-browser regression against the compiled delivery | 16 scenario groups passed |
| Final acceptance matrix | 28/28 groups: 21 regression, 5 delivery and 2 consolidation |
The backend increase from 57 to 158 passing cases includes 101 added title-regression cases. Repeated backend and browser runs are listed separately; they are not added into larger totals. Unit/API cases, browser scenario groups, acceptance groups and the twelve Alpha engineering tasks are different counting units.
The three skipped backend cases require PostgreSQL concurrency or migration behavior. One existing Starlette/httpx test-client deprecation warning is recorded. The successful SQLite results do not establish that those skipped PostgreSQL cases passed.
The exact 5 MiB module check establishes client screening of metadata with a stubbed upload response. It does not establish that arbitrary bytes of that size form a valid server-accepted image. Live tests separately exercise real images, server rejection of invalid image content and the over-limit boundary.
Detailed outputs: Sprint 2 results, Sprint 3 results, final automated results, backend JUnit report and fresh-delivery checks.
6 Running Evidence
6.1 Title Normalization and Blank Rejection

Figure 2. A title supplied with surrounding spaces is normalized and then retrieved from the saved product. API assertions verify the exact stored value.

Figure 3. The UI provides feedback for an invalid blank title. Separate API cases verify rejection during both creation and editing.
6.2 Upload Failure and Same-File Retry

Figure 4. The deliberate interruption produces an upload error while retaining the existing cover.

Figure 5. A successful retry updates the cover and clears the upload error.
6.3 Product-Detail Request Recovery

Figure 6. The running application presents an actionable recovery state.

Figure 7. Recovery is verified through the real local API, including retrieval of the image.
6.4 Restart Persistence in the Independent Delivery

Figure 8. The independent installation retains the title, CNY 19.80 price and uploaded cover after repeated startup. The structured results also compare the cover URL and image bytes.
These are original application captures from local test execution. Their corresponding logs and structured assertions establish details that a still image alone cannot prove. Further evidence is in the browser acceptance record and delivery runtime results.
7 Reproducing the Main Checks
Clone the repository, enter source/CampusLink/, then install dependencies:
npm ci --no-audit --no-fund
npm run setup:backend
Run frontend checks and the committed title/full-browser suites:
npm run typecheck
npm run build
npm run test:titles
npm run test:e2e
Run the backend suite and delivery checks from the application directory:
Push-Location backend
.\.venv\Scripts\python.exe -m pytest -ra
Pop-Location
.\backend\.venv\Scripts\python.exe -m pytest scripts/test_delivery_source.py deploy/test_start.py -ra
To check the current compiled local entry, rebuild it first:
npm run build:release
npm run start:delivery
Open http://127.0.0.1:8080/. Retain backend/data/ between restarts. The historical release retained in the Git repository is not the current Alpha build; rebuild after a source update. A verified standalone application export already includes its matching source/build manifests and compiled site.
These commands reproduce the committed suites and startup process. The focused cover and supplemental capture results have their own methods and evidence records; the commands above are not a claim that every recorded scenario belongs to one command. See the source startup guide for prerequisites and entry points.
8 Testing Experience and Quality Assessment
8.1 What We Learned
Compare entry points before defining a fix. The title discrepancy became clear only after comparing the UI, creation API, update API and stored values. A shared rule had to specify trimming, Unicode counting and partial-update behavior before implementation could be judged.
Read saved data again. A success message is weaker evidence than a subsequent API read, refresh, new login or restart. We used these checks to distinguish a visual update from a persisted change.
Verify a refactoring through its affected behavior. Moving cover code into a composable was accepted because upload guards, errors, retry, drafts and editing still behaved correctly. Reducing the length of a view alone would not establish that result.
Use both controlled and live tests. Isolated module checks made exact state transitions and boundaries observable. Real browser/API tests checked actual file handling and server behavior. Their evidence is complementary.
Test delivery separately from development. Fresh installation, matching build hashes and repeated compiled startup revealed risks that an already configured developer directory could hide.
8.2 Assessment and Follow-Up
The recorded evidence supports acceptance of the selected local Alpha workflows and delivery. It does not measure a global coverage percentage or establish the absence of other defects. Public hosting has not yet been completed for this selected release, and no local screenshot is presented as a cloud deployment test.
The next testing priorities are to run the three PostgreSQL-specific cases in the intended database environment, verify public deployment and persistent image/data storage, broaden browser/device checks, and establish explicit load and performance targets. The existing dependency warning should be reviewed during maintenance. No load, security-audit or production-availability result is claimed in this report.
9 Code and Evidence References
| Work or record | Link |
|---|---|
| Sprint 1 baseline and findings | Sprint 1 essay |
| Title-validation implementation and regression | Sprint 2 essay, Issues #1 and #2, merged PR #3 |
| Cover extraction and verification | Sprint 3 essay, source commit |
| Final regression and delivery | Sprint 4 essay, Issue #4, final submission |
| Final verification index | Sprint 4 records |
| Source identity and record integrity | Source-to-Git map, sprint file manifest |
The final repository submission preserves the original test timestamps and source fingerprints. This report consolidates those records into the separate Testing Essay required by the assignment.
相关推荐
智慧城市工程施工管理智能体理场景的设计与实施方案.docx
智慧城市工程施工管理智能体理场景的设计与实施方案.docx
数字医院医疗质量智能体理场景的设计与实施方案.docx
数字医院医疗质量智能体理场景的设计与实施方案.docx
【风力涡轮发电机】用于电磁暂态(EMT)研究的第四类(即全变流器)风力发电机系统的通用模型研究(Simulink仿真实现)
内容概要:本文研究了一种用于电磁暂态(EMT)仿真的第四类全变流器型风力发电机系统的通用化建模方法,并基于Simulink平台实现了该模型的仿真。该模型全面涵盖了风力机气动特性、传动系统动力学、发电机电气特性、全功率电力电子变流器及其核心控制策略,包括最大功率点跟踪(MPPT)、有功与无功功率解耦控制、电网同步控制等,旨在为高比例风电接入的现代电力系统提供一个高精度、高效率的动态仿真工具。研究重点在于构建能够准确反映全变流器风机在各类电网扰动下动态响应行为的综合性模型,以支撑复杂电网的暂态稳定性分析、并网适应性评估、保护与控制策略的验证。文中详细阐述了各子系统模块的数学建模原理、参数设计依据及模块间的耦合关系,并通过不同运行工况下的仿真结果,验证了所建模型的动态准确性和工程实用性。; 适合人群:具备电力系统分析、电力电子技术、自动控制理论及Matlab/Simulink仿真基础的研究生、高校科研人员以及从事新能源发电并网仿真、电力系统规划与运行的工程技术人员。; 使用场景及目标:①研究高渗透率风电对电网电磁暂态过程(如短路故障、电压跌落)的影响机制;②开发与验证适用于风电场的新型继电保护、低电压穿越(LVRT)及高电压穿越(HVRT)控制策略;③进行含大规模风电的电力系统小干扰与大干扰稳定性评估;④作为高等院校相关专业进行风力发电系统动态特性教学与科研的先进仿真案例。; 阅读建议:读者应结合Matlab/Simulink环境,亲手搭建并调试文中所述模型,尤其关注变流器双闭环(电流环、电压环)控制器的设计、参数整定及其与电网强度的交互影响,建议深入研读文中引用的经典文献以巩固对风电机组控制理论与实践的理解。
西周BC809年世界历史地图矢量文件SHP格式.zip
本资源为《西周BC809年世界历史地图矢量文件SHP格式》压缩包,文件大小约 24.49 MB,便于集中下载、整理和使用。具体内容请结合压缩包内的实际文件与说明查看。 在当前可读取的目录中,可见属性表(.dbf)、投影说明文件(.prj)、Shapefile 主文件(.shp)、Shapefile 索引(.shx)。建议解压后保持原有目录结构,先浏览文件清单与说明,再选择需要的资料进行加载或整理。 应用方面,可根据实际资料用于学习练习、资料检索、研究整理或项目参考。使用时可先确定所需内容,建立清晰的文件分类,再按项目要求进行筛选、转换与汇总。 使用 Shapefile 数据时,请把实际配套的 .shp、.shx、.dbf 等文件保存在同一目录,并保持同名关联;加载后再检查坐标系与中文字段显示。如需叠加其它数据,请先统一坐标与字段口径。 数据来源、时间范围、坐标系、字段定义、精度和使用条件,请以实际文件及原始说明为准。本介绍不对文件名之外尚未核实的信息作额外承诺。
市十五五银发经济产业园与智慧养老服务平台项目建设方案.docx
市十五五银发经济产业园与智慧养老服务平台项目建设方案.docx


