appium
Installation
SKILL.md
When to use this skill
Use this skill whenever the user wants to:
- 编写或维护 Appium 自动化测试(Android/iOS 原生或混合应用)
- 定位元素、手势、多端能力与 CI 集成
How to use this skill
- 环境:安装 Appium Server、驱动(UiAutomator2/XCUITest)、JDK/Node;真机或模拟器。
- 脚本:Capabilities(deviceName、app、platformName);定位器(id、xpath、accessibility id);手势与等待。
- CI:在 Jenkins/GitHub Actions 中运行;并行与报告。
Best Practices
- 优先用 accessibility id 或 id;避免脆弱 xpath。
- 显式等待与重试;截图与日志便于排查。
- 多设备/多版本用矩阵;敏感信息用环境变量。