Group2_Fubangbang_Alpha Testing Report

Fubangbang(福帮帮) Fubangbang(福帮帮) 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区

Fubangbang Alpha Testing Report: From Baseline Checks to Delivery Verification

ItemDetails
CourseEE308FZ Software Engineering
Assignment requirementsFifth Assignment — Alpha Sprint
TeamGroup 2 — Fubangbang
ProjectCampus second-hand trading and information-sharing platform
Alpha reporting periodNovember 21–28, 2026
Assignment objectiveExplain the testing arrangement, tool selection, test cases, recorded results, testing experience and quality assessment for the Alpha phase.
Project repositoryRederChen/fubangbang-alpha
Other referencesFour 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.

SprintTesting arrangementPurpose and output
Sprint 1, November 21–22Run 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–24Turn 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–26Check 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–28Repeat 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 methodWhy it was selectedApplication in this project
pytest and FastAPI test clientSupport 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-tscCheck TypeScript and Vue single-file component types.npm run typecheck before accepting the frontend changes.
ViteCheck that the selected frontend can produce build assets.Development asset builds and the compiled release build.
puppeteer-core with Microsoft EdgeExercise 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 refsMake state transitions and exact metadata boundaries directly observable.Upload-state guards, cancellation, validation, removal and controlled upload failures.
SHA-256 source and asset manifestsDetect 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 operationOriginal creation APIOriginal update APIInterpretation
31 or 120 ASCII charactersAccepted and savedAccepted and savedInconsistent with the browser form's 30-character limit.
Whitespace-only titleRejectedAccepted and storedEditing could save a title with no visible content.
Surrounding spaces around a valid titleTrimmed before storageSpaces retainedCreation and editing normalized the same field differently.
121 characters or an empty stringRejectedRejectedRecorded original behavior.
Price-only update omitting the titleNot applicableExisting title retainedBehavior to preserve during the fix.

Figure 1. The original UI retains only 30 of 31 typed ASCII characters.

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.

AreaInputs or operationExpected behavior and verification
Valid title boundaryOne unit and 30 units; valid surrounding spacesCreation and editing accept the normalized value; subsequent reads match it.
Invalid title boundary31 units, empty or whitespace-only valuesAPI rejects with HTTP 422 and a title error; the UI blocks invalid submission.
Unicode counting30 Chinese characters; 15 and 16 supplementary emoji; mixed ASCII/emojiCounting agrees with browser UTF-16 behavior; 15 supplementary emoji are valid and 16 exceed the limit.
Whitespace compatibilityECMAScript trim characters, including U+FEFF and U+3000; internal spacesSurrounding trim characters are removed; valid internal spaces remain.
Invalid typesExplicit null, numbers, booleans, arrays and objectsSupplied titles are rejected rather than coerced into strings.
Partial updateChange price while omitting titleExisting title remains unchanged, including an older long title.
Rejected multi-field updateInvalid title supplied with other changed fieldsThe update is rejected; rereading confirms that the checked fields remain unchanged.
Older long titlesOpen and edit an existing over-limit titleExisting content remains readable; supplying the title through the form requires correction.
Valid cover formatsReal JPEG, PNG and WebP uploadsThe server returns one cover URL and the page displays the selected cover.
Cover type and sizeUnsupported MIME; exactly 5 MiB; 5 MiB plus one byteUnsupported/over-limit selections are blocked; exact-boundary client screening is checked separately with a controlled upload response.
Corrupt or empty imageAccepted MIME metadata with invalid image contentThe real API rejects it; the previous cover remains available.
Upload recoveryInterrupt upload, then select the same file againThe old cover is retained on failure; the same-file retry can succeed and clear the error.
Busy-state protectionTrigger a second selection or conflicting actions while uploadingOverlapping upload/removal and conflicting draft/submission actions are blocked.
Drafts and owner editsSave/reload a draft; publish/refresh; replace a product cover and editSupported draft fields restore; saved product and replacement cover persist.
Ownership and transactionUse separate seller/buyer accountsUnauthorized edits are rejected; the transaction reaches the expected completed and SOLD states.
Detail recoveryInterrupt the product-detail request, then retryAn actionable error is displayed; Retry retrieves the saved product and image.
Independent deliveryFresh dependency setup, rebuild and compiled startupThe independent build matches all 61 compiled-file hashes and serves pages/API correctly.
Restart persistencePublish, switch to the compiled entry, then restart againProduct title, price, cover URL and image bytes remain consistent.
Delivery integrityAlter a verified export, use an invalid path or mismatch source/buildIntegrity 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 scopeRecorded result
Initial backend baseline57 passed, 3 skipped, 0 failed
Initial two-account core-flow acceptance10 core checks passed
Final frontend type check and asset buildPassed
Final backend regression158 passed, 3 skipped, 0 failed
Focused title API/browser checks15 passed
Isolated cover-module checks10 passed
Focused cover browser checks14 passed, including the page-error check
Existing full-browser regression16 scenario groups passed
Additional fresh-login and detail recovery checksPassed
Fresh installation and independent rebuildPassed; all 61 compiled-file hashes matched
Fresh-environment backend suite158 passed, 3 skipped, 0 failed
Fresh delivery integrity and deployment-entry checks12 integrity checks and 4 deployment-entry checks passed
Full-browser regression against the compiled delivery16 scenario groups passed
Final acceptance matrix28/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. The published product displays its normalized title.

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. A whitespace-only title is rejected by the publishing form.

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. An interrupted upload preserves the previous cover.

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

Figure 5. Selecting the same file again succeeds.

Figure 5. A successful retry updates the cover and clears the upload error.

6.3 Product-Detail Request Recovery

Figure 6. An interrupted detail request displays an error and Retry action.

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

Figure 7. Retry retrieves the saved product and cover.

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. Product data remains available after a second compiled startup.

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 recordLink
Sprint 1 baseline and findingsSprint 1 essay
Title-validation implementation and regressionSprint 2 essay, Issues #1 and #2, merged PR #3
Cover extraction and verificationSprint 3 essay, source commit
Final regression and deliverySprint 4 essay, Issue #4, final submission
Final verification indexSprint 4 records
Source identity and record integritySource-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

公众号:优享智库
评论
收藏 已收藏
分享
返回顶部