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--
Wukong, the OpenHarmony stability testing tool, is an important part of the OpenHarmony toolset. It implements basic capabilities for application stability testing such as random event injection for Ability, control injection, exception capture, report generation, and data traversal screenshots for Ability.
Command corresponding usage instructions: https://gitee.com/openharmony/ostest_wukong/blob/master/README_zh.md
wukong exec Random Testing Usage Example
Enter shell and execute random testing command:
wukong exec -s 10 -i 1000 -a 0.28 -t 0.72 -c 100Random Testing Example Analysis:

wukong special Special Testing Usage Example
Enter shell and execute special sequential traversal testing command:
wukong special -C [bundlename] -pSpecial Testing Example Analysis:

When the test instruction is completed, the test results will be automatically generated.
The root path for test result output is as follows:
Report storage path for versions before 2022/9/22: /data/local/wukong/report/xxxxxxxx_xxxxxx/
Report storage path for versions after 2022/9/22: /data/local/tmp/wukong/report/xxxxxxxx_xxxxxx/Note: The test report file directory will be automatically generated.
This directory contains the following types of results:

wukong Execution Log
reports / xxxxxxxx_xxxxxx / wukong.log2. SmartPerf Performance Tool
Introduction--
SmartPerf is a performance and power testing tool developed based on the OpenHarmony system. It is simple and easy to operate, and can provide key KPI indicators for performance and power, giving test values for specific indicators, including FPS, CPU, GPU, Ftrace and other indicator data of the collected device;
Currently, SmartPerf tool provides two usage methods: hap application visual operation method (SmartPerf-Device) and shell command line method (SmartPerf-Daemon). SmartPerf-Device supports visual operation, floating window control pause, and floating window real-time data display. SmartPerf-Daemon is mainly suitable for devices without screens or devices with poor performance, and also supports devices like 3568.
