Skip to content

[FEATURE] Does maestro-runner have any plans to support HarmonyOS (it use hdc is similar to android's adb) #56

@tsdking

Description

@tsdking

Problem Statement

Harmonyos mobile phones already have a large number of users. If maestro-runner can support it, it will be able to fully cover the mobile operating system, which is an advantage.

Proposed Solution

Suggestion 0 (Recommendation): Maestro-runner officially supports harmony, which involves App Lifecycle Commands such as launchApp. There may be a certain adaptation cost, but official support should be the most reliable solution

Other plans (minimum official changes)

Suggestion 1: maestro-runner supports executing javascript such as runscript. This is a great feature. Then if runscript supports executing shell commands, it can call any cli tool, such as harmony's hdc

Suggestion 2: Do not make any changes to the runscript. You only need the platform parameter of maestro-runner to support harmony (currently reporting an error directly), and then when writing yaml, forward the hdc command through the js script of runscript for local execution. This is achievable.

Use Case

Explain how you would use this feature.

Example

maestro-runner --platform harmony test test-harmony.yaml 

  maestro-runner 1.1.1 - by DeviceLab.dev
  Fast, lightweight Maestro test runner
  Star us on GitHub

Setup
────────────────────────────────────────
  ✓ Found 1 test flow(s)
Execution
────────────────────────────────────────
Error: failed to create driver: unsupported platform: harmony

Alternatives Considered

Describe any alternative solutions or workarounds you've considered.

Additional Context

Add any other context, screenshots, or references here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions