• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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`.