13af6ab5fSopenharmony_ci 23af6ab5fSopenharmony_ci# SDK Test Suite Overview 33af6ab5fSopenharmony_ciThis test suite can perform end-to-end SDK test verification. There are two ways to perform verification: 43af6ab5fSopenharmony_ci1) Verify if abc and sourcemap are generated in the compiled package. 53af6ab5fSopenharmony_ci2) Verify if the application of the compiled package can run normally (this feature is under development). 63af6ab5fSopenharmony_ci 73af6ab5fSopenharmony_ci## SDK Test Suite Usage 83af6ab5fSopenharmony_ci### Operating Environment 93af6ab5fSopenharmony_ciThe SDK test automation script runs on Windows, Python 3.9 and above. 103af6ab5fSopenharmony_ci 113af6ab5fSopenharmony_ci### Test Preparation 123af6ab5fSopenharmony_ci1. Ensure that Deveco is installed in the environment. 133af6ab5fSopenharmony_ci2. Install dependencies of the test suite: 143af6ab5fSopenharmony_ci`python3 -m pip install pyyaml validators requests httpx tqdm json5 pandas pillow` 153af6ab5fSopenharmony_ci3. Modify the configuration file `config.yaml`, configure relevant parameters of Deveco and the test application. Detailed configuration instructions can be found in the file. 163af6ab5fSopenharmony_ci4. 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. 173af6ab5fSopenharmony_ci 183af6ab5fSopenharmony_ci### Running Tests 193af6ab5fSopenharmony_ciThe test suite supports daily and manual runs. 203af6ab5fSopenharmony_ciThe test functionality requires a connection to the RK board for testing. You can control whether to execute the test by using the "runHap" parameter. 213af6ab5fSopenharmony_ci 223af6ab5fSopenharmony_ci#### Daily Run 233af6ab5fSopenharmony_ciThe daily run will download the SDK built on the current day from the trunk branch and use it to perform a full test verification. 243af6ab5fSopenharmony_ciRun the command: `python entry.py` 253af6ab5fSopenharmony_ci 263af6ab5fSopenharmony_ci#### Manual Run 273af6ab5fSopenharmony_ciRun the command: `python run.py` 283af6ab5fSopenharmony_ciBy default, it will run all the test items. Optional parameters can be viewed through `--help`.