• Home
Name Date Size #Lines LOC

..--

config.yamlD06-May-202513.8 KiB315251

entry.pyD06-May-20251.5 KiB5136

execution.pyD06-May-2025118.5 KiB2,7662,298

options.pyD06-May-20259.1 KiB242195

preparation.pyD06-May-20252.5 KiB8462

readme.mdD06-May-20251.5 KiB2822

readme_zh.mdD06-May-20251.2 KiB2725

result.pyD06-May-202525.9 KiB645512

run.pyD06-May-20251.5 KiB5541

run_ohos_sdk_test.shD06-May-20252.3 KiB9564

utils.pyD06-May-202511.6 KiB373277

readme.md

1
2# SDK Test Suite Overview
3This test suite can perform end-to-end SDK test verification. There are two ways to perform verification:
41) Verify if abc and sourcemap are generated in the compiled package.
52) Verify if the application of the compiled package can run normally (this feature is under development).
6
7## SDK Test Suite Usage
8### Operating Environment
9The SDK test automation script runs on Windows, Python 3.9 and above.
10
11### Test Preparation
121. Ensure that Deveco is installed in the environment.
132. Install dependencies of the test suite:
14`python3 -m pip install pyyaml validators requests httpx tqdm json5 pandas pillow`
153. Modify the configuration file `config.yaml`, configure relevant parameters of Deveco and the test application. Detailed configuration instructions can be found in the file.
164. To add a new test application, you can modify the config.yaml configuration file and add the configuration under the “haps” field. You can refer to the existing application configurations for guidance.
17
18### Running Tests
19The test suite supports daily and manual runs.
20The test functionality requires a connection to the RK board for testing. You can control whether to execute the test by using the "runHap" parameter.
21
22#### Daily Run
23The daily run will download the SDK built on the current day from the trunk branch and use it to perform a full test verification.
24Run the command: `python entry.py`
25
26#### Manual Run
27Run the command: `python run.py`
28By default, it will run all the test items. Optional parameters can be viewed through `--help`.

readme_zh.md

1# SDK测试套说明
2本测试套可以执行端到端的SDK测试验证。
3验证方式有两种:
41) 验证编译打包的产物中,abc和sourcemap是否生成。
52) 验证编译产物的应用是否可以正常运行(该功能在开发中)。
6
7## SDK测试套使用
8### 运行环境
9SDK测试自动化脚本运行环境为windows,python3.9及以上。
10### 测试准备
111. 确保环境中已安装Deveco
122. 安装测试套依赖:
13`python3 -m pip install pyyaml validators requests httpx tqdm json5 pandas pillow`
143. 修改配置文件config.yaml,配置Deveco和测试应用的相关参数。各项配置说明详见该文件。
154. 如需新增测试应用,可修改配置文件config.yaml,在haps字段中增加配置。可参考配置中的已有应用进行配置。
16
17### 测试运行
18测试套支持daily运行和手动单次运行。
19运行测试功能需要连接rk板进行测试,可通过参数runHap控制是否执行该测试
20#### daily运行
21daily运行将从主干分支下载当日构建的sdk,使用该sdk进行全量的测试项验证:
22执行命令:
23`python entry.py`
24#### 手动运行
25执行命令:
26`python run.py`
27不带参数默认跑全量的测试项。可选参数可通过`--help`查看。