AgentSkillsCN

U2mcp Uitest

U2mcp Uitest

SKILL.md

u2mcp UI Test

Execute AI-driven UI automation tests on real Android devices.

Usage

code
/uitest

Description

AI acts as an automated tester to comprehensively test uiautomator2-mcp-server functionality on a connected Android device. The AI will:

  • Auto-detect and select the first available device from device_list
  • Verify device connection and initialization
  • Test all touch and gesture actions
  • Validate application management operations
  • Execute element-based UI interactions
  • Test input and clipboard operations
  • Adapt to device state and provide intelligent feedback

Requirements

  • Connected Android device with USB debugging enabled
  • ADB server running
  • Device automatically selected from connected devices list

Test Coverage

CategoryTests
DeviceConnection, Info, Screenshot, Hierarchy
TouchClick, Long Click, Double Click
GestureSwipe, Drag, Key Press
AppList, Start, Wait, Info
ElementWait, Bounds, Get Text, Click
InputText Input, Keyboard
ClipboardRead/Write (with known limitations)

Output

Detailed test report with:

  • Device information
  • Pass/fail/skip status per test
  • Error details if any
  • Summary statistics