harmonyos-autotest

Official

Turn Chinese test steps into runnable HarmonyOS UI tests.

Authoropenharmonyinsight
Version1.0.0
Installs0

System Documentation

What problem does it solve?

When you describe HarmonyOS app testing steps in natural language, you still need to manually convert them into executable Hypium test code and repeatedly fix failures due to locator mismatches and environment issues.

Core Features & Use Cases

  • Natural language → Hypium test code: Parses Chinese test steps into structured JSON and generates executable Hypium Python test cases.
  • Step-by-step debugging with strict guardrails: Runs each test step in isolation, requires user confirmation, and comments out confirmed steps to prevent drift.
  • Robust UI control locating: Exports the device control tree, prioritizes locator strategies (text/type/key/id), and falls back to screenshot + AI image analysis when control-tree targeting fails.
  • Environment detection + project scaffolding: Checks HDC/Hypium/device availability, then creates a ready-to-run Hypium test project from a template and produces reports (HTML/XML/JSON).

Use case example: You want to test that a settings page search and UI toggles work. Write steps in Chinese, let this Skill generate the Hypium test project, debug each step until controls are reliably found, then run an end-to-end execution to produce a full test report.

Quick Start

Run the harmonyos-autotest skill with your test steps markdown file to generate and debug a runnable Hypium automation test project for your HarmonyOS app.

Dependency Matrix

Required Modules

None required

Components

scriptsreferencesassets

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: harmonyos-autotest
Download link: https://github.com/openharmonyinsight/openharmony-skills/archive/main.zip#harmonyos-autotest

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.