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`.