• Home
Name Date Size #Lines LOC

..--

get_resource/12-May-2024-190125

autoburn.pyD12-May-20241.6 KiB5731

get_result.pyD12-May-20241.4 KiB4017

readme.mdD12-May-20241.8 KiB2422

readme_zh.mdD12-May-20241.5 KiB1816

run.batD12-May-20242.1 KiB7968

running_modules.txtD12-May-202422 11

readme.md

1# Description
2
3## Purpose
4This script will get the latest images and xts testcases from dailybuilds, then burn the images on the rk3568 demo board
5and run the xts testcase on the target to get the test result.
6
7## Usage
8### Running environment
9This script will be running on windows, python3.7 or above needed.
10### How to work
11Double click the run.bat or in the cmd condition input the path of run.bat
12### Add xts testcases
13To add xts testcases, you need to add module names to the running_modules.txt file. Module names should be splited by ';'. The module names are given in xts system, please refer to [this link]{https://gitee.com/openharmony/xts_acts#%E5%85%A8%E9%87%8F%E7%94%A8%E4%BE%8B%E6%89%A7%E8%A1%8C%E6%8C%87%E5%AF%BC%E9%80%82%E7%94%A8%E4%BA%8E%E5%B0%8F%E5%9E%8B%E7%B3%BB%E7%BB%9F%E6%A0%87%E5%87%86%E7%B3%BB%E7%BB%9F}
14### Note
15- Only for the first time of running the script will download the burnning tool and need to install the driver for the tool
16by yourself. After the pragram run for a while(downloading the tool), there comes the User Account Control interface.
17Click 'yes' and you will see the driver installation interface as following:
18<br />![](https://gitee.com/huyunhui1/images/raw/build/%E6%8D%95%E8%8E%B7.PNG)
19<br />Click the "驱动卸载" button first and then click the "驱动安装" button, after that close the interface and the program
20will go on
21- Because the burning tool does not use the relative path as the the storage path of images, the script use the path 'D:\AutoXTSTest'
22as the storage path to make it run stably.
23- In rare cases, the rk3568 demo board could not start up normally after burnning, which leads to invalid hdc instructions.
24At that time, this script will be blocked in next running, you should reboot the rk3568 demo borad to loader mode when next burning.

readme_zh.md

1# XTS测试自动化脚本说明
2
3## 脚本目的
4XTS测试自动化脚本会自动从每日构建dailybuilds上获取最新dayu200镜像和相关xts用例,烧录镜像到rk3568开发板上并执行相关用例获取测试结果
5
6## 脚本使用
7### 运行环境
8XTS测试自动化脚本运行环境为windows,python3.7及以上
9### 脚本运行
10点击run.bat运行或在cmd中输入run.bat所在路径
11### 添加xts用例
12running_modules.txt文件中添加xts用例模块名,模块名之间用';'分割。xts用例模块参考[xts仓说明](https://gitee.com/openharmony/xts_acts#%E5%85%A8%E9%87%8F%E7%94%A8%E4%BE%8B%E6%89%A7%E8%A1%8C%E6%8C%87%E5%AF%BC%E9%80%82%E7%94%A8%E4%BA%8E%E5%B0%8F%E5%9E%8B%E7%B3%BB%E7%BB%9F%E6%A0%87%E5%87%86%E7%B3%BB%E7%BB%9F)
13### 注意事项
14- 初次使用会下载镜像烧录工具并需要手动安装驱动,在程序运行一小段时间(下载烧录工具)之后会跳出用户账户控制界面,点击“确认”后进入驱动安装界面,如下:
15<br />![](https://gitee.com/huyunhui1/images/raw/build/%E6%8D%95%E8%8E%B7.PNG)
16<br />先后点击“驱动卸载”和“驱动安装”即可,关闭界面程序继续运行。
17- 由于镜像烧录工具运行时没有使用相对路径作为配置,因此此脚本使用了D:\AutoXTSTest目录作为镜像存放目录以保证运行稳定性。
18- 部分情况下,镜像烧录后开发板开机异常,与PC设备连接断掉,会导致hdc命令失效,脚本运行卡住,此时需要在镜像烧录时手动进入loader模式