Team LabRunners — Alpha Sprint Testing Post
Team LabRunners — Alpha Sprint Testing Post
| Item | Content |
|---|---|
| Course | Software Engineering Practice (GG3042, 2601_FZU-MU_SE) |
| Assignment | Fifth Assignment — Alpha Sprint |
| Goal | Choose 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) |
| References | Node.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 records | LabFlow-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:
- Rules must be verifiable. Every business rule gets a test case, so a code change immediately shows whether the rule broke.
- Regression must be repeatable. Anyone who pulls the repo runs one command, with no dependency on one machine's browser state.
- 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
Role Who Responsibility Testing Jin Liyi Test case design and maintenance, execution, defect logging and regression, test report Testing / DevOps He Songyuan Environment and deployment, expanding API tests, pre-release smoke and rollback checks Developers Frontend / backend / UI Self-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
Date Phase Testing activity Output 11-21 – 11-22 Baseline Run the existing API suite, confirm the trunk works, set up temporary-database isolation Baseline pass record 11-23 – 11-24 Integration Testing joins, adds cases for new endpoints, one smoke round per day New cases, smoke records 11-25 – 11-26 Feature freeze No new requirements; focus on rule cases (time boundaries, permissions) Updated case table, defect list 11-27 – 11-28 Full regression Full run + coverage + mobile verification + packaging checks Test report, evidence pack 11-29 Submission Only review follow-up and document submission; no code changes Blog 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.dbis 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 likefix(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 runningnode 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:
- Do not disturb production. Test dependencies live in the test folder only;
node src/server.jsmust not gain a single package because of testing. - One command reproduces it. Anyone who clones the repo runs one command, with no database to install and no browser to configure.
- 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".
- 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-innode: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)
Advantage What it means How it shows up here Tests a real browser Real rendering, real JavaScript, real cookies, real redirects An API test cannot assert "login redirected to student.html"; one Selenium assertion canA standard protocol, swappable browsers W3C WebDriver; Edge, Chrome, Firefox We run Edge today; switching to Chrome is one line Language bindings Java, Python, JS, C#, Ruby The team's scripts are already Python, so tests and fixtures share one stack Automatic driver matching Selenium Manager reads the browser version Edge 158.0.4370.45 gets driver 158.0.4370.45, no version table by hand Free and open source Apache 2.0, no licence cost Against TestComplete (commercial) and Katalon (low-code, weaker versioning) Output is evidence save_screenshotper step, oneunittestline per caseNine screenshots go straight into this post; failures keep their own shot Explicit waits WebDriverWaitpolls a conditionThe frontend fetches asynchronously; waiting for an element beats sleep(3)CI-friendly Headless mode plus exit codes Nine 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 pinnedmsedgedriver158, headless Edge.
Dependencies go into the test folder only, never the system environment:The driver is the pinned copy inpython -m pip install -r requirements.txt --target libs -i https://mirrors.cloud.tencent.com/pypi/simpleselenium/driver/(matched to Edge 158.0.4370.45). After an Edge auto-update,download-driver.ps1fetches the matching version, so a blocked Microsoft download host does not stop us.
Structure: oneunittestclass;setUpClasscreates the browser; ninetest_methods, each logging in and asserting on its own.One real case — the seventh, and the hardest: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 redirectOne command runs it: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], "学生")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 writespowershell -ExecutionPolicy Bypass -File .\run-selenium.ps1report.jsonand 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 crashedin restricted environments, so we dropped the startupset_window_size, added--no-sandboxand friends, and kept a-Headedfallback.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:Tool What it solves Why this one Cost / limits node:testContainer for API and business-rule assertions Built 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/strictAssertions Strict equality; failures print expected versus actual; same runtime, so no Chai to add No soft assertions — one failure aborts that subtest node:sqlite+mkdtempTest database Ships with the runtime, so no MySQL/PostgreSQL to install; the temp folder holds the database and uploads and is deleted afterwards, leaving data/labflow.dbuntouchedSingle-file database: cannot simulate replication or partitions Built-in fetch+ hand-written cookie jarReal requests and sessions A real HTTP server, real cookies, more trustworthy than mocks; four identities coexist in one process Parsing Set-Cookieis on us (~20 lines)--experimental-test-coverageCoverage Zero install; per-file line, branch and function coverage is enough to spot the gaps Text table only; third-party code must be listed separately jsdomMobile pages and behaviour Loads the real HTML and executes the real data.js/student.js/teacher.js, asserting DOM andlocalStorage; far lighter than a deviceNo CSS rendering, so layout, animation and gestures are out of scope curlRoute and deployment smoke Ships with the OS; status code, Content-Typeand body size at a glanceBlack box only; cannot assert internal state zipalign+apksignerAPK checks Official Android toolchain; alignment and signature are install gates Validates the package, not its runtime behaviour GitHub Issues Defect tracking Ties 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 20 lines) — and in exchange the tests send real requests instead of celebrating a green mock.mkdtemp and seedDatabase) and the cookie jar (
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
| Layer | Where it lives | Size | How it runs |
|---|---|---|---|
| API / business rules | test/api.test.js + case table | 15 groups, 91 assertions | Automatic, node --test |
| Mobile UI and data layer | tools/testenv/test-ui.js, tools/test-data-layer.js, case table | 95 designed cases, 52 scripted | Automatic, jsdom |
| Browser acceptance | Checklist + screenshots | 9 items, 4 resolutions | Manual + headless browser |
4.2 API case table (excerpt)
| ID | Module | Precondition | Steps | Expected |
|---|---|---|---|---|
| API-06-1 | Booking | Student logged in | Book device 1 tomorrow 09:00–10:30 | 201, status pending |
| API-06-2 | Booking | As above | Book 10:00–11:00 the same day | 409, RESERVATION_CONFLICT |
| API-06-3 | Booking | A pending booking exists | Query availability for that slot | 200, available=false |
| API-06-4 | Review | Teacher logged in | Approve the booking | 200, status approved; student notified |
| API-08-1 | Cancellation | Approved, 10 minutes before start | Student cancels | 409, CANCEL_WINDOW_CLOSED |
| API-09-2 | Repair | Student logged in | Submit four photos at once | 400, TOO_MANY_PHOTOS |
| API-10-3 | Device | Device has an active booking | Teacher deletes it | 409, DEVICE_IN_USE |
| API-10-4 | Device | Device already deleted | Query the historical booking | deviceId=null, deviceName keeps the snapshot |
| API-11-2 | Permission | New student account | Open another student's repair photo | 403 |
| API-11-3 | Permission | Only one administrator left | Demote them to student | 409, 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
| Requirement | Cases | How covered |
|---|---|---|
| Login and session | API-04 | Automatic |
| Device catalogue and filters | API-02, API-05 | Automatic |
| Booking conflict and review | API-06 | Automatic |
| Cancellation cutoff | API-07, API-08 | Automatic |
| Repair and photo permissions | API-09, API-11 | Automatic |
| Device management and delete protection | API-10 | Automatic |
| Statistics and reminders | API-12, API-13 | Automatic |
| Three mobile roles | 95-case table | Automatic + manual |
4.4 Numbers
| Item | Count |
|---|---|
| API subtests | 15 groups |
| API assertions | 91 |
| Mobile cases designed | 95 (P0 28 / P1 42 / P2 25) |
| Mobile checks scripted | 52 |
| UI automation cases (Selenium) | 9 |
| Browser acceptance items | 9 × 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
| Group | Result |
|---|---|
Data layer (test-data-layer.js) | 11 / 11 passed |
UI and behaviour (test-ui.js, real scripts in jsdom) | 41 / 41 passed |
| Static route smoke | 11 / 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 4passed (4-byte aligned);apksigner verifyreportsVerifieswith 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/netreturnshost,port,addresses,baseUrl(measuredhttp://10.198.136.107:3000); the APK no longer embeds a server address — on first launch the user types theIP:portfrom the banner, so changing networks needs no rebuild. - Deployment shape: LAN only, no public URL. The backend runs on port 3100 locally,
/api/netreports 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 OKCase Result Login page: title, form, default role ok Student login redirect + name in top bar ok Device list: five cards ok Search "示波" narrows to one card ok Device detail shows name and status ok Teacher overview: total devices = 5 ok Review table: six headers ok (took two fixes to the test code, see section 6) No horizontal scroll at 390×844 ok Home page reachable ok report.jsonrecordstotal: 9 / passed: 9 / failed: 0; nine screenshots sit inlabflow/selenium/shots/(01-login … 09-home), and the originals are archived in the test records repository.UI evidence: 








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
| ID | Issue | Severity | Status |
|---|---|---|---|
| DEF-01 | Mobile slot hint ignores past times: says "available" but submission is blocked | Minor | Confirmed, not fixed |
| DEF-02 | Mobile login has no authentication; role lives in sessionStorage and can be tampered with | Critical | Design limitation of the prototype |
| DEF-03 | "Set to available" can override an in-progress approved booking; display and storage disagree | Minor | To fix |
| DEF-04 | The usage guide says "tap the avatar to log out"; the button is actually in the sidebar | Trivial | Docs to sync |
| DEF-05 | A 2 MB photo becomes ~2.7 MB in base64; repeated submissions can hit the localStorage quota | Minor | To assess |
| DEF-06 | The student page does not listen to storage, so it does not refresh after a teacher review | Trivial | To fix |
| DEF-07 | Time dropdown options are inconsistent: no 12:00 start or 13:00 end | Trivial | Suggested |
| DEF-08 | The original bundle lacked the backend, had no login.html, and the APK pinned an old IP | Critical | Fixed |
| DEF-09 | When one repair is completed, a device with another pending repair is set to available | Minor | To 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
- Rule changes must update cases. "Cases have been run" on the review checklist must not become a formality.
- 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. - Add error-path cases to the HTTP pipeline: 413 body too large, 415 wrong type, Origin/CSRF checks — none of these branches are exercised.
- Stop extending
localStorageon 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
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# 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.jsreport.json, and nine UI screenshots.9 Checklist against the grading points
Requirement Where it is covered Test work arrangement Section 2 (criteria, roles, eight-day rhythm, environment, entry/exit, measurement) Tool selection and application Section 3 (selection criteria, toolchain, the Selenium deep dive, two key implementations, coverage and CI) Test case documentation Section 4 (three layers, case table, coverage matrix, counts) Testing experience Section 6 (seven items, all from this round) Project testing assessment Section 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工具、场景化服务和数智化解决方案,推动科技创新与产业创新智能化发展。
地方发改委在评审成果孵化转化载体资质时,主要依据哪些核心指标体系?.docx
科易网基于行业知识库+行业大数据+科技资源要素+AI模型,以AI,赋能技术转移、成果转化、技术经理人培训、知识产权管理、区域产业分析与布局、地方科技招商、创新创业大赛等场景,推出科技创新领域的AI工具、场景化服务和数智化解决方案,推动科技创新与产业创新智能化发展。


