SDK Test Suite Overview
This test suite can perform end-to-end SDK test verification. There are two ways to perform verification:
- Verify if abc and sourcemap are generated in the compiled package.
- Verify if the application of the compiled package can run normally (this feature is under development).
SDK Test Suite Usage
Operating Environment
The SDK test automation script runs on Windows, Python 3.9 and above.
Test Preparation
- Ensure that Deveco is installed in the environment.
- Install dependencies of the test suite:
python3 -m pip install pyyaml validators requests httpx tqdm json5 pandas pillow - Modify the configuration file
config.yaml, configure relevant parameters of Deveco and the test application. Detailed configuration instructions can be found in the file. - 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.
Running Tests
The test suite supports daily and manual runs. The test functionality requires a connection to the RK board for testing. You can control whether to execute the test by using the "runHap" parameter.
Daily Run
The daily run will download the SDK built on the current day from the trunk branch and use it to perform a full test verification.
Run the command: python entry.py
Manual Run
Run the command: python run.py
By default, it will run all the test items. Optional parameters can be viewed through --help.