From 041384fd63b373695cfb84715b609d23f65e5711 Mon Sep 17 00:00:00 2001 From: king_he <6384784@qq.com> Date: Thu, 30 Jun 2022 02:15:26 +0000 Subject: [PATCH] update en/device-dev/subsystems/subsys-xts-guide.md. Signed-off-by: king_he <6384784@qq.com> --- en/device-dev/subsystems/subsys-xts-guide.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/en/device-dev/subsystems/subsys-xts-guide.md b/en/device-dev/subsystems/subsys-xts-guide.md index 3d2ae7acdc..d9ee3223e3 100644 --- a/en/device-dev/subsystems/subsys-xts-guide.md +++ b/en/device-dev/subsystems/subsys-xts-guide.md @@ -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. -- GitLab