XTS(X Test Suite)子系统是OpenHarmony生态认证测试套件的集合,当前包括: acts(application compatibility test suite)应用兼容性测试套件,看护北向HAP兼容、OpenHarmony开发API兼容。 hats(Hardware A…
XTS(X Test Suite)子系统是OpenHarmony生态认证测试套件的集合,当前包括:
acts(application compatibility test suite)应用兼容性测试套件,看护北向HAP兼容、OpenHarmony开发API兼容。 hats(Hardware Abstraction Test Suite )硬件抽象测试套,看护HDI层接口。 dcts(Distributed Compatibility Test Suite )分布式兼容性测试套,看护分布式兼容(待上线)
##### 3.2 编写用例样例 ##### 3.2.1 引用测试框架 hctest.h 文件位于。/test/xts/tools/lite/hctest/include/目录,定义了LITE_TEST_SUIT、LITE_TEST_CASE、RUN_TEST_SUITE等测试套件的宏。 `#include "hctest.h"` ##### 3.2.2 定义子系统、模块、测试套件名称 需要3个参数,分别为子系统名称、子系统的部名称、测试套件名称。 /** * @brief register a test suit named "IntTestSuite" * @param test subsystem name * @param example module name * @param IntTestSuite test suit name */ LITE_TEST_SUIT(test, example, IntTestSuite);
1 2 3 4 5
/** * @tc.desc : register a test suite, this suite is used to test basic flow and interface dependency * @param : subsystem name is utils * @param : module name is kvStore * @param : test suit name is KvStoreFuncTestSuite
随版本编译,debug版本编译时会同步编译acts测试套件。acts测试套件编译中间件为静态库,最终链接到版本镜像中 。将版本镜像烧录进开发板。重启设备,查看串口日志。每个测试套件执行以Start to run test suite开始,以xx Tests xx Failures xx Ignored结束。
Application compatibility test suite | acts应用兼容性测试套 hardware abstraction test suite | hats兼容性测试套 Distributed Compatibility Test Suite 待上线 XTS认证用例开发指导 轻量带屏解决方案之恒玄芯片移植案例