HOME
  • GM-3568JHF
  • M4-R1
  • M5-R1
  • SC-3568HA
  • M-K1HSE
  • CF-NRS1
  • CF-CRA2
  • 1684XB-32T
  • 1684X-416T
  • C-3568BQ
  • C-3588LQ
  • GC-3568JBAF
  • C-K1BA
Shop
  • English
  • 简体中文
HOME
  • GM-3568JHF
  • M4-R1
  • M5-R1
  • SC-3568HA
  • M-K1HSE
  • CF-NRS1
  • CF-CRA2
  • 1684XB-32T
  • 1684X-416T
  • C-3568BQ
  • C-3588LQ
  • GC-3568JBAF
  • C-K1BA
Shop
  • English
  • 简体中文
  • SC-3568HA

    • Introduction

      • SC-3568HA Overview
    • Quick Start Guide

      • OpenHarmony Overview
      • Image Flashing
      • Setting Up the Development Environment
      • Hello World Application and Deployment
    • Application Development

      • ArkUI

        • Chapter 1 Introduction to ArkTS Language
        • Chapter 2 Introduction to UI Components and Practical Applications (Part 1)
        • Chapter 3 Introduction to UI Components and Practical Applications (Part 2)
        • Chapter 4 Introduction to UI Components and Practical Applications (Part 3)
      • Expand

        • Chapter 1 Getting Started Guide
        • Chapter 2 Referencing and Using Third-Party Libraries
        • Chapter 3: Application Compilation and Deployment
        • Chapter 4: Command-Line Factory Reset
        • Chapter 5: System Debugging -- HDC (Huawei Device Connector) Debugging
        • Chapter 6 APP Stability Testing
        • Chapter 7 Application Testing
    • Device Development

      • Chapter 1 Environment Setup
      • Chapter 2 Download Source Code
      • Chapter 3 Compiling Source Code
    • Peripheral And Iinterface

      • Raspberry Pi interface
      • GPIO Interface
      • I2C Interface
      • SPI communication
      • PWM (Pulse Width Modulation) control
      • Serial port communication
      • TF Card
      • Display Screen
      • Touch
      • Audio
      • RTC
      • Ethernet
      • M.2
      • MINI-PCIE
      • Camera
      • WIFI&BT
      • Raspberry Pi expansion board
    • Frequently Asked Questions

      • Resource Downloads
  • M-K1HSE

    • Introduction

      • M-K1HSE Introduction
    • Quick Start

      • Development environment construction
      • Source code acquisition
      • Compilation Notes
      • Burning Guide
    • Peripherals and interfaces

      • 01 Audio
      • 02 RS485
      • 03 Display
    • System customization development

      • System transplant
      • System customization
      • Driver Development
      • System Debugging
      • OTA Update

Chapter 7 Application Testing

1. Wukong Stability Tool

https://docs.openharmony.cn/pages/v5.0/zh-cn/application-dev/application-test/wukong-guidelines.md/

Introduction:

The Wukong stability testing tool for OpenHarmony, a core component of the OpenHarmony toolkit, provides foundational capabilities for application stability testing. These include:

  • Random event injection for Ability modules (to simulate unpredictable user interactions)
  • Widget/control injection testing (to validate UI component robustness)
  • Exception/crash capture mechanisms (for error diagnosis)
  • Automated test report generation
  • Data traversal screenshot capture for Ability interfaces (to document visual states)

This tool systematically ensures app reliability through controlled chaos engineering and behavioral verification.

Command-Specific Usage Instructions: https://gitee.com/openharmony/ostest\_wukong/blob/master/README\_zh.md

Wukong exec Random Testing Usage Example

Enter the shell environment and execute the random testing command:

    wukong exec -s 10 -i 1000 -a 0.28 -t 0.72 -c 100

Random Testing Example Explanation:

TOOL

Wukong Specialized Testing Usage Example

Enter the shell environment and execute the specialized sequential traversal testing command:

    wukong special -C [bundlename] -p

Specialized Testing Example Explanation:

TOOL

Upon completion of the test command execution, the test results will be automatically generated.

The root directory for test result output is as follows:

    The storage path for reports of versions prior to September 22, 2022, is as follows: /data/local/wukong/report/xxxxxxxx_xxxxxx/
	The storage path for reports of versions after September 22, 2022, is as follows: /data/local/tmp/wukong/report/xxxxxxxx_xxxxxx/

Note: The test report directory will be automatically generated.

This directory contains the following categories of results:

TOOL

wukong execution log

    reports/xxxxxxxx_xxxxxx/wukong.log

2. SmartPerf Performance Tool

https://docs.openharmony.cn/pages/v5.0/zh-cn/application-dev/application-test/smartperf-guidelines.md/

Introduction:

SmartPerf is a performance and power consumption testing tool developed based on the OpenHarmony system. It features user-friendly operation and provides key KPI metrics for both performance and power consumption, including specific test values such as FPS, CPU, GPU, Ftrace, and other device metrics.

Currently, the SmartPerf tool offers two usage modes: the HAP application visual operation mode (SmartPerf-Device) and the shell command-line mode (SmartPerf-Daemon). SmartPerf-Device supports visual operations, pause control via a floating window, and real-time data display through a floating window. SmartPerf-Daemon is primarily designed for screen-less devices and low-performance devices, while also maintaining compatibility with models like RK3568.


Edit this page on GitHub
Last Updated:
Contributors: zsl, zwhuang
Prev
Chapter 6 APP Stability Testing