注意事项
1 上库工程迁移
0528模板前工程迁移,网址:https://gitcode.com/openharmony/xts_acts/tree/OpenHarmony_feature_20250328/README_migrate0528.md
0603,0604模板前工程迁移,网址:https://gitcode.com/openharmony/xts_acts/tree/OpenHarmony_feature_20250328/README_migrate0604.md
2 hypium文件夹,本地验证时需下载存放,上库时需要将hypium文件夹删除掉
3 工程中使用syscap.json,需要将module.json5中红圈改成如图所示

4 工程中使用app.json5中的bundleName字段不能使用com.example.helloworld,bundleName位置如下图

5 目录命名
注意事项下图所示:(3)既是工程目录名,其中(1)(2)属于子系统名和组件名,不能修改

| arkts类型 | 示例1 | 示例2 | 示例3 |
|---|---|---|---|
| 1.1 | ActsAmsUsersThirdTest | ace_web_page_saving_dev_three | actscreatemodulecontexttest |
| 1.2 | ActsAmsUsersThirdTestStatic | ace_web_page_saving_dev_three_static | actscreatemodulecontextteststatic |
| 互操作 | ActsAmsUsersThirdTestInterop | ace_web_page_saving_dev_three_interop | actscreatemodulecontexttestinterop |
7 bundlename命名

| arkts类型 | 示例 |
|---|---|
| 1.1 | com.open.harmony.actsacewebpagesavtest |
| 1.2 | com.open.harmony.actsacewebpagesavtest.static |
| 互操作 | com.open.harmony.actsacewebpagesavtest.interop |
8 hap_name/targetname/ohos_js_app_static_suite("目标名")命名

注意:因CodeCheck使用Acts.*Test校验hap_name,所以static不能附加在尾部,否则会被门禁拦截
| arkts类型 | 示例 |
|---|---|
| 1.1 | ActsFaMyApplication1Test |
| 1.2 | ActsFaMyApplication1StaticTest |
| 互操作 | ActsFaMyApplication1InteropTest |
9 用例名命名

| arkts类型 | 示例 |
|---|---|
| 1.1 | abilityConstant_WindowMode_static_0100 |
| 1.2 | abilityConstant_WindowMode_static_static_0100 |
| 1.2 | abilityConstant_WindowMode_static_interop_0100 |
10 由于当前ohosTest不可用,故BUILD.gn文件中test_hap字段需注释

11 BUILD.gn必须使用1.2模板名ohos_js_app_static_suite,否则编译环境是1.1

注意:part_name = "自己子系统组件名" subsystem_name = "自己子系统名"
12 Test.json中的"module-name"字段当前必须写成 entry

13 Test.json中的"test-file-name" 需要和BUILD.gn中的hap_name名字相同

