计算机使用智能体分类English
R02.07.01.02 · 任务小类

UI自动化测试

UI test automation

Write and repair Playwright/Appium/XCUITest suites against a live app.

20 条本项目编写的提案 · 分类 v1.1 · 新增基准运行 0 次。下方验证方式与部分得分规则是设计,不是执行结果。

典型应用
Playwright · Appium · XCUITest
小类 GUI 需求标签
HY · 混合

任务提案 · 20

展开查看完整原文与建议检查方式;两种界面均保留提案英文原文。

R02.07.01.02-T01 Write Playwright tests that catch checkout regressions

原始指令

For the sandbox shop at http://localhost:3000, write Playwright (TypeScript) tests in tests/checkout.spec.ts covering login, add to cart, promo code, shipping choice and order confirmation, using role/label locators. Inspect the running app to choose assertions.

平台
mac · macOS win · Windows lin · Linux
应用
Playwright · Chrome
交互表面
brow · 浏览器 term · 终端
GUI 需求 · 任务设定
HY · 混合
GUI 需求 · 普通权限
HY · 混合
交互原语
code · 代码与命令 click · 指向与点击 vis · 视觉判断
工作产物
WP06 · 代码 / 工程
条件
未声明
提案难度
3 / 5

建议验证方式

Grader runs the suite on the golden build (must pass 3/3 runs) and on 8 hidden mutant builds (wrong totals, disabled button, missing toast…): score = mutants killed. Static check: no waitForTimeout, no CSS nth-child selectors.

建议部分得分

20% passes on golden; 60% mutant kill rate; 20% locator/wait hygiene

R02.07.01.02-T02 Repair a Playwright suite broken by a UI redesign

原始指令

After the v2 redesign of the sandbox admin app, 12 of 30 Playwright tests in e2e/ fail. Update locators and flows to the new UI (inspect it in the browser), without weakening assertions or adding sleeps. Report any test that fails because of a real app bug in output/app_bugs.md instead of changing its assertion.

平台
mac · macOS win · Windows lin · Linux
应用
Playwright · Chrome
交互表面
brow · 浏览器 term · 终端
GUI 需求 · 任务设定
HY · 混合
GUI 需求 · 普通权限
HY · 混合
交互原语
code · 代码与命令 click · 指向与点击 vis · 视觉判断
工作产物
WP06 · 代码 / 工程
条件
未声明
提案难度
3 / 5

建议验证方式

Grader: 29 tests pass on v2 golden; the 1 seeded real app bug must be reported (not 'fixed' by relaxing the test). Assertion count per test must not decrease (AST diff); no waitForTimeout. Suite still kills 6 hidden mutants.

建议部分得分

45% repaired tests pass; 20% app bug reported not masked; 20% assertions preserved; 15% mutants killed

R02.07.01.02-T03 Eliminate flakiness from a Cypress suite

原始指令

Six tests in cypress/e2e/ of the sandbox dashboard fail intermittently (~20% of runs). Find the causes (animation timing, unawaited network calls, shared state, time zone) and fix them in the tests or test setup only.

平台
mac · macOS win · Windows lin · Linux
应用
Cypress · Chrome
交互表面
brow · 浏览器 term · 终端
GUI 需求 · 任务设定
HY · 混合
GUI 需求 · 普通权限
CL · CLI 足够
交互原语
code · 代码与命令 vis · 视觉判断
工作产物
WP06 · 代码 / 工程
条件
未声明
提案难度
4 / 5

建议验证方式

Grader runs the suite 50 times in CI with randomized order and CPU throttling: 50/50 green. No cy.wait(<number>) added; app source unchanged (diff check). Hidden mutants still detected by the 6 tests.

建议部分得分

60% 50/50 stability (linear credit); 20% no fixed waits; 20% tests still kill mutants

R02.07.01.02-T04 Automate an Android onboarding flow with Appium

原始指令

Write Appium (WebdriverIO) tests for the 'BudgetBee' APK on the API 34 emulator: 4-step onboarding with permission prompts, currency selection, and the settings toggles (dark mode, weekly report). Use accessibility ids where present and UiSelector otherwise.

平台
mac · macOS win · Windows lin · Linux and · Android
应用
Appium · WebdriverIO · Android Emulator
交互表面
mob · 移动触控 term · 终端
GUI 需求 · 任务设定
HY · 混合
GUI 需求 · 普通权限
CL · CLI 足够
交互原语
code · 代码与命令 touch · 触控手势
工作产物
WP06 · 代码 / 工程
条件
未声明
提案难度
3 / 5

建议验证方式

Grader runs the suite on golden APK (must pass twice from clean install) and 5 mutant APKs (skipped step, wrong default currency, toggle not persisted…): kill rate. No driver.pause() calls.

建议部分得分

25% passes on golden; 60% mutant kill rate; 15% no fixed pauses

R02.07.01.02-T05 Add XCUITests to a SwiftUI app with accessibility identifiers

原始指令

fixtures/Recipes (SwiftUI) has no UI tests. Add accessibility identifiers where needed and write XCUITests covering search, favoriting, the recipe detail scaler (servings stepper) and deleting a favorite with swipe.

平台
mac · macOS ios · iOS/iPadOS
应用
Xcode · XCUITest · iOS Simulator
交互表面
mob · 移动触控 desk · 桌面 GUI
GUI 需求 · 任务设定
HY · 混合
GUI 需求 · 普通权限
CL · CLI 足够
交互原语
code · 代码与命令 touch · 触控手势
工作产物
WP06 · 代码 / 工程
条件
未声明
提案难度
3 / 5

建议验证方式

xcodebuild test passes on the golden app; hidden mutants (5) each fail ≥1 test. Identifiers must not change visible UI (snapshot SSIM ≥0.99). Swipe-to-delete test must use swipeLeft on the cell.

建议部分得分

25% suite passes; 55% mutant kill rate; 20% UI unchanged

R02.07.01.02-T06 Set up visual regression tests with masked dynamic regions

原始指令

Add Playwright toHaveScreenshot tests for 6 pages of the sandbox analytics app at 1280 and 390 px. Mask or stabilize dynamic regions (clock, live chart, avatars) so the baseline is stable, and commit the baselines.

平台
mac · macOS win · Windows lin · Linux
应用
Playwright
交互表面
brow · 浏览器 term · 终端
GUI 需求 · 任务设定
HY · 混合
GUI 需求 · 普通权限
CL · CLI 足够
交互原语
code · 代码与命令 vis · 视觉判断
工作产物
WP06 · 代码 / 工程
条件
未声明
提案难度
3 / 5

建议验证方式

Grader runs the suite 10× against the golden build (all green, so masks work) and against 4 visual-mutant builds (shifted button, color change, font fallback, hidden icon): each must fail. maxDiffPixelRatio must be ≤0.01.

建议部分得分

30% stable on golden; 50% visual mutants caught; 20% thresholds strict

R02.07.01.02-T07 Migrate a Selenium Java suite to Playwright TypeScript

原始指令

Port the 20 Selenium/JUnit tests in legacy-tests/ to Playwright TypeScript with page objects, keeping every scenario and assertion. Run both suites against the sandbox CRM to confirm equal coverage.

平台
mac · macOS win · Windows lin · Linux
应用
Selenium · Playwright · IntelliJ IDEA
交互表面
brow · 浏览器 term · 终端
GUI 需求 · 任务设定
HY · 混合
GUI 需求 · 普通权限
CL · CLI 足够
交互原语
code · 代码与命令 click · 指向与点击
工作产物
WP06 · 代码 / 工程
条件
long · 长流程
提案难度
4 / 5

建议验证方式

Grader maps scenarios by test name: 20 ported tests pass on golden; on 10 hidden mutants the Playwright suite kills at least every mutant the Selenium suite kills. Page-object classes exist for the 6 pages.

建议部分得分

30% tests ported and passing; 50% mutant parity; 20% page objects

R02.07.01.02-T08 Record a flow with codegen and refactor it into page objects

原始指令

Use Playwright codegen against the sandbox booking site to record 'search hotel → pick dates → book room as guest', then refactor the recording into a page-object test with assertions on price and confirmation number format.

平台
mac · macOS win · Windows lin · Linux
应用
Playwright
交互表面
brow · 浏览器 term · 终端
GUI 需求 · 任务设定
HY · 混合
GUI 需求 · 普通权限
HY · 混合
交互原语
click · 指向与点击 code · 代码与命令
工作产物
WP06 · 代码 / 工程
条件
未声明
提案难度
2 / 5

建议验证方式

Test passes on golden and fails on 3 mutants (wrong price, missing confirmation, broken date picker). Page objects for 3 pages exist; no raw coordinate clicks.

建议部分得分

30% test passes; 45% mutants caught; 25% page-object structure

R02.07.01.02-T09 Automate a legacy Windows app with no automation ids

原始指令

The Win32 app 'StockMaster' exposes only partial UIA info (no AutomationIds). Write FlaUI (C#) tests for creating an item, editing its price, and running the 'Low stock' report, locating controls by name, control type and tree position. Tests must survive window moves and DPI 150%.

平台
win · Windows
应用
FlaUI · Visual Studio · StockMaster
交互表面
desk · 桌面 GUI
GUI 需求 · 任务设定
HY · 混合
GUI 需求 · 普通权限
HY · 混合
交互原语
code · 代码与命令 click · 指向与点击 vis · 视觉判断
工作产物
WP06 · 代码 / 工程
条件
未声明
提案难度
4 / 5

建议验证方式

Grader runs tests at 100% and 150% DPI and with randomized window positions: all pass; 4 mutant builds each fail ≥1 test. No absolute screen coordinates in code (static check).

建议部分得分

30% pass at both DPIs; 50% mutant kill rate; 20% no coordinates

R02.07.01.02-T10 Write Maestro flows for three React Native journeys

原始指令

Write Maestro YAML flows for the 'TripPal' React Native app on the Android emulator: sign in with the test account, create a trip with two stops, and share the itinerary to the clipboard. Use testIDs where present.

平台
mac · macOS win · Windows lin · Linux and · Android
应用
Maestro · Android Emulator
交互表面
mob · 移动触控 term · 终端
GUI 需求 · 任务设定
HY · 混合
GUI 需求 · 普通权限
CL · CLI 足够
交互原语
code · 代码与命令 touch · 触控手势
工作产物
WP06 · 代码 / 工程
条件
未声明
提案难度
2 / 5

建议验证方式

Grader runs flows on golden build (pass twice from clean state) and 3 mutants (kill rate). Clipboard content asserted equals itinerary text. No fixed waits (Maestro extendedWaitUntil allowed).

建议部分得分

30% passes; 50% mutants killed; 20% clipboard assertion

R02.07.01.02-T11 Test dashboard error states with network mocking

原始指令

Write Playwright tests for the sandbox metrics dashboard that intercept /api/* and cover: 500 error banner with retry, 10 s timeout spinner then error, empty dataset placeholder, and partial data warning. Inspect the UI to assert visible messages.

平台
mac · macOS win · Windows lin · Linux
应用
Playwright
交互表面
brow · 浏览器 term · 终端
GUI 需求 · 任务设定
HY · 混合
GUI 需求 · 普通权限
CL · CLI 足够
交互原语
code · 代码与命令 vis · 视觉判断
工作产物
WP06 · 代码 / 工程
条件
未声明
提案难度
3 / 5

建议验证方式

Golden build: suite passes. 5 mutants (missing retry, wrong copy, no timeout handling, crash on empty, warning hidden) must each fail. Tests must use page.route, not modify app code.

建议部分得分

20% passes; 60% mutants caught; 20% route mocking only

R02.07.01.02-T12 Share page objects across Appium iOS and Android suites

原始指令

The 'PetVet' app has iOS and Android builds with different element trees. Build one Appium (Python) test suite with platform-specific locator maps and shared page objects covering appointment booking, reschedule and cancel, running on the iOS Simulator and Android emulator.

平台
mac · macOS ios · iOS/iPadOS and · Android
应用
Appium · iOS Simulator · Android Emulator · XCUITest
交互表面
mob · 移动触控 term · 终端
GUI 需求 · 任务设定
HY · 混合
GUI 需求 · 普通权限
CL · CLI 足够
交互原语
code · 代码与命令 touch · 触控手势
工作产物
WP06 · 代码 / 工程
条件
long · 长流程
提案难度
5 / 5

建议验证方式

Grader runs on both platforms: golden passes on each; 6 mutants per platform each killed. Shared flow code (page objects) is the same module for both platforms; only locator maps differ (import graph check).

建议部分得分

35% iOS suite; 35% Android suite; 20% mutants killed; 10% shared structure

R02.07.01.02-T13 Write component tests for a React design system

原始指令

Write Playwright component tests (@playwright/experimental-ct-react) for 10 components in packages/ui (Button, Modal, Tabs, Combobox, DatePicker, Toast, Tooltip, Menu, Slider, Table), covering keyboard interaction and visible states.

平台
mac · macOS win · Windows lin · Linux
应用
Playwright
交互表面
brow · 浏览器 term · 终端
GUI 需求 · 任务设定
HY · 混合
GUI 需求 · 普通权限
CL · CLI 足够
交互原语
code · 代码与命令 key · 快捷键 vis · 视觉判断
工作产物
WP06 · 代码 / 工程
条件
未声明
提案难度
3 / 5

建议验证方式

Grader runs tests on golden components (all pass) and 20 hidden component mutants (focus trap broken, arrow keys ignored, aria-expanded wrong…): kill rate. Each component needs ≥2 tests.

建议部分得分

20% coverage of 10 components; 60% mutant kill rate; 20% keyboard paths

R02.07.01.02-T14 Test a canvas whiteboard with coordinate and pixel assertions

原始指令

Write Playwright tests for the sandbox canvas whiteboard (no DOM for shapes): draw a rectangle, move it by drag, connect two shapes with an arrow, undo, and export PNG. Assert by exported scene JSON and pixel sampling of the canvas.

平台
mac · macOS win · Windows lin · Linux
应用
Playwright · Excalidraw
交互表面
brow · 浏览器 term · 终端
GUI 需求 · 任务设定
HY · 混合
GUI 需求 · 普通权限
CL · CLI 足够
交互原语
code · 代码与命令 drag · 拖放 vis · 视觉判断
工作产物
WP06 · 代码 / 工程
条件
未声明
提案难度
4 / 5

建议验证方式

Golden passes 5× at device scale 1 and 2; 5 mutants (drag offset bug, undo skips, arrow not bound, export missing shape, color wrong) each fail. Tests must compute coordinates from canvas bounding box, not hard-coded page pixels.

建议部分得分

25% stable at both scales; 55% mutants caught; 20% coordinate robustness

R02.07.01.02-T15 Test real-time chat with two browser contexts

原始指令

Write Playwright tests for the sandbox chat app using two users in separate browser contexts: message delivery, typing indicator, read receipts, edit/delete propagation and reconnect after offline. Avoid timing sleeps.

平台
mac · macOS win · Windows lin · Linux
应用
Playwright
交互表面
brow · 浏览器 term · 终端
GUI 需求 · 任务设定
HY · 混合
GUI 需求 · 普通权限
G2 · GUI 必要
交互原语
code · 代码与命令 multi · 跨应用
工作产物
WP06 · 代码 / 工程
条件
未声明
提案难度
4 / 5

建议验证方式

Golden passes 20/20 runs; 6 mutants (dropped receipts, stale edits, no reconnect) each fail. Uses two contexts with separate storage states; no waitForTimeout.

建议部分得分

25% stable on golden; 55% mutants caught; 20% multi-context hygiene

R02.07.01.02-T16 Shard a Playwright suite in GitHub Actions with traces on failure

原始指令

Configure .github/workflows/e2e.yml so the 120-test Playwright suite runs sharded across 4 jobs against a service container of the app, uploads traces and HTML reports only on failure, and merges shard reports.

平台
lin · Linux
应用
Playwright · GitHub Actions
交互表面
term · 终端
GUI 需求 · 任务设定
CL · CLI 足够
GUI 需求 · 普通权限
CL · CLI 足够
交互原语
code · 代码与命令
工作产物
WP06 · 代码 / 工程
条件
未声明
提案难度
2 / 5

建议验证方式

Grader runs the workflow with act: 4 shard jobs, all tests executed exactly once, merged report artifact present. Injected failing test produces a trace.zip artifact; passing run uploads none.

建议部分得分

35% sharding correct; 25% service container; 25% failure artifacts; 15% merged report

R02.07.01.02-T17 Write Espresso tests with idling resources for async lists

原始指令

In fixtures/NewsReader (Android Views), write Espresso tests for the RecyclerView feed: scroll to item 40, open it, bookmark, and verify the bookmarks tab. Register an IdlingResource for the repository's async loads instead of sleeps.

平台
mac · macOS win · Windows lin · Linux and · Android
应用
Android Studio · Espresso · Android Emulator
交互表面
mob · 移动触控 desk · 桌面 GUI
GUI 需求 · 任务设定
HY · 混合
GUI 需求 · 普通权限
CL · CLI 足够
交互原语
code · 代码与命令 touch · 触控手势
工作产物
WP06 · 代码 / 工程
条件
未声明
提案难度
3 / 5

建议验证方式

Tests pass 20/20 on emulator with randomized network delay; 4 mutants each killed. Static check: no Thread.sleep / SystemClock.sleep; IdlingResource registered.

建议部分得分

30% stable with delays; 50% mutants killed; 20% idling resource used

R02.07.01.02-T18 Separate app regressions from test bugs in a failing nightly run

原始指令

Nightly run artifacts in fixtures/nightly/ (14 failing Playwright tests, trace.zip files, HTML report) come from the sandbox ERP. Using the trace viewer and the live app, classify each failure as app regression or test defect, fix the test defects, and report regressions in output/regressions.md with evidence.

平台
mac · macOS win · Windows lin · Linux
应用
Playwright · Trace Viewer
交互表面
brow · 浏览器 desk · 桌面 GUI term · 终端
GUI 需求 · 任务设定
HY · 混合
GUI 需求 · 普通权限
HY · 混合
交互原语
vis · 视觉判断 code · 代码与命令 click · 指向与点击
工作产物
WP06 · 代码 / 工程
条件
hidden · 隐藏 / 过期状态
提案难度
5 / 5

建议验证方式

Ground truth: 5 regressions, 9 test defects. Grader scores classification accuracy, then runs fixed tests on golden (pass) and checks the 5 regressions are still asserted (they must fail on the current build). Evidence must name the failing step.

建议部分得分

40% classification; 35% fixed tests pass; 15% regressions still detected; 10% evidence

R02.07.01.02-T19 Automate drag-and-drop upload and kanban reordering

原始指令

Write Playwright tests for the sandbox project app covering drag-and-drop file upload into a card (via DataTransfer), dragging cards between columns and reordering within a column, and keyboard-based reordering (Space, arrows).

平台
mac · macOS win · Windows lin · Linux
应用
Playwright
交互表面
brow · 浏览器 term · 终端
GUI 需求 · 任务设定
HY · 混合
GUI 需求 · 普通权限
CL · CLI 足够
交互原语
code · 代码与命令 drag · 拖放 key · 快捷键
工作产物
WP06 · 代码 / 工程
条件
未声明
提案难度
4 / 5

建议验证方式

Golden passes 10/10 runs; 5 mutants (drop index off by one, upload ignores 2nd file, keyboard move broken…) each fail. Assertions read the persisted order via the UI after reload.

建议部分得分

25% stable; 55% mutants killed; 20% persistence verified after reload

R02.07.01.02-T20 Build an acceptance suite for 50 user stories

原始指令

spec/stories.md lists 50 user stories with acceptance criteria for the sandbox HR app 'PeopleDesk'. Write a Playwright suite where each criterion maps to a tagged test (@US-xx), run it against the app, and mark in output/traceability.csv which criteria are covered and whether they pass.

平台
mac · macOS win · Windows lin · Linux
应用
Playwright
交互表面
brow · 浏览器 term · 终端
GUI 需求 · 任务设定
HY · 混合
GUI 需求 · 普通权限
HY · 混合
交互原语
code · 代码与命令 click · 指向与点击 vis · 视觉判断
工作产物
WP06 · 代码 / 工程
条件
long · 长流程
提案难度
5 / 5

建议验证方式

Grader checks traceability.csv against tags; suite runs on golden (reported passes must match) and on 25 hidden mutants mapped to stories: kill rate weighted by story. Three criteria are deliberately failing on golden and must be reported as failing.

建议部分得分

25% criteria covered; 45% mutant kill rate; 20% failing criteria reported; 10% traceability exact

已有研究映射

当前映射未给此小类指定基准参考。

同工作流族的小类