Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
041384fd
D
Docs
项目概览
OpenHarmony
/
Docs
大约 2 年 前同步成功
通知
161
Star
293
Fork
28
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Docs
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
041384fd
编写于
6月 30, 2022
作者:
K
king_he
提交者:
Gitee
6月 30, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update en/device-dev/subsystems/subsys-xts-guide.md.
Signed-off-by:
N
king_he
<
6384784@qq.com
>
上级
ce7a128e
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
9 addition
and
9 deletion
+9
-9
en/device-dev/subsystems/subsys-xts-guide.md
en/device-dev/subsystems/subsys-xts-guide.md
+9
-9
未找到文件。
en/device-dev/subsystems/subsys-xts-guide.md
浏览文件 @
041384fd
...
...
@@ -118,7 +118,7 @@ HCTest and the C language are used to develop test cases. HCTest is enhanced and
#include "hctest.h"
```
b) Use the
**
LITE\_TEST\_SUIT**
macro to define names of the subsystem, module, and test suite.
b) Use the
**LITE\_TEST\_SUIT**
macro to define names of the subsystem, module, and test suite.
```
/**
...
...
@@ -136,7 +136,7 @@ HCTest and the C language are used to develop test cases. HCTest is enhanced and
The Setup and TearDown functions must exist, but function bodies can be empty.
d) Use the
**
LITE\_TEST\_CASE**
macro to write the test case.
d) Use the
**LITE\_TEST\_CASE**
macro to write the test case.
Three parameters are involved: test suite name, test case name, and test case properties
\(
including type, granularity, and level
\)
.
...
...
@@ -147,7 +147,7 @@ HCTest and the C language are used to develop test cases. HCTest is enhanced and
};
```
e) Use the
**
RUN\_TEST\_SUITE**
macro to register the test suite.
e) Use the
**RUN\_TEST\_SUITE**
macro to register the test suite.
```
RUN_TEST_SUITE(IntTestSuite);
...
...
@@ -171,7 +171,7 @@ HCTest and the C language are used to develop test cases. HCTest is enhanced and
4.
Add build options to the
**BUILD.gn**
file in the
**acts**
directory.
You need to add the test module to the **
test/xts/acts/build\_lite/BUILD.gn** script in the **acts** directory.
You need to add the test module to the **test/xts/acts/build\_lite/BUILD.gn** script in the **acts** directory.
```
lite_component("acts") {
...
...
@@ -211,7 +211,7 @@ The log for each test suite starts with "Start to run test suite:" and ends wit
### Developing Test Cases in C++ (for Standard and Small Systems)
**Developing Test Cases for Small-System Devices**
\(
for the standard system, see the
**
global/i18n\_standard directory**
.
\)
**Developing Test Cases for Small-System Devices**
\(
for the standard system, see the
**global/i18n\_standard directory**
.
\)
The HCPPTest framework, an enhanced version based on the open-source framework Googletest, is used.
...
...
@@ -261,11 +261,11 @@ The HCPPTest framework, an enhanced version based on the open-source framework G
};
```
c) Use the
**HWTEST**
or
**
HWTEST\_F**
macro to write the test case.
c) Use the
**HWTEST**
or
**HWTEST\_F**
macro to write the test case.
**HWTEST**
: definition of common test cases, including the test suite name, test case name, and case annotation.
**
HWTEST\_F**
: definition of SetUp and TearDown test cases, including the test suite name, test case name, and case annotation.
**HWTEST\_F**
: definition of SetUp and TearDown test cases, including the test suite name, test case name, and case annotation.
Three parameters are involved: test suite name, test case name, and test case properties
\(
including type, granularity, and level
\)
.
...
...
@@ -303,7 +303,7 @@ The HCPPTest framework, an enhanced version based on the open-source framework G
4.
Add build options to the
**BUILD.gn**
file in the
**acts**
directory.
Add the test module to the **
test/xts/acts/build\_lite/BUILD.gn** script in the **acts** directory.
Add the test module to the **test/xts/acts/build\_lite/BUILD.gn** script in the **acts** directory.
```
lite_component("acts") {
...
...
@@ -493,4 +493,4 @@ Install Python 3.7 or a later version on a Windows environment and ensure that t
3.
View the test report.
Go to **acts\\reports\\**, obtain the current execution record, and open **
summary\_report.html** to view the test report.
Go to **acts\\reports\\**, obtain the current execution record, and open **summary\_report.html** to view the test report.
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录