Name |
Date |
Size |
#Lines |
LOC |
||
---|---|---|---|---|---|---|
.. | - | - | ||||
config.yaml | D | 12-May-2024 | 5.1 KiB | 122 | 81 | |
entry.py | D | 12-May-2024 | 1.5 KiB | 53 | 37 | |
execution.py | D | 12-May-2024 | 38.2 KiB | 1,018 | 810 | |
options.py | D | 12-May-2024 | 5.7 KiB | 165 | 129 | |
preparation.py | D | 12-May-2024 | 5.9 KiB | 171 | 131 | |
readme.md | D | 12-May-2024 | 1.4 KiB | 27 | 21 | |
readme_zh.md | D | 12-May-2024 | 1.1 KiB | 26 | 24 | |
result.py | D | 12-May-2024 | 13.9 KiB | 397 | 315 | |
run.py | D | 12-May-2024 | 1.5 KiB | 55 | 41 | |
utils.py | D | 12-May-2024 | 5.2 KiB | 182 | 141 |
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` 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. 20 21#### Daily Run 22The daily run will download the SDK built on the current day from the trunk branch and use it to perform a full test verification. 23Run the command: `python entry.py` 24 25#### Manual Run 26Run the command: `python run.py` 27By 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` 143. 修改配置文件config.yaml,配置Deveco和测试应用的相关参数。各项配置说明详见该文件。 154. 如需新增测试应用,可修改配置文件config.yaml,在haps字段中增加配置。可参考配置中的已有应用进行配置。 16 17### 测试运行 18测试套支持daily运行和手动单次运行。 19#### daily运行 20daily运行将从主干分支下载当日构建的sdk,使用该sdk进行全量的测试项验证: 21执行命令: 22`python entry.py` 23#### 手动运行 24执行命令: 25`python run.py` 26不带参数默认跑全量的测试项。可选参数可通过`--help`查看。