131c75014Sopenharmony_ci# X Test Suite<a name="EN-US_TOPIC_0000001132537809"></a>
231c75014Sopenharmony_ci
331c75014Sopenharmony_ci-   [Introduction](#section465982318513)
431c75014Sopenharmony_ci-   [Devices](#section125090457443)
531c75014Sopenharmony_ci-   [Directory Structure](#section161941989596)
631c75014Sopenharmony_ci-   [Constraints](#section119744591305)
731c75014Sopenharmony_ci-   [Usage Guidelines](#section137768191623)
831c75014Sopenharmony_ci-   [Test Case Development Guidelines](#section3695134065513)
931c75014Sopenharmony_ci    -   [C-based Test Case Development and Compilation \(for Mini-System Devices\)](#section1551164914237)
1031c75014Sopenharmony_ci    -   [C-based Test Case Execution \(for Mini-System Devices\)](#section10100701294)
1131c75014Sopenharmony_ci    -   [C++-based Test Case Development and Compilation \(for Small-, Standard-, and Large-System Devices\)](#section5714177113113)
1231c75014Sopenharmony_ci    -   [C++-based Test Case Execution \(for Small-, Standard-, and Large-System Devices\)](#section42281924184)
1331c75014Sopenharmony_ci
1431c75014Sopenharmony_ci-   [Repositories Involved](#section1371113476307)
1531c75014Sopenharmony_ci
1631c75014Sopenharmony_ci## Introduction<a name="section465982318513"></a>
1731c75014Sopenharmony_ci
1831c75014Sopenharmony_ciThe X test suite \(XTS\) subsystem contains a set of OpenHarmony certification test suites, including the currently supported application compatibility test suite \(ACTS\) and the device compatibility test suite \(DCTS\) that will be supported in the future.
1931c75014Sopenharmony_ci
2031c75014Sopenharmony_ciThis subsystem contains the ACTS and  **tools**  software package.
2131c75014Sopenharmony_ci
2231c75014Sopenharmony_ci-   The  **acts**  directory stores the source code and configuration files of ACTS test cases. The ACTS helps device vendors detect the software incompatibility as early as possible and ensures that the software is compatible to OpenHarmony during the entire development process.
2331c75014Sopenharmony_ci-   The  **tools**  software package stores the test case development framework related to  **acts**.
2431c75014Sopenharmony_ci
2531c75014Sopenharmony_ci## Devices<a name="section125090457443"></a>
2631c75014Sopenharmony_ci
2731c75014Sopenharmony_ciOpenHarmony supports the following device types:
2831c75014Sopenharmony_ci
2931c75014Sopenharmony_ci-   **Mini-System Devices \(reference memory ≥ 128 KB\)**
3031c75014Sopenharmony_ci
3131c75014Sopenharmony_ci    Such devices are equipped with MCU processors such as ARM Cortex-M and 32-bit RISC-V. They provide rich short-distance connection and peripheral bus access capabilities. Typical products include LinkIoT module devices and sensors in the smart home field. The LinkIoT module is usually used for smart Internet of Things \(IoT\) devices as the hardware module that implements connectivity functions. In the smart home field, the LinkIoT module is integrated into devices by vendors. For example, a LinkIoT module provides WLAN/Bluetooth access and data connection, and it usually communicates with the chip of smart home devices via a universal asynchronous receiver-transmitter \(UART\) or general-purpose input/output \(GPIO\) interface.
3231c75014Sopenharmony_ci
3331c75014Sopenharmony_ci-   **Small-System Devices \(reference memory ≥ 1 MB\)**
3431c75014Sopenharmony_ci
3531c75014Sopenharmony_ci    Such devices are equipped with application processors such as ARM Cortex-A. They provide higher security capabilities, standard graphics framework, and multimedia capabilities for video encoding and decoding. Typical products include IP cameras, electronic cat eyes, and routers in the smart home field, as well as event data recorders \(EDRs\) in the smart travel field.
3631c75014Sopenharmony_ci
3731c75014Sopenharmony_ci
3831c75014Sopenharmony_ci-   **Standard-System Devices \(reference memory ≥ 128 MB\)**
3931c75014Sopenharmony_ci
4031c75014Sopenharmony_ci    Such devices are equipped with application processors such as ARM Cortex-A. They provide a complete application framework supporting enhanced interaction, 3D GPU, hardware composer, diverse components, and rich animations. Typical products include high-end refrigerator displays.
4131c75014Sopenharmony_ci
4231c75014Sopenharmony_ci-   **Large-System Devices \(reference memory ≥ 1 GB\)**
4331c75014Sopenharmony_ci
4431c75014Sopenharmony_ci    Such devices are equipped with application processors such as ARM Cortex-A and provide a complete compatible application framework. Typical products include smart TVs and smart watches.
4531c75014Sopenharmony_ci
4631c75014Sopenharmony_ci
4731c75014Sopenharmony_ci## Directory Structure<a name="section161941989596"></a>
4831c75014Sopenharmony_ci
4931c75014Sopenharmony_ci```
5031c75014Sopenharmony_ci/test/xts
5131c75014Sopenharmony_ci├── acts                 # Test code
5231c75014Sopenharmony_ci│   └── subsystem       # Source code of subsystem test cases for large-system devices
5331c75014Sopenharmony_ci│   └── subsystem_lite  # Source code of subsystems test cases for mini- and small-system devices
5431c75014Sopenharmony_ci│   └── BUILD.gn        # Build configuration of test cases for large-system devices
5531c75014Sopenharmony_ci│   └── build_lite      # Build configuration of test cases for mini-and small-system devices
5631c75014Sopenharmony_ci│       └── build_lite    # Build configuration
5731c75014Sopenharmony_ci└── tools                # Test tool code
5831c75014Sopenharmony_ci```
5931c75014Sopenharmony_ci
6031c75014Sopenharmony_ci## Constraints<a name="section119744591305"></a>
6131c75014Sopenharmony_ci
6231c75014Sopenharmony_ciTest cases for mini system devices must be developed based on C, and those for small system devices must be developed based on C++.
6331c75014Sopenharmony_ci
6431c75014Sopenharmony_ci## Usage Guidelines<a name="section137768191623"></a>
6531c75014Sopenharmony_ci
6631c75014Sopenharmony_ci**Table  1**  Test case levels
6731c75014Sopenharmony_ci
6831c75014Sopenharmony_ci<a name="table12856113719456"></a>
6931c75014Sopenharmony_ci<table><thead align="left"><tr id="row88561737114517"><th class="cellrowborder" valign="top" width="33.333333333333336%" id="mcps1.2.4.1.1"><p id="p54711456452"><a name="p54711456452"></a><a name="p54711456452"></a>Level</p>
7031c75014Sopenharmony_ci</th>
7131c75014Sopenharmony_ci<th class="cellrowborder" valign="top" width="33.283328332833285%" id="mcps1.2.4.1.2"><p id="p114834544518"><a name="p114834544518"></a><a name="p114834544518"></a>Definition</p>
7231c75014Sopenharmony_ci</th>
7331c75014Sopenharmony_ci<th class="cellrowborder" valign="top" width="33.383338333833386%" id="mcps1.2.4.1.3"><p id="p348154574518"><a name="p348154574518"></a><a name="p348154574518"></a>Scope</p>
7431c75014Sopenharmony_ci</th>
7531c75014Sopenharmony_ci</tr>
7631c75014Sopenharmony_ci</thead>
7731c75014Sopenharmony_ci<tbody><tr id="row78561137134514"><td class="cellrowborder" valign="top" width="33.333333333333336%" headers="mcps1.2.4.1.1 "><p id="p17481345124512"><a name="p17481345124512"></a><a name="p17481345124512"></a>Level0</p>
7831c75014Sopenharmony_ci</td>
7931c75014Sopenharmony_ci<td class="cellrowborder" valign="top" width="33.283328332833285%" headers="mcps1.2.4.1.2 "><p id="p1548945204514"><a name="p1548945204514"></a><a name="p1548945204514"></a>Smoke</p>
8031c75014Sopenharmony_ci</td>
8131c75014Sopenharmony_ci<td class="cellrowborder" valign="top" width="33.383338333833386%" headers="mcps1.2.4.1.3 "><p id="p174824517456"><a name="p174824517456"></a><a name="p174824517456"></a>Verifies basic functionalities of key features and basic DFX attributes with the most common input. The pass result indicates that the features are runnable.</p>
8231c75014Sopenharmony_ci</td>
8331c75014Sopenharmony_ci</tr>
8431c75014Sopenharmony_ci<tr id="row28563372451"><td class="cellrowborder" valign="top" width="33.333333333333336%" headers="mcps1.2.4.1.1 "><p id="p448445144512"><a name="p448445144512"></a><a name="p448445144512"></a>Level1</p>
8531c75014Sopenharmony_ci</td>
8631c75014Sopenharmony_ci<td class="cellrowborder" valign="top" width="33.283328332833285%" headers="mcps1.2.4.1.2 "><p id="p44813452452"><a name="p44813452452"></a><a name="p44813452452"></a>Basic</p>
8731c75014Sopenharmony_ci</td>
8831c75014Sopenharmony_ci<td class="cellrowborder" valign="top" width="33.383338333833386%" headers="mcps1.2.4.1.3 "><p id="p648184584514"><a name="p648184584514"></a><a name="p648184584514"></a>Verifies basic functionalities of key features and basic DFX attributes with common input. The pass result indicates that the features are testable.</p>
8931c75014Sopenharmony_ci</td>
9031c75014Sopenharmony_ci</tr>
9131c75014Sopenharmony_ci<tr id="row12856137204514"><td class="cellrowborder" valign="top" width="33.333333333333336%" headers="mcps1.2.4.1.1 "><p id="p164834520453"><a name="p164834520453"></a><a name="p164834520453"></a>Level2</p>
9231c75014Sopenharmony_ci</td>
9331c75014Sopenharmony_ci<td class="cellrowborder" valign="top" width="33.283328332833285%" headers="mcps1.2.4.1.2 "><p id="p148245184511"><a name="p148245184511"></a><a name="p148245184511"></a>Major</p>
9431c75014Sopenharmony_ci</td>
9531c75014Sopenharmony_ci<td class="cellrowborder" valign="top" width="33.383338333833386%" headers="mcps1.2.4.1.3 "><p id="p348945124510"><a name="p348945124510"></a><a name="p348945124510"></a>Verifies basic functionalities of key features and basic DFX attributes with common input and errors. The pass result indicates that the features are functional and ready for beta testing.</p>
9631c75014Sopenharmony_ci</td>
9731c75014Sopenharmony_ci</tr>
9831c75014Sopenharmony_ci<tr id="row48571137204514"><td class="cellrowborder" valign="top" width="33.333333333333336%" headers="mcps1.2.4.1.1 "><p id="p7481545184513"><a name="p7481545184513"></a><a name="p7481545184513"></a>Level3</p>
9931c75014Sopenharmony_ci</td>
10031c75014Sopenharmony_ci<td class="cellrowborder" valign="top" width="33.283328332833285%" headers="mcps1.2.4.1.2 "><p id="p1748184514455"><a name="p1748184514455"></a><a name="p1748184514455"></a>Regular</p>
10131c75014Sopenharmony_ci</td>
10231c75014Sopenharmony_ci<td class="cellrowborder" valign="top" width="33.383338333833386%" headers="mcps1.2.4.1.3 "><p id="p8481245104519"><a name="p8481245104519"></a><a name="p8481245104519"></a>Verifies functionalities of all key features, and all DFX attributes with common and uncommon input combinations or normal and abnormal preset conditions.</p>
10331c75014Sopenharmony_ci</td>
10431c75014Sopenharmony_ci</tr>
10531c75014Sopenharmony_ci<tr id="row14857133712451"><td class="cellrowborder" valign="top" width="33.333333333333336%" headers="mcps1.2.4.1.1 "><p id="p1248144515456"><a name="p1248144515456"></a><a name="p1248144515456"></a>Level4</p>
10631c75014Sopenharmony_ci</td>
10731c75014Sopenharmony_ci<td class="cellrowborder" valign="top" width="33.283328332833285%" headers="mcps1.2.4.1.2 "><p id="p94804514519"><a name="p94804514519"></a><a name="p94804514519"></a>Rare</p>
10831c75014Sopenharmony_ci</td>
10931c75014Sopenharmony_ci<td class="cellrowborder" valign="top" width="33.383338333833386%" headers="mcps1.2.4.1.3 "><p id="p1248445164516"><a name="p1248445164516"></a><a name="p1248445164516"></a>Verifies functionalities of key features under extremely abnormal presets and uncommon input combinations.</p>
11031c75014Sopenharmony_ci</td>
11131c75014Sopenharmony_ci</tr>
11231c75014Sopenharmony_ci</tbody>
11331c75014Sopenharmony_ci</table>
11431c75014Sopenharmony_ci
11531c75014Sopenharmony_ci**Table  2**  Test case granularities
11631c75014Sopenharmony_ci
11731c75014Sopenharmony_ci<a name="table1690733521014"></a>
11831c75014Sopenharmony_ci<table><thead align="left"><tr id="row9907143516105"><th class="cellrowborder" valign="top" width="19.591959195919593%" id="mcps1.2.4.1.1"><p id="p1141312416102"><a name="p1141312416102"></a><a name="p1141312416102"></a>Test Scale</p>
11931c75014Sopenharmony_ci</th>
12031c75014Sopenharmony_ci<th class="cellrowborder" valign="top" width="35.17351735173517%" id="mcps1.2.4.1.2"><p id="p34131416109"><a name="p34131416109"></a><a name="p34131416109"></a>Test Objects</p>
12131c75014Sopenharmony_ci</th>
12231c75014Sopenharmony_ci<th class="cellrowborder" valign="top" width="45.23452345234523%" id="mcps1.2.4.1.3"><p id="p12413141171010"><a name="p12413141171010"></a><a name="p12413141171010"></a>Test Environment</p>
12331c75014Sopenharmony_ci</th>
12431c75014Sopenharmony_ci</tr>
12531c75014Sopenharmony_ci</thead>
12631c75014Sopenharmony_ci<tbody><tr id="row2907335181017"><td class="cellrowborder" valign="top" width="19.591959195919593%" headers="mcps1.2.4.1.1 "><p id="p6414134117109"><a name="p6414134117109"></a><a name="p6414134117109"></a>LargeTest</p>
12731c75014Sopenharmony_ci</td>
12831c75014Sopenharmony_ci<td class="cellrowborder" valign="top" width="35.17351735173517%" headers="mcps1.2.4.1.2 "><p id="p20414104113101"><a name="p20414104113101"></a><a name="p20414104113101"></a>Service functionalities, all-scenario features, and mechanical power environment (MPE) and scenario-level DFX</p>
12931c75014Sopenharmony_ci</td>
13031c75014Sopenharmony_ci<td class="cellrowborder" valign="top" width="45.23452345234523%" headers="mcps1.2.4.1.3 "><p id="p5414841121013"><a name="p5414841121013"></a><a name="p5414841121013"></a>Devices close to real devices</p>
13131c75014Sopenharmony_ci</td>
13231c75014Sopenharmony_ci</tr>
13331c75014Sopenharmony_ci<tr id="row10907635131015"><td class="cellrowborder" valign="top" width="19.591959195919593%" headers="mcps1.2.4.1.1 "><p id="p19414134117104"><a name="p19414134117104"></a><a name="p19414134117104"></a>MediumTest</p>
13431c75014Sopenharmony_ci</td>
13531c75014Sopenharmony_ci<td class="cellrowborder" valign="top" width="35.17351735173517%" headers="mcps1.2.4.1.2 "><p id="p114141241141018"><a name="p114141241141018"></a><a name="p114141241141018"></a>Modules, subsystem functionalities after module integration, and DFX</p>
13631c75014Sopenharmony_ci</td>
13731c75014Sopenharmony_ci<td class="cellrowborder" valign="top" width="45.23452345234523%" headers="mcps1.2.4.1.3 "><p id="p14414941111015"><a name="p14414941111015"></a><a name="p14414941111015"></a>Single device that is actually used. You can perform message simulation, but do not mock functions.</p>
13831c75014Sopenharmony_ci</td>
13931c75014Sopenharmony_ci</tr>
14031c75014Sopenharmony_ci<tr id="row1990713353100"><td class="cellrowborder" valign="top" width="19.591959195919593%" headers="mcps1.2.4.1.1 "><p id="p641414110109"><a name="p641414110109"></a><a name="p641414110109"></a>SmallTest</p>
14131c75014Sopenharmony_ci</td>
14231c75014Sopenharmony_ci<td class="cellrowborder" valign="top" width="35.17351735173517%" headers="mcps1.2.4.1.2 "><p id="p54141541181018"><a name="p54141541181018"></a><a name="p54141541181018"></a>Modules, classes, and functions</p>
14331c75014Sopenharmony_ci</td>
14431c75014Sopenharmony_ci<td class="cellrowborder" valign="top" width="45.23452345234523%" headers="mcps1.2.4.1.3 "><p id="p1841494131013"><a name="p1841494131013"></a><a name="p1841494131013"></a>Local PC. Use a large number of mocks to replace dependencies with other modules.</p>
14531c75014Sopenharmony_ci</td>
14631c75014Sopenharmony_ci</tr>
14731c75014Sopenharmony_ci</tbody>
14831c75014Sopenharmony_ci</table>
14931c75014Sopenharmony_ci
15031c75014Sopenharmony_ci**Table  3**  Test types
15131c75014Sopenharmony_ci
15231c75014Sopenharmony_ci<a name="table18811230124619"></a>
15331c75014Sopenharmony_ci<table><thead align="left"><tr id="row48163019466"><th class="cellrowborder" valign="top" width="19.040000000000003%" id="mcps1.2.3.1.1"><p id="p1791784418465"><a name="p1791784418465"></a><a name="p1791784418465"></a>Type</p>
15431c75014Sopenharmony_ci</th>
15531c75014Sopenharmony_ci<th class="cellrowborder" valign="top" width="80.96%" id="mcps1.2.3.1.2"><p id="p2917164444614"><a name="p2917164444614"></a><a name="p2917164444614"></a>Definition</p>
15631c75014Sopenharmony_ci</th>
15731c75014Sopenharmony_ci</tr>
15831c75014Sopenharmony_ci</thead>
15931c75014Sopenharmony_ci<tbody><tr id="row682630104615"><td class="cellrowborder" valign="top" width="19.040000000000003%" headers="mcps1.2.3.1.1 "><p id="p1091784414469"><a name="p1091784414469"></a><a name="p1091784414469"></a>Function</p>
16031c75014Sopenharmony_ci</td>
16131c75014Sopenharmony_ci<td class="cellrowborder" valign="top" width="80.96%" headers="mcps1.2.3.1.2 "><p id="p16917344104618"><a name="p16917344104618"></a><a name="p16917344104618"></a>Tests the correctness of both service and platform functionalities provided by the tested object for end users or developers.</p>
16231c75014Sopenharmony_ci</td>
16331c75014Sopenharmony_ci</tr>
16431c75014Sopenharmony_ci<tr id="row1821930154611"><td class="cellrowborder" valign="top" width="19.040000000000003%" headers="mcps1.2.3.1.1 "><p id="p591714474612"><a name="p591714474612"></a><a name="p591714474612"></a>Performance</p>
16531c75014Sopenharmony_ci</td>
16631c75014Sopenharmony_ci<td class="cellrowborder" valign="top" width="80.96%" headers="mcps1.2.3.1.2 "><p id="p15917154410463"><a name="p15917154410463"></a><a name="p15917154410463"></a>Tests the processing capability of the tested object under specific preset conditions and load models. The processing capability is measured by the service volume that can be processed in a unit time, for example, call per second, frame per second, or event processing volume per second.</p>
16731c75014Sopenharmony_ci</td>
16831c75014Sopenharmony_ci</tr>
16931c75014Sopenharmony_ci<tr id="row13821030104616"><td class="cellrowborder" valign="top" width="19.040000000000003%" headers="mcps1.2.3.1.1 "><p id="p691711440467"><a name="p691711440467"></a><a name="p691711440467"></a>Power</p>
17031c75014Sopenharmony_ci</td>
17131c75014Sopenharmony_ci<td class="cellrowborder" valign="top" width="80.96%" headers="mcps1.2.3.1.2 "><p id="p159171544104616"><a name="p159171544104616"></a><a name="p159171544104616"></a>Tests the power consumption of the tested object in a certain period of time under specific preset conditions and load models.</p>
17231c75014Sopenharmony_ci</td>
17331c75014Sopenharmony_ci</tr>
17431c75014Sopenharmony_ci<tr id="row6821330114618"><td class="cellrowborder" valign="top" width="19.040000000000003%" headers="mcps1.2.3.1.1 "><p id="p13917164454612"><a name="p13917164454612"></a><a name="p13917164454612"></a>Reliability</p>
17531c75014Sopenharmony_ci</td>
17631c75014Sopenharmony_ci<td class="cellrowborder" valign="top" width="80.96%" headers="mcps1.2.3.1.2 "><p id="p11917194416465"><a name="p11917194416465"></a><a name="p11917194416465"></a>Tests the service performance of the tested object under common and uncommon input conditions, or specified service volume pressure and long-term continuous running pressure. The test covers stability, pressure handling, fault injection, and Monkey test times.</p>
17731c75014Sopenharmony_ci</td>
17831c75014Sopenharmony_ci</tr>
17931c75014Sopenharmony_ci<tr id="row11821930184612"><td class="cellrowborder" valign="top" width="19.040000000000003%" headers="mcps1.2.3.1.1 "><p id="p1691774474618"><a name="p1691774474618"></a><a name="p1691774474618"></a>Security</p>
18031c75014Sopenharmony_ci</td>
18131c75014Sopenharmony_ci<td class="cellrowborder" valign="top" width="80.96%" headers="mcps1.2.3.1.2 "><a name="ul112421652121513"></a><a name="ul112421652121513"></a><ul id="ul112421652121513"><li>Tests the capability of defending against security threats, including but not limited to unauthorized access, use, disclosure, damage, modification, and destruction, to ensure information confidentiality, integrity, and availability.</li><li>Tests the privacy protection capability to ensure that the collection, use, retention, disclosure, and disposal of users' private data comply with laws and regulations.</li><li>Tests the compliance with various security specifications, such as security design, security requirements, and security certification of the Ministry of Industry and Information Technology (MIIT).</li></ul>
18231c75014Sopenharmony_ci</td>
18331c75014Sopenharmony_ci</tr>
18431c75014Sopenharmony_ci<tr id="row16825307467"><td class="cellrowborder" valign="top" width="19.040000000000003%" headers="mcps1.2.3.1.1 "><p id="p129188444462"><a name="p129188444462"></a><a name="p129188444462"></a>Global</p>
18531c75014Sopenharmony_ci</td>
18631c75014Sopenharmony_ci<td class="cellrowborder" valign="top" width="80.96%" headers="mcps1.2.3.1.2 "><p id="p179186444465"><a name="p179186444465"></a><a name="p179186444465"></a>Tests the internationalized data and localization capabilities of the tested object, including multi-language display, various input/output habits, time formats, and regional features, such as currency, time, and culture taboos.</p>
18731c75014Sopenharmony_ci</td>
18831c75014Sopenharmony_ci</tr>
18931c75014Sopenharmony_ci<tr id="row08211308464"><td class="cellrowborder" valign="top" width="19.040000000000003%" headers="mcps1.2.3.1.1 "><p id="p191814447465"><a name="p191814447465"></a><a name="p191814447465"></a>Compatibility</p>
19031c75014Sopenharmony_ci</td>
19131c75014Sopenharmony_ci<td class="cellrowborder" valign="top" width="80.96%" headers="mcps1.2.3.1.2 "><a name="ul186961827111612"></a><a name="ul186961827111612"></a><ul id="ul186961827111612"><li>Tests backward compatibility of an application with its own data, the forward and backward compatibility with the system, and the compatibility with different user data, such as audio file content of the player and smart SMS messages.</li><li>Tests system backward compatibility with its own data and the compatibility of common applications in the ecosystem.</li><li>Tests software compatibility with related hardware.</li></ul>
19231c75014Sopenharmony_ci</td>
19331c75014Sopenharmony_ci</tr>
19431c75014Sopenharmony_ci<tr id="row1782730124618"><td class="cellrowborder" valign="top" width="19.040000000000003%" headers="mcps1.2.3.1.1 "><p id="p13918144134614"><a name="p13918144134614"></a><a name="p13918144134614"></a>User</p>
19531c75014Sopenharmony_ci</td>
19631c75014Sopenharmony_ci<td class="cellrowborder" valign="top" width="80.96%" headers="mcps1.2.3.1.2 "><p id="p1291844494611"><a name="p1291844494611"></a><a name="p1291844494611"></a>Tests user experience of the object in real user scenarios. All conclusions and comments should come from the users, which are all subjective evaluation in this case.</p>
19731c75014Sopenharmony_ci</td>
19831c75014Sopenharmony_ci</tr>
19931c75014Sopenharmony_ci<tr id="row58243024617"><td class="cellrowborder" valign="top" width="19.040000000000003%" headers="mcps1.2.3.1.1 "><p id="p1291884474614"><a name="p1291884474614"></a><a name="p1291884474614"></a>Standard</p>
20031c75014Sopenharmony_ci</td>
20131c75014Sopenharmony_ci<td class="cellrowborder" valign="top" width="80.96%" headers="mcps1.2.3.1.2 "><p id="p0918124424614"><a name="p0918124424614"></a><a name="p0918124424614"></a>Tests the compliance with industry and company-specific standards, protocols, and specifications. The standards here do not include any security standards that should be classified into the security test.</p>
20231c75014Sopenharmony_ci</td>
20331c75014Sopenharmony_ci</tr>
20431c75014Sopenharmony_ci<tr id="row382830124619"><td class="cellrowborder" valign="top" width="19.040000000000003%" headers="mcps1.2.3.1.1 "><p id="p119181044164619"><a name="p119181044164619"></a><a name="p119181044164619"></a>Safety</p>
20531c75014Sopenharmony_ci</td>
20631c75014Sopenharmony_ci<td class="cellrowborder" valign="top" width="80.96%" headers="mcps1.2.3.1.2 "><p id="p1291818443468"><a name="p1291818443468"></a><a name="p1291818443468"></a>Tests the safety property of the tested object to avoid possible hazards to personal safety, health, and the object itself.</p>
20731c75014Sopenharmony_ci</td>
20831c75014Sopenharmony_ci</tr>
20931c75014Sopenharmony_ci<tr id="row1083153014465"><td class="cellrowborder" valign="top" width="19.040000000000003%" headers="mcps1.2.3.1.1 "><p id="p39187441469"><a name="p39187441469"></a><a name="p39187441469"></a>Resilience</p>
21031c75014Sopenharmony_ci</td>
21131c75014Sopenharmony_ci<td class="cellrowborder" valign="top" width="80.96%" headers="mcps1.2.3.1.2 "><p id="p891815444462"><a name="p891815444462"></a><a name="p891815444462"></a>Tests the resilience property of the tested object to ensure that it can withstand and maintain the defined running status (including downgrading) when being attacked, and recover from and adapt defense to the attacks to approach mission assurance.</p>
21231c75014Sopenharmony_ci</td>
21331c75014Sopenharmony_ci</tr>
21431c75014Sopenharmony_ci</tbody>
21531c75014Sopenharmony_ci</table>
21631c75014Sopenharmony_ci
21731c75014Sopenharmony_ci## Test Case Development Guidelines<a name="section3695134065513"></a>
21831c75014Sopenharmony_ci
21931c75014Sopenharmony_ciYou should select the appropriate programming language and your target test framework to develop test cases for the devices to test.
22031c75014Sopenharmony_ci
22131c75014Sopenharmony_ci**Table  4**  Test frameworks and test case languages for different devices
22231c75014Sopenharmony_ci
22331c75014Sopenharmony_ci<a name="table4418343171415"></a>
22431c75014Sopenharmony_ci<table><thead align="left"><tr id="row34183435145"><th class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.2.4.1.1"><p id="p941874311148"><a name="p941874311148"></a><a name="p941874311148"></a>Device Type</p>
22531c75014Sopenharmony_ci</th>
22631c75014Sopenharmony_ci<th class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.2.4.1.2"><p id="p1841804341413"><a name="p1841804341413"></a><a name="p1841804341413"></a>Test Framework</p>
22731c75014Sopenharmony_ci</th>
22831c75014Sopenharmony_ci<th class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.2.4.1.3"><p id="p2418104311148"><a name="p2418104311148"></a><a name="p2418104311148"></a>Language</p>
22931c75014Sopenharmony_ci</th>
23031c75014Sopenharmony_ci</tr>
23131c75014Sopenharmony_ci</thead>
23231c75014Sopenharmony_ci<tbody><tr id="row8419164319148"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.2.4.1.1 "><p id="p7419194312143"><a name="p7419194312143"></a><a name="p7419194312143"></a>Mini-system devices</p>
23331c75014Sopenharmony_ci</td>
23431c75014Sopenharmony_ci<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.2.4.1.2 "><p id="p10419124312145"><a name="p10419124312145"></a><a name="p10419124312145"></a>HCTest</p>
23531c75014Sopenharmony_ci</td>
23631c75014Sopenharmony_ci<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.2.4.1.3 "><p id="p11419643191410"><a name="p11419643191410"></a><a name="p11419643191410"></a>C</p>
23731c75014Sopenharmony_ci</td>
23831c75014Sopenharmony_ci</tr>
23931c75014Sopenharmony_ci<tr id="row141915438147"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.2.4.1.1 "><p id="p441911436141"><a name="p441911436141"></a><a name="p441911436141"></a>Small-system devices</p>
24031c75014Sopenharmony_ci</td>
24131c75014Sopenharmony_ci<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.2.4.1.2 "><p id="p541916432142"><a name="p541916432142"></a><a name="p541916432142"></a>HCPPTest</p>
24231c75014Sopenharmony_ci</td>
24331c75014Sopenharmony_ci<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.2.4.1.3 "><p id="p54191643131416"><a name="p54191643131416"></a><a name="p54191643131416"></a>C++</p>
24431c75014Sopenharmony_ci</td>
24531c75014Sopenharmony_ci</tr>
24631c75014Sopenharmony_ci<tr id="row4419134341417"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.2.4.1.1 "><p id="p341964313143"><a name="p341964313143"></a><a name="p341964313143"></a>Standard-system devices</p>
24731c75014Sopenharmony_ci</td>
24831c75014Sopenharmony_ci<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.2.4.1.2 "><p id="p10419443171416"><a name="p10419443171416"></a><a name="p10419443171416"></a>HJUnit and HCPPTest</p>
24931c75014Sopenharmony_ci</td>
25031c75014Sopenharmony_ci<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.2.4.1.3 "><p id="p9419143181414"><a name="p9419143181414"></a><a name="p9419143181414"></a>Java and C++</p>
25131c75014Sopenharmony_ci</td>
25231c75014Sopenharmony_ci</tr>
25331c75014Sopenharmony_ci<tr id="row42451815115215"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.2.4.1.1 "><p id="p324511515528"><a name="p324511515528"></a><a name="p324511515528"></a>Large-system devices</p>
25431c75014Sopenharmony_ci</td>
25531c75014Sopenharmony_ci<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.2.4.1.2 "><p id="p724516151520"><a name="p724516151520"></a><a name="p724516151520"></a>HJUnit and HCPPTest</p>
25631c75014Sopenharmony_ci</td>
25731c75014Sopenharmony_ci<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.2.4.1.3 "><p id="p748417474533"><a name="p748417474533"></a><a name="p748417474533"></a>Java and C++</p>
25831c75014Sopenharmony_ci</td>
25931c75014Sopenharmony_ci</tr>
26031c75014Sopenharmony_ci</tbody>
26131c75014Sopenharmony_ci</table>
26231c75014Sopenharmony_ci
26331c75014Sopenharmony_ci### C-based Test Case Development and Compilation \(for Mini-System Devices\)<a name="section1551164914237"></a>
26431c75014Sopenharmony_ci
26531c75014Sopenharmony_ci**Developing test cases for mini-system devices**
26631c75014Sopenharmony_ci
26731c75014Sopenharmony_ciThe HCTest framework is used to support test cases developed with the C language. HCTest is enhanced and adapted based on the open-source test framework Unity.
26831c75014Sopenharmony_ci
26931c75014Sopenharmony_ci1.  Access the  **test/xts/acts**  repository where the test cases will be stored.
27031c75014Sopenharmony_ci
27131c75014Sopenharmony_ci    ```
27231c75014Sopenharmony_ci    ├── acts
27331c75014Sopenharmony_ci    │ └──subsystem_lite
27431c75014Sopenharmony_ci    │ │ └── module_hal
27531c75014Sopenharmony_ci    │ │ │ └── BUILD.gn
27631c75014Sopenharmony_ci    │ │ │ └── src
27731c75014Sopenharmony_ci    │ └──build_lite
27831c75014Sopenharmony_ci    │ │ └── BUILD.gn
27931c75014Sopenharmony_ci    ```
28031c75014Sopenharmony_ci
28131c75014Sopenharmony_ci2.  Write the test case in the  **src**  directory.
28231c75014Sopenharmony_ci
28331c75014Sopenharmony_ci    1 Import the test framework header file.
28431c75014Sopenharmony_ci
28531c75014Sopenharmony_ci    ```
28631c75014Sopenharmony_ci    #include "hctest.h"
28731c75014Sopenharmony_ci    ```
28831c75014Sopenharmony_ci
28931c75014Sopenharmony_ci    2. Use the  **LITE\_TEST\_SUIT**  macro to define names of the subsystem, module, and test suite.
29031c75014Sopenharmony_ci
29131c75014Sopenharmony_ci    ```
29231c75014Sopenharmony_ci    /**  
29331c75014Sopenharmony_ci    * @brief  Registers a test suite named IntTestSuite.
29431c75014Sopenharmony_ci    * @param  test Subsystem name
29531c75014Sopenharmony_ci    * @param  example Module name
29631c75014Sopenharmony_ci    * @param  IntTestSuite Test suite name
29731c75014Sopenharmony_ci    */
29831c75014Sopenharmony_ci    LITE_TEST_SUIT(test, example, IntTestSuite);
29931c75014Sopenharmony_ci    ```
30031c75014Sopenharmony_ci
30131c75014Sopenharmony_ci    3. Define Setup and TearDown.
30231c75014Sopenharmony_ci
30331c75014Sopenharmony_ci    Format: Test suite name+Setup, Test suite name+TearDown.
30431c75014Sopenharmony_ci
30531c75014Sopenharmony_ci    The Setup and TearDown functions must exist, but function bodies can be empty.
30631c75014Sopenharmony_ci
30731c75014Sopenharmony_ci    4. Use the  **LITE\_TEST\_CASE**  macro to write the test case.
30831c75014Sopenharmony_ci
30931c75014Sopenharmony_ci    Three parameters are involved: test suite name, test case name, and test case properties \(including type, granularity, and level\).
31031c75014Sopenharmony_ci
31131c75014Sopenharmony_ci    ```
31231c75014Sopenharmony_ci    LITE_TEST_CASE(IntTestSuite, TestCase001, Function | MediumTest | Level1) 
31331c75014Sopenharmony_ci    {  
31431c75014Sopenharmony_ci      // Do something 
31531c75014Sopenharmony_ci    };
31631c75014Sopenharmony_ci    ```
31731c75014Sopenharmony_ci
31831c75014Sopenharmony_ci    5. Use the  **RUN\_TEST\_SUITE**  macro to register the test suite.
31931c75014Sopenharmony_ci
32031c75014Sopenharmony_ci    ```
32131c75014Sopenharmony_ci    RUN_TEST_SUITE(IntTestSuite);
32231c75014Sopenharmony_ci    ```
32331c75014Sopenharmony_ci
32431c75014Sopenharmony_ci3.  Create the configuration file \(**BUILD.gn**\) of the test module.
32531c75014Sopenharmony_ci
32631c75014Sopenharmony_ci    Create a  **BUILD.gn**  \(example\) compilation file in each test module directory. Specify the name of the compiled static library and its dependent header file and library in the compilation file. The format is as follows:
32731c75014Sopenharmony_ci
32831c75014Sopenharmony_ci    ```
32931c75014Sopenharmony_ci    import("//test/xts/tools/lite/build/suite_lite.gni")
33031c75014Sopenharmony_ci    hctest_suite("ActsDemoTest") {
33131c75014Sopenharmony_ci        suite_name = "acts"
33231c75014Sopenharmony_ci        sources = [
33331c75014Sopenharmony_ci            "src/test_demo.c",
33431c75014Sopenharmony_ci        ]
33531c75014Sopenharmony_ci        include_dirs = [ ]
33631c75014Sopenharmony_ci        cflags = [ "-Wno-error" ]
33731c75014Sopenharmony_ci    }
33831c75014Sopenharmony_ci    ```
33931c75014Sopenharmony_ci
34031c75014Sopenharmony_ci4.  Add compilation options to the  **BUILD.gn**  file in the  **acts**  directory.
34131c75014Sopenharmony_ci
34231c75014Sopenharmony_ci    You need to add the test module to the  **test/xts/acts/build\_lite/BUILD.gn**  script in the  **acts**  directory.
34331c75014Sopenharmony_ci
34431c75014Sopenharmony_ci    ```
34531c75014Sopenharmony_ci    lite_component("acts") {  
34631c75014Sopenharmony_ci        ...
34731c75014Sopenharmony_ci        if(board_name == "liteos_m") {
34831c75014Sopenharmony_ci            features += [    
34931c75014Sopenharmony_ci                ...
35031c75014Sopenharmony_ci                "//xts/acts/subsystem_lite/module_hal:ActsDemoTest"
35131c75014Sopenharmony_ci            ]    
35231c75014Sopenharmony_ci        }
35331c75014Sopenharmony_ci    }
35431c75014Sopenharmony_ci    ```
35531c75014Sopenharmony_ci
35631c75014Sopenharmony_ci5.  Run compilation commands.
35731c75014Sopenharmony_ci
35831c75014Sopenharmony_ci    Test suites are compiled along with version compilation. The ACTS is compiled together with the debug version.
35931c75014Sopenharmony_ci
36031c75014Sopenharmony_ci    >![](figures/icon-note.gif) **NOTE:** 
36131c75014Sopenharmony_ci    >The ACTS compiles middleware as a static library, which will be linked to the image.
36231c75014Sopenharmony_ci
36331c75014Sopenharmony_ci
36431c75014Sopenharmony_ci### C-based Test Case Execution \(for Mini-System Devices\)<a name="section10100701294"></a>
36531c75014Sopenharmony_ci
36631c75014Sopenharmony_ci**Executing test cases for mini-system devices**
36731c75014Sopenharmony_ci
36831c75014Sopenharmony_ciBurn the image into the development board.
36931c75014Sopenharmony_ci
37031c75014Sopenharmony_ci**Executing the test**
37131c75014Sopenharmony_ci
37231c75014Sopenharmony_ci1.  Use a serial port tool to log in to the development board and save information about the serial port.
37331c75014Sopenharmony_ci2.  Restart the device and view serial port logs.
37431c75014Sopenharmony_ci
37531c75014Sopenharmony_ci**Analyzing the test result**
37631c75014Sopenharmony_ci
37731c75014Sopenharmony_ciView the serial port logs, whose format is as follows:
37831c75014Sopenharmony_ci
37931c75014Sopenharmony_ciThe log for each test suite starts with  **Start to run test suite:**  and ends with  **xx Tests xx Failures xx Ignored**.
38031c75014Sopenharmony_ci
38131c75014Sopenharmony_ci### C++-based Test Case Development and Compilation \(for Small-, Standard-, and Large-System Devices\)<a name="section5714177113113"></a>
38231c75014Sopenharmony_ci
38331c75014Sopenharmony_ci**Developing test cases for small-system devices**
38431c75014Sopenharmony_ci
38531c75014Sopenharmony_ciThe HCPPTest framework is enhanced and adapted based on the open-source framework Googletest.
38631c75014Sopenharmony_ci
38731c75014Sopenharmony_ci1.  Access the  **test/xts/acts**  repository where the test cases will be stored.
38831c75014Sopenharmony_ci
38931c75014Sopenharmony_ci    ```
39031c75014Sopenharmony_ci    ├── acts
39131c75014Sopenharmony_ci    │ └──subsystem_lite
39231c75014Sopenharmony_ci    │ │ └── module_posix
39331c75014Sopenharmony_ci    │ │ │ └── BUILD.gn
39431c75014Sopenharmony_ci    │ │ │ └── src
39531c75014Sopenharmony_ci    │ └──build_lite
39631c75014Sopenharmony_ci    │ │ └── BUILD.gn
39731c75014Sopenharmony_ci    ```
39831c75014Sopenharmony_ci
39931c75014Sopenharmony_ci2.  Write the test case in the  **src**  directory.
40031c75014Sopenharmony_ci
40131c75014Sopenharmony_ci    1. Import the test framework header file.
40231c75014Sopenharmony_ci
40331c75014Sopenharmony_ci    The following statement includes  **gtest.h**.
40431c75014Sopenharmony_ci
40531c75014Sopenharmony_ci    ```
40631c75014Sopenharmony_ci    #include "gtest/gtest.h"
40731c75014Sopenharmony_ci    ```
40831c75014Sopenharmony_ci
40931c75014Sopenharmony_ci    2. Define Setup and TearDown.
41031c75014Sopenharmony_ci
41131c75014Sopenharmony_ci    ```
41231c75014Sopenharmony_ci    using namespace std;
41331c75014Sopenharmony_ci    using namespace testing::ext;
41431c75014Sopenharmony_ci    class TestSuite: public testing::Test {
41531c75014Sopenharmony_ci    protected:
41631c75014Sopenharmony_ci    // Preset action of the test suite, which is executed before the first test case
41731c75014Sopenharmony_ci    static void SetUpTestCase(void){
41831c75014Sopenharmony_ci    }
41931c75014Sopenharmony_ci    // Test suite cleanup action, which is executed after the last test case
42031c75014Sopenharmony_ci    static void TearDownTestCase(void){
42131c75014Sopenharmony_ci    }
42231c75014Sopenharmony_ci    // Preset action of the test case
42331c75014Sopenharmony_ci    virtual void SetUp()
42431c75014Sopenharmony_ci    {
42531c75014Sopenharmony_ci    }
42631c75014Sopenharmony_ci    // Cleanup action of the test case
42731c75014Sopenharmony_ci    virtual void TearDown()
42831c75014Sopenharmony_ci    {
42931c75014Sopenharmony_ci    }
43031c75014Sopenharmony_ci    };
43131c75014Sopenharmony_ci    ```
43231c75014Sopenharmony_ci
43331c75014Sopenharmony_ci    3. Use the  **HWTEST**  or  **HWTEST\_F**  macro to write the test case.
43431c75014Sopenharmony_ci
43531c75014Sopenharmony_ci    **HWTEST**: definition of common test cases, including the test suite name, test case name, and case annotation.
43631c75014Sopenharmony_ci
43731c75014Sopenharmony_ci    **HWTEST\_F**: definition of SetUp and TearDown test cases, including the test suite name, test case name, and case annotation.
43831c75014Sopenharmony_ci
43931c75014Sopenharmony_ci    Three parameters are involved: test suite name, test case name, and test case properties \(including type, granularity, and level\).
44031c75014Sopenharmony_ci
44131c75014Sopenharmony_ci    ```
44231c75014Sopenharmony_ci    HWTEST_F(TestSuite, TestCase_0001, Function | MediumTest | Level1) {
44331c75014Sopenharmony_ci    // Do something
44431c75014Sopenharmony_ci    }
44531c75014Sopenharmony_ci    ```
44631c75014Sopenharmony_ci
44731c75014Sopenharmony_ci3.  Create a configuration file \(**BUILD.gn**\) of the test module.
44831c75014Sopenharmony_ci
44931c75014Sopenharmony_ci    Create a  **BUILD.gn**  compilation file in each test module directory. Specify the name of the compiled static library and its dependent header file and library in the compilation file. Each test module is independently compiled into a  **.bin**  executable file, which can be directly mounted to the development board for testing.
45031c75014Sopenharmony_ci
45131c75014Sopenharmony_ci    Example:
45231c75014Sopenharmony_ci
45331c75014Sopenharmony_ci    ```
45431c75014Sopenharmony_ci    import("//test/xts/tools/lite/build/suite_lite.gni")
45531c75014Sopenharmony_ci    hcpptest_suite("ActsDemoTest") {
45631c75014Sopenharmony_ci        suite_name = "acts"
45731c75014Sopenharmony_ci        sources = [
45831c75014Sopenharmony_ci            "src/TestDemo.cpp"
45931c75014Sopenharmony_ci        ]
46031c75014Sopenharmony_ci    
46131c75014Sopenharmony_ci        include_dirs = [
46231c75014Sopenharmony_ci            "src",
46331c75014Sopenharmony_ci            ...
46431c75014Sopenharmony_ci        ]
46531c75014Sopenharmony_ci        deps = [
46631c75014Sopenharmony_ci            ...
46731c75014Sopenharmony_ci        ]
46831c75014Sopenharmony_ci        cflags = [ "-Wno-error" ]
46931c75014Sopenharmony_ci    }
47031c75014Sopenharmony_ci    
47131c75014Sopenharmony_ci    ```
47231c75014Sopenharmony_ci
47331c75014Sopenharmony_ci4.  Add compilation options to the  **BUILD.gn**  file in the  **acts**  directory.
47431c75014Sopenharmony_ci
47531c75014Sopenharmony_ci    Add the test module to the  **test/xts/acts/build\_lite/BUILD.gn**  script in the  **acts**  directory.
47631c75014Sopenharmony_ci
47731c75014Sopenharmony_ci    ```
47831c75014Sopenharmony_ci     lite_component("acts") {  
47931c75014Sopenharmony_ci    ...
48031c75014Sopenharmony_ci    else if(board_name == "liteos_a") {
48131c75014Sopenharmony_ci            features += [
48231c75014Sopenharmony_ci                ...
48331c75014Sopenharmony_ci                "//xts/acts/subsystem_lite/module_posix:ActsDemoTest"
48431c75014Sopenharmony_ci            ]
48531c75014Sopenharmony_ci        }
48631c75014Sopenharmony_ci    }
48731c75014Sopenharmony_ci    ```
48831c75014Sopenharmony_ci
48931c75014Sopenharmony_ci5.  Run compilation commands.
49031c75014Sopenharmony_ci
49131c75014Sopenharmony_ci    Test suites are compiled along with the version compilation. The ACTS is compiled together with the debug version.
49231c75014Sopenharmony_ci
49331c75014Sopenharmony_ci    >![](figures/icon-note.gif) **NOTE:** 
49431c75014Sopenharmony_ci    >The ACTS for a small system device is independently compiled to an executable file \(.bin\) and archived in the  **suites\\acts**  directory of the compilation result.
49531c75014Sopenharmony_ci
49631c75014Sopenharmony_ci
49731c75014Sopenharmony_ci### C++-based Test Case Execution \(for Small-, Standard-, and Large-System Devices\)<a name="section42281924184"></a>
49831c75014Sopenharmony_ci
49931c75014Sopenharmony_ci**Executing test cases for small-system devices**
50031c75014Sopenharmony_ci
50131c75014Sopenharmony_ciCurrently, test cases are shared by the NFS and mounted to the development board for execution.
50231c75014Sopenharmony_ci
50331c75014Sopenharmony_ci**Setting up the environment**
50431c75014Sopenharmony_ci
50531c75014Sopenharmony_ci1.  Use a network cable or wireless network to connect the development board to your PC.
50631c75014Sopenharmony_ci2.  Configure the IP address, subnet mask, and gateway for the development board. Ensure that the development board and the PC are in the same network segment.
50731c75014Sopenharmony_ci3.  Install and register the NFS server on the PC and start the NFS service.
50831c75014Sopenharmony_ci4.  Run the  **mount**  command for the development board to ensure that the development board can access NFS shared files on the PC.
50931c75014Sopenharmony_ci
51031c75014Sopenharmony_ci    Format:  **mount** _NFS server IP address_**:/**_NFS shared directory_ **/**_development board directory_ **nfs**
51131c75014Sopenharmony_ci
51231c75014Sopenharmony_ci    Example:
51331c75014Sopenharmony_ci
51431c75014Sopenharmony_ci    ```
51531c75014Sopenharmony_ci    mount 192.168.1.10:/nfs /nfs nfs
51631c75014Sopenharmony_ci    ```
51731c75014Sopenharmony_ci
51831c75014Sopenharmony_ci
51931c75014Sopenharmony_ci**Executing test cases**
52031c75014Sopenharmony_ci
52131c75014Sopenharmony_ciExecute  **ActsDemoTest.bin**  to trigger test case execution, and analyze serial port logs generated after the execution is complete.
52231c75014Sopenharmony_ci
52331c75014Sopenharmony_ci## Repositories Involved<a name="section1371113476307"></a>
52431c75014Sopenharmony_ci
52531c75014Sopenharmony_ci[X Test Suite](https://gitee.com/openharmony/docs/blob/master/en/readme/xts.md)
52631c75014Sopenharmony_ci
52731c75014Sopenharmony_ci[xts\_acts](https://gitee.com/openharmony/xts_acts/blob/master/README.md)
52831c75014Sopenharmony_ci
52931c75014Sopenharmony_ci**xts\_tools**
53031c75014Sopenharmony_ci
531