13af6ab5fSopenharmony_ci# Description
23af6ab5fSopenharmony_ci
33af6ab5fSopenharmony_ci## Purpose
43af6ab5fSopenharmony_ciThis script will get the latest images and xts testcases from dailybuilds, then burn the images on the rk3568 demo board 
53af6ab5fSopenharmony_ciand run the xts testcase on the target to get the test result.
63af6ab5fSopenharmony_ci
73af6ab5fSopenharmony_ci## Usage
83af6ab5fSopenharmony_ci### Running environment
93af6ab5fSopenharmony_ciThis script will be running on windows, python3.7 or above needed.
103af6ab5fSopenharmony_ci### How to work
113af6ab5fSopenharmony_ciDouble click the run.bat or in the cmd condition input the path of run.bat
123af6ab5fSopenharmony_ci### Add xts testcases
133af6ab5fSopenharmony_ciTo 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}
143af6ab5fSopenharmony_ci### Note
153af6ab5fSopenharmony_ci- Only for the first time of running the script will download the burnning tool and need to install the driver for the tool
163af6ab5fSopenharmony_ciby yourself. After the pragram run for a while(downloading the tool), there comes the User Account Control interface.
173af6ab5fSopenharmony_ciClick 'yes' and you will see the driver installation interface as following:
183af6ab5fSopenharmony_ci<br />![](https://gitee.com/huyunhui1/images/raw/build/%E6%8D%95%E8%8E%B7.PNG)
193af6ab5fSopenharmony_ci<br />Click the "驱动卸载" button first and then click the "驱动安装" button, after that close the interface and the program
203af6ab5fSopenharmony_ciwill go on
213af6ab5fSopenharmony_ci- Because the burning tool does not use the relative path as the the storage path of images, the script use the path 'D:\AutoXTSTest'
223af6ab5fSopenharmony_cias the storage path to make it run stably.
233af6ab5fSopenharmony_ci- In rare cases, the rk3568 demo board could not start up normally after burnning, which leads to invalid hdc instructions.
243af6ab5fSopenharmony_ciAt that time, this script will be blocked in next running, you should reboot the rk3568 demo borad to loader mode when next burning.