Team LabRunners — Alpha Sprint Testing Post

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

Team LabRunners — Alpha Sprint Testing Post

ItemContent
CourseSoftware Engineering Practice (GG3042, 2601_FZU-MU_SE)
AssignmentFifth Assignment — Alpha Sprint
GoalChoose and apply testing tools during the Alpha sprint, roll out automated testing step by step, document test cases and lessons learned, and give an assessment of project quality (Course Objective 3)
ReferencesNode.js 24 docs (node:test, node:sqlite, --experimental-test-coverage); Alibaba Java Development Manual v1.3.0, "Unit Testing"; OWASP Top 10; GitHub Actions docs
Test recordsLabFlow-Test-Records: documents, raw logs, Selenium scripts and nine screenshots

Team: LabRunners | Product: LabFlow, a campus lab resource sharing and equipment booking platform | Sprint: 2026-11-21 to 11-28


1 What this round of testing had to solve

LabFlow is a closed loop: find a device → book it → get it approved → report a fault → get it repaired. It has three roles (student, teacher, administrator), and both booking and repair follow explicit time rules and state machines. Bugs in this kind of system rarely live on the page; they live at the boundaries of rules: the same slot approved twice, a cancellation one minute before or after the cutoff, a repair photo visible to someone who should not see it, a device deleted while its history falls apart.
So the goal was not "click through every page". It was three things:

  1. Rules must be verifiable. Every business rule gets a test case, so a code change immediately shows whether the rule broke.
  2. Regression must be repeatable. Anyone who pulls the repo runs one command, with no dependency on one machine's browser state.
  3. Results must be measurable. Pass rate, coverage and defect closure rate are numbers, not "it feels fine".
    Scope: the main system (Node 24 + SQLite + vanilla frontend) is the primary target. A separate LAN demo for phones (a Capacitor shell) is covered in its own section as complementary mobile verification, so the two are not conflated.

    2 How testing work was organised

    2.1 Acceptance criteria

    The sprint goal was "an Alpha version that can be accessed, demonstrated and accepted", which maps to four hard standards:
  • the core loop works on both desktop and phone viewports;
  • role boundaries hold (students cannot approve bookings, teachers cannot manage accounts, the last administrator cannot be demoted);
  • time rules are correct at boundaries (overlap, back-to-back slots, cancellation cutoff, past slots);
  • data stays consistent: booking/review/repair state changes run inside transactions, and deleting a device does not break history.

    2.2 People and responsibilities

    RoleWhoResponsibility
    TestingJin LiyiTest case design and maintenance, execution, defect logging and regression, test report
    Testing / DevOpsHe SongyuanEnvironment and deployment, expanding API tests, pre-release smoke and rollback checks
    DevelopersFrontend / backend / UISelf-test before pushing, cross-check against the review checklist, add cases for new rules
    Two agreements: a new business rule is not "done" until a test case exists or is updated, and "cases have been run" is a mandatory item on every PR checklist — missing it means the PR goes back.
    Testing joined during integration on 11-24 (task LF-A7); 11-27 and 11-28 were reserved for the full regression and evidence packing. Developers run the API suite before requesting review.

    2.3 Eight-day rhythm

    DatePhaseTesting activityOutput
    11-21 – 11-22BaselineRun the existing API suite, confirm the trunk works, set up temporary-database isolationBaseline pass record
    11-23 – 11-24IntegrationTesting joins, adds cases for new endpoints, one smoke round per dayNew cases, smoke records
    11-25 – 11-26Feature freezeNo new requirements; focus on rule cases (time boundaries, permissions)Updated case table, defect list
    11-27 – 11-28Full regressionFull run + coverage + mobile verification + packaging checksTest report, evidence pack
    11-29SubmissionOnly review follow-up and document submission; no code changesBlog and assignment submission

    2.4 Environment and data

  • Runtime: Node.js 24 (using built-in node:sqlite, no database to install); run on a Windows machine and a Linux server.
  • Data isolation: every run creates a temporary directory with mkdtemp; the database and upload folder live inside it and are deleted afterwards. data/labflow.db is never touched.
  • Accounts: three demo accounts — student, teacher, admin — used to switch roles in permission cases.
  • Time: fixed to UTC+8 (UTC_OFFSET_MINUTES=480). Cross-day and cutoff cases are constructed by editing the database, not by waiting for the clock.

    2.5 Process, entry and exit criteria

    The flow is design → execute → log the defect (GitHub Issue, referenced in the commit message) → fix → regress → close. A commit message looks like fix(reservation): fix cancellation cutoff (#31), so a defect can be traced to code and code back to a defect.
  • Entry (ready for testing): the trunk starts, health check returns 200, existing cases are green.
  • Exit (ready for release): 100% of API cases pass, no open critical defects, coverage not below baseline, smoke checklist fully green.

    2.6 Measurement

    Only four numbers are reported, to avoid self-serving claims: number of cases, pass rate, coverage, defect closure rate. All four can be recomputed from command output or the issue list; "roughly" is not accepted.

    3 Testing Tools and the Toolchain

    3.1 One hard constraint: zero dependencies

    From day one the project required "zero npm runtime dependencies, zero build step", because deployment should be as simple as copying the folder and running node src/server.js. That constraint decided the testing stack: we were not going to push Jest and its ecosystem into production just to make the test story look better.
    So the first selection principle was: prefer what the runtime already provides, then consider third parties.

    3.2 Selection criteria

    Four, in priority order:
  1. Do not disturb production. Test dependencies live in the test folder only; node src/server.js must not gain a single package because of testing.
  2. One command reproduces it. Anyone who clones the repo runs one command, with no database to install and no browser to configure.
  3. Output is evidence. Results must turn directly into a screenshot or a table in this post — exit codes, report files, images — not "I had a look".
  4. The team can maintain it. Two testers plus developer self-testing; no tool that only one person understands.

    3.3 The main tool is Selenium

    3.3.1 The answer first

    The main testing tool this round was Selenium, used at the UI layer: login, device list, search, device detail, teacher overview, review table and mobile viewport — nine cases, all driven through a real browser, finished in 9.1 seconds with nine screenshots.
    The API and business-rule layer still belongs to the runtime's built-in node:test; how the two split is section 3.4. The conclusion comes first because the selection story easily turns into a list of paragraphs; what actually needs justifying is "why this one".

    3.3.2 Why it won (the tool's advantages)

    AdvantageWhat it meansHow it shows up here
    Tests a real browserReal rendering, real JavaScript, real cookies, real redirectsAn API test cannot assert "login redirected to student.html"; one Selenium assertion can
    A standard protocol, swappable browsersW3C WebDriver; Edge, Chrome, FirefoxWe run Edge today; switching to Chrome is one line
    Language bindingsJava, Python, JS, C#, RubyThe team's scripts are already Python, so tests and fixtures share one stack
    Automatic driver matchingSelenium Manager reads the browser versionEdge 158.0.4370.45 gets driver 158.0.4370.45, no version table by hand
    Free and open sourceApache 2.0, no licence costAgainst TestComplete (commercial) and Katalon (low-code, weaker versioning)
    Output is evidencesave_screenshot per step, one unittest line per caseNine screenshots go straight into this post; failures keep their own shot
    Explicit waitsWebDriverWait polls a conditionThe frontend fetches asynchronously; waiting for an element beats sleep(3)
    CI-friendlyHeadless mode plus exit codesNine cases in 9.1 seconds fit a pipeline
    The other three candidates do not fit: Appium needs an Android device or emulator, this machine has neither, and the system images cannot be downloaded here; Katalon Studio is a low-code IDE whose projects are stored as a bundle, which reviews and diffs badly; TestComplete is a paid, desktop-oriented tool. None of the three works for us, which leaves Selenium.

    3.3.3 What it is

    Selenium is the common answer to web UI automation. The script does not simulate the DOM; it drives a real browser over the WebDriver protocol — clicking, typing, navigating — and then verifies the page with waits and assertions. Three properties define where it fits: a real browser, language-agnostic bindings, and a driver it manages itself.

    3.3.4 How we use it

    Environment: Python 3.13, selenium 4.54.0, a pinned msedgedriver 158, headless Edge.
    Dependencies go into the test folder only, never the system environment:
    python -m pip install -r requirements.txt --target libs -i https://mirrors.cloud.tencent.com/pypi/simple
    
    The driver is the pinned copy in selenium/driver/ (matched to Edge 158.0.4370.45). After an Edge auto-update, download-driver.ps1 fetches the matching version, so a blocked Microsoft download host does not stop us.
    Structure: one unittest class; setUpClass creates the browser; nine test_ methods, each logging in and asserting on its own.
    class LabFlowUITest(unittest.TestCase):
     @classmethod
     def setUpClass(cls):
         cls.driver = make_driver()          # headless Edge + local driver
         cls.wait = WebDriverWait(cls.driver, 20)
     def login(self, role):
         self.driver.get(f"{BASE}/login.html")
         Select(self.driver.find_element(By.ID, "role")).select_by_value(role)
         self.driver.find_element(By.ID, "loginButton").click()
         page = "student.html" if role == "student" else "teacher.html"
         self.wait.until(lambda d: page in d.current_url)   # wait for the redirect
    
    One real case — the seventh, and the hardest:
    def test_07_booking_table(self):
     self.login("teacher")
     tbody = self.wait.until(EC.presence_of_element_located((By.ID, "bookingTable")))
     table = tbody.find_element(By.XPATH, "./ancestor::table[1]")   # tbody -> table
     labels = [h.get_attribute("textContent").strip()              # hidden section needs textContent
               for h in table.find_elements(By.CSS_SELECTOR, "thead th")]
     self.assertEqual(labels[0], "学生")
    
    One command runs it:
    powershell -ExecutionPolicy Bypass -File .\run-selenium.ps1
    
    The script finds Python, installs missing dependencies, starts the service on port 3100, runs the deployment smoke first, then the nine cases, and stops the server afterwards. It writes report.json and nine screenshots; measured result: 9/9 passed in 9.1 seconds.
    The nine cases cover the login page, student login redirect, the five-card device list, search filtering, device detail, the teacher overview, the review table, the 390×844 viewport, and the home page.

    3.3.5 Its weaknesses, and how we work around them

  • UI only. Status codes, error codes and transaction boundaries are out of reach, which is why the API layer stays with node:test; the two do not overlap.
  • Slow. Nine cases take 9.1 seconds against 352 ms for sixteen API cases — an order of magnitude, so it runs daily or before a release rather than on every commit.
  • Coupled to the page. A changed selector turns a case red; both failures this round were selector problems, which is a reminder that test code needs maintenance too.
  • Environment-sensitive. Headless crashes with tab crashed in restricted environments, so we dropped the startup set_window_size, added --no-sandbox and friends, and kept a -Headed fallback.

    3.4 The rest of the toolchain

    Beyond the main tool, the supporting pieces each own a layer; they complement rather than replace each other:
    ToolWhat it solvesWhy this oneCost / limits
    node:testContainer for API and business-rule assertionsBuilt into Node: zero dependencies, zero config; t.test() subtests pin the failure to a scenario; the exit code is a ready-made CI signalNo snapshots, no pretty HTML report; concurrency control is on you
    node:assert/strictAssertionsStrict equality; failures print expected versus actual; same runtime, so no Chai to addNo soft assertions — one failure aborts that subtest
    node:sqlite + mkdtempTest databaseShips with the runtime, so no MySQL/PostgreSQL to install; the temp folder holds the database and uploads and is deleted afterwards, leaving data/labflow.db untouchedSingle-file database: cannot simulate replication or partitions
    Built-in fetch + hand-written cookie jarReal requests and sessionsA real HTTP server, real cookies, more trustworthy than mocks; four identities coexist in one processParsing Set-Cookie is on us (~20 lines)
    --experimental-test-coverageCoverageZero install; per-file line, branch and function coverage is enough to spot the gapsText table only; third-party code must be listed separately
    jsdomMobile pages and behaviourLoads the real HTML and executes the real data.js / student.js / teacher.js, asserting DOM and localStorage; far lighter than a deviceNo CSS rendering, so layout, animation and gestures are out of scope
    curlRoute and deployment smokeShips with the OS; status code, Content-Type and body size at a glanceBlack box only; cannot assert internal state
    zipalign + apksignerAPK checksOfficial Android toolchain; alignment and signature are install gatesValidates the package, not its runtime behaviour
    GitHub IssuesDefect trackingTies naturally to commit messages (fix(...) #31), traceable both waysNo automatic metrics; the closure rate needs a maintained board
    Two trade-offs are worth spelling out.

Why node:test for the API layer. The project constraint is "zero npm runtime dependencies". Jest alone pulls in twenty-odd direct dependencies and well over a hundred transitive ones, plus a config and a transform pipeline; Mocha is lighter but needs Chai and a reporter, another three or four packages. node:test is already in the runtime: node --test runs the file, a non-zero exit code fails CI, and nothing is added to production. The price is writing two small pieces ourselves — the temporary database (5 lines with mkdtemp and seedDatabase) and the cookie jar (20 lines) — and in exchange the tests send real requests instead of celebrating a green mock.
Why jsdom instead of Appium for mobile. The phone client is a Capacitor-wrapped WebView. Appium could drive it in theory, but that needs an Android device or emulator, the Android SDK, an Appium server and a matching chromedriver — none of which this machine has, and the system images come from Google, which is unreachable here. jsdom executes the real scripts instead, and its 41 checks cover login, search, booking, review, repairs and device management. Its boundary is styling: it does not render CSS, which is why nine browser acceptance items and screenshots sit alongside it.

3.5 Two implementations that mattered

(1) A real test server, no mocks

async function startTestServer() {
  const directory = await fs.mkdtemp(path.join(os.tmpdir(), "labflow-test-"));
  const db = createDatabase(path.join(directory, "test.db"));
  await seedDatabase(db);
  const server = http.createServer(createApp({ db, config }));
  await new Promise((r) => server.listen(0, "127.0.0.1", r));
  return { db, baseUrl: `http://127.0.0.1:${server.address().port}`, ... };
}

Listening on port 0 lets the OS assign one, so parallel runs never collide; the temporary directory keeps the development database clean.
(2) A cookie jar, one session per client

function createClient(baseUrl) {
  let cookie = "";
  async function request(pathname, { method = "GET", body } = {}) {
    const headers = body ? { "Content-Type": "application/json" } : {};
    if (cookie) headers.Cookie = cookie;
    const res = await fetch(baseUrl + pathname, { method, headers, body: JSON.stringify(body) });
    const set = res.headers.getSetCookie();
    if (set.length) cookie = set[0].split(";")[0];
    return { status: res.status, data: await res.json().catch(() => null) };
  }
  return { request };
}

With this, student, teacher, administrator and anonymous identities coexist in one test process, which makes permission cases natural. It is the best 20 lines of code in the whole suite.

3.6 Coverage and CI

node --test
node --test --experimental-test-coverage

CI runs the same command and a PR must be green to merge. Coverage has no hard gate (a gate on a young project invites meaningless assertions), but every regression records it and a drop must be explained.

4 Test case documentation

4.1 Three layers

LayerWhere it livesSizeHow it runs
API / business rulestest/api.test.js + case table15 groups, 91 assertionsAutomatic, node --test
Mobile UI and data layertools/testenv/test-ui.js, tools/test-data-layer.js, case table95 designed cases, 52 scriptedAutomatic, jsdom
Browser acceptanceChecklist + screenshots9 items, 4 resolutionsManual + headless browser

4.2 API case table (excerpt)

IDModulePreconditionStepsExpected
API-06-1BookingStudent logged inBook device 1 tomorrow 09:00–10:30201, status pending
API-06-2BookingAs aboveBook 10:00–11:00 the same day409, RESERVATION_CONFLICT
API-06-3BookingA pending booking existsQuery availability for that slot200, available=false
API-06-4ReviewTeacher logged inApprove the booking200, status approved; student notified
API-08-1CancellationApproved, 10 minutes before startStudent cancels409, CANCEL_WINDOW_CLOSED
API-09-2RepairStudent logged inSubmit four photos at once400, TOO_MANY_PHOTOS
API-10-3DeviceDevice has an active bookingTeacher deletes it409, DEVICE_IN_USE
API-10-4DeviceDevice already deletedQuery the historical bookingdeviceId=null, deviceName keeps the snapshot
API-11-2PermissionNew student accountOpen another student's repair photo403
API-11-3PermissionOnly one administrator leftDemote them to student409, LAST_ADMIN
The full table lives in the repo's test/ directory (API) and mobile test cases (95 cases); all test documents, raw logs and screenshots are archived in the test records repository.

4.3 Coverage matrix

RequirementCasesHow covered
Login and sessionAPI-04Automatic
Device catalogue and filtersAPI-02, API-05Automatic
Booking conflict and reviewAPI-06Automatic
Cancellation cutoffAPI-07, API-08Automatic
Repair and photo permissionsAPI-09, API-11Automatic
Device management and delete protectionAPI-10Automatic
Statistics and remindersAPI-12, API-13Automatic
Three mobile roles95-case tableAutomatic + manual

4.4 Numbers

ItemCount
API subtests15 groups
API assertions91
Mobile cases designed95 (P0 28 / P1 42 / P2 25)
Mobile checks scripted52
UI automation cases (Selenium)9
Browser acceptance items9 × 4 resolutions

5 Execution results

5.1 Main system

Executed on 2026-11-29 on this machine (Node v24.21.0, Windows):

✔ LabFlow API end-to-end (292ms)
ℹ tests 16
ℹ pass 16
ℹ fail 0

All 16 passed — one parent test plus 15 subtests and 91 assertions, 352 ms. They cover authentication and private routes, network address discovery, the public device directory and device codes, the QR deep link, device filters, booking conflict and review, cancellation release and cutoff, repairs and photo permissions, delete protection with name snapshots, last-administrator protection, statistics, scheduled reminders, and notification read plus logout.
The build under test is 1.4 (Dynamic LAN): HOST defaults to 0.0.0.0, the startup banner prints the QR base and health URLs, a new GET /api/net lets the phone client type in the server address, and the APK no longer pins an IP. Re-run on this build: 16/16, so the deployment change did not break business logic — it added the "address discovery" case instead.
The output above is copied verbatim from the terminal; the full log is in labflow/test-evidence/api-test-2026-11-29.log.

5.2 Coverage

Overall: lines 72.18%, branches 67.75%, functions 86.28%.
| Module | Line coverage |
| --- | ---: |
| routes/net, routes/reservations, routes/stats, routes/users | 100% |
| routes/devices | 92.4% |
| services/devices / services/reservations | 91.2% / 88.3% |
| services/repairs | 75.9% |
| services/bookingRules | 71.9% (branches only 25%) |
| http.js / static.js | 74.0% / 70.2% |
| scheduler.js | 61.7% |
| vendor/qrcode.cjs (third party) | 57.1% |
The bundled QR library is large and drags the total down; project modules mostly sit between 75% and 100%. The number worth noticing is bookingRules at 25% branch coverage: the time rules are not tested finely enough, which section 7 picks up.

5.3 Mobile demo

GroupResult
Data layer (test-data-layer.js)11 / 11 passed
UI and behaviour (test-ui.js, real scripts in jsdom)41 / 41 passed
Static route smoke11 / 11 as expected
Route smoke: /login.html 200 (1816 B), /student.html 200 (5388 B), /teacher.html 200 (7837 B), / 302, /api/health 200, /nope.html 404, POST /login.html 405, /../server.js 404 (no source leak).

5.4 Packaging and deployment checks

  • APK (1.4): 450 entries; zipalign -c -p 4 passed (4-byte aligned); apksigner verify reports Verifies with a valid v2 signature (v1/v3 not enabled).
  • Local service: listening on 0.0.0.0:3000, printing the real LAN address; 11-route smoke passed.
  • LAN deployment (1.4 Dynamic LAN): the banner prints Local / QR base / Health / database / upload folder and three demo accounts; GET /api/net returns host, port, addresses, baseUrl (measured http://10.198.136.107:3000); the APK no longer embeds a server address — on first launch the user types the IP:port from the banner, so changing networks needs no rebuild.
  • Deployment shape: LAN only, no public URL. The backend runs on port 3100 locally, /api/net reports the reachable address, and a phone on the same Wi-Fi can open it in a browser.

    5.5 UI automation (Selenium)

    All nine cases passed on headless Edge 158 in 9.1 seconds:
    Ran 9 tests in 9.141s
    OK
    
    CaseResult
    Login page: title, form, default roleok
    Student login redirect + name in top barok
    Device list: five cardsok
    Search "示波" narrows to one cardok
    Device detail shows name and statusok
    Teacher overview: total devices = 5ok
    Review table: six headersok (took two fixes to the test code, see section 6)
    No horizontal scroll at 390×844ok
    Home page reachableok
    report.json records total: 9 / passed: 9 / failed: 0; nine screenshots sit in labflow/selenium/shots/ (01-login … 09-home), and the originals are archived in the test records repository.
    UI evidence:

    img

    img

    img

    img

    img

    img

    img

    img

    img

6 Lessons from testing

(1) "Zero dependencies" does not mean "no automation". At first everyone assumed that without Jest there was no way to write tests. In fact node:test plus the built-in fetch is enough: a real server and real requests are far more convincing than a green mock. The price is writing your own cookie jar, which is under 20 lines.
(2) Do not wait for time-based cases; construct them. A cancellation-cutoff case that literally waits until 30 minutes before the start can run once a day. Instead we UPDATE reservations SET start_time = ... to move the record to "now + 10 minutes", and a single assertion reproduces the 409 reliably.
(3) Temporary databases are the floor, not a nicety. Early on a test run scrambled the demo data in the development database and cost half an hour of debugging. Since then every run uses mkdtemp and re-seeds, and "the page changed after running tests" never happened again.
(4) Look at branches, not just lines. Line coverage of 72% looks acceptable, but bookingRules has 25% branch coverage: a large share of if branches were never taken. Line coverage flatters; branch coverage does not.
(5) When the environment blocks you, separate "the test is wrong" from "the environment forbids it". Running node --test inside a restricted sandbox failed with spawn EPERM: the test runner spawns child processes, and the sandbox forbids piped stdio. --test-isolation=none ran the same file in-process and everything passed, with no change to the cases. Worth writing down, because it is easily mistaken for a broken test.
(6) Treat third-party code separately. vendor/qrcode.cjs contributes over 400 uncovered lines; mixing it into the total hides the real picture. Report it as its own line and the project's coverage becomes readable.
(7) Test code is code, and it has bugs too. The first UI run passed 8 of 9. The failure said the review table had 0 of 6 headers — because #bookingTable is a <tbody>, not a <table>. After fixing the selector it failed again: the count was right but the text was empty, because that section is display:none by default and Selenium's .text returns an empty string for invisible elements, so it must be getAttribute("textContent"). Both failures were in the test code; the page was fine. Look at the screenshot first; do not start by changing the product.

7 Assessment of project testing

7.1 Conclusion

The trunk is trustworthy: 16 API tests green, 100% line coverage on the route modules that matter (net, reservations, stats, users), and every transactional operation (booking creation and review, repair transitions, device deletion) has cases, which shows that "rules live in the service layer with assertions at the boundaries" holds up. The 52 mobile checks all pass, so the demo's core loop works; the 9 Selenium cases finish in 9.1 seconds on headless Edge, giving reproducible evidence for login, list, search, detail, review table and mobile viewport.
But "demonstrable" is not yet "shippable"; the gap is in rule boundaries and error paths.

7.2 Open issues

IDIssueSeverityStatus
DEF-01Mobile slot hint ignores past times: says "available" but submission is blockedMinorConfirmed, not fixed
DEF-02Mobile login has no authentication; role lives in sessionStorage and can be tampered withCriticalDesign limitation of the prototype
DEF-03"Set to available" can override an in-progress approved booking; display and storage disagreeMinorTo fix
DEF-04The usage guide says "tap the avatar to log out"; the button is actually in the sidebarTrivialDocs to sync
DEF-05A 2 MB photo becomes ~2.7 MB in base64; repeated submissions can hit the localStorage quotaMinorTo assess
DEF-06The student page does not listen to storage, so it does not refresh after a teacher reviewTrivialTo fix
DEF-07Time dropdown options are inconsistent: no 12:00 start or 13:00 endTrivialSuggested
DEF-08The original bundle lacked the backend, had no login.html, and the APK pinned an old IPCriticalFixed
DEF-09When one repair is completed, a device with another pending repair is set to availableMinorTo confirm
Of the nine logged issues, 2 are critical, 4 minor and 3 trivial. One is fixed (DEF-08), one is a deliberate prototype limitation (DEF-02), and seven remain to fix or confirm, giving a closure rate of 11%. Two further failures were bugs in the test code (section 6, item 7) and are not counted as product defects.
The number is not high, but the definition is clear: everything logged is reproducible, not "might be a problem". The low closure rate comes from spending the last two sprint days on making the main loop demonstrable; the rest went into the Beta plan.

7.3 Suggestions for development and process

  1. Rule changes must update cases. "Cases have been run" on the review checklist must not become a formality.
  2. Add boundary cases to bookingRules: 30-minute alignment, 08:00–22:00 window, 0.5–4 hours, past times — these four are currently verified by hand.
  3. Add error-path cases to the HTTP pipeline: 413 body too large, 415 wrong type, Origin/CSRF checks — none of these branches are exercised.
  4. Stop extending localStorage on mobile. In Beta it should call the main system's API, otherwise "data does not sync across devices" will stay a structural problem.

    7.4 Next stage (Beta)

  • Grow API cases from 15 groups to about 25, covering rule boundaries and error paths, and lift line coverage to 85%.
  • Grow Selenium from 9 to about 20 cases, covering booking submission, review and the full repair flow, and wire it into CI with headless Edge; add Chrome to the matrix later, and Appium for the WebView once a real device is available.
  • Add concurrency cases: two students submitting the same slot, verifying the unique constraint and transactions.
  • Establish a performance baseline: list and statistics endpoints with 10,000 records.
  • Set up a defect board and report the closure rate weekly.

    8 Appendix: how to reproduce

    # Main system
    node --test
    node --test --experimental-test-coverage
    # Mobile demo
    node labflow\tools\test-data-layer.js
    node labflow\tools\testenv\test-ui.js
    # Mobile service
    cd labflow\LabFlow-Mobile-LoginFirst
    node server.js
    
    All evidence is archived in LabFlow-Test-Records: four documents (the Chinese and English testing posts, the execution report, the 95 mobile cases), four raw logs (API run, coverage, mobile checks, route smoke), the Selenium scripts with report.json, and nine UI screenshots.

    9 Checklist against the grading points

    RequirementWhere it is covered
    Test work arrangementSection 2 (criteria, roles, eight-day rhythm, environment, entry/exit, measurement)
    Tool selection and applicationSection 3 (selection criteria, toolchain, the Selenium deep dive, two key implementations, coverage and CI)
    Test case documentationSection 4 (three layers, case table, coverage matrix, counts)
    Testing experienceSection 6 (seven items, all from this round)
    Project testing assessmentSection 7 (conclusion, open issues, suggestions, next stage)
...全文

相关推荐

复现基于李雅普诺夫的模型预测控制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工具、场景化服务和数智化解决方案,推动科技创新与产业创新智能化发展。

BIZKEEN

地方发改委在评审成果孵化转化载体资质时,主要依据哪些核心指标体系?.docx

科易网基于行业知识库+行业大数据+科技资源要素+AI模型,以AI,赋能技术转移、成果转化、技术经理人培训、知识产权管理、区域产业分析与布局、地方科技招商、创新创业大赛等场景,推出科技创新领域的AI工具、场景化服务和数智化解决方案,推动科技创新与产业创新智能化发展。

BIZKEEN
评论
收藏 已收藏
分享
返回顶部