• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1### 注意事项
2
3#### 1 上库工程迁移
4
50528模板前工程迁移,网址:https://gitee.com/openharmony/xts_acts/tree/OpenHarmony_feature_20250328/README_migrate0528.md
6
70603,0604模板前工程迁移,网址:https://gitee.com/openharmony/xts_acts/tree/OpenHarmony_feature_20250328/README_migrate0604.md
8
9#### 2 hypium文件夹,本地验证时需下载存放,上库时需要将hypium文件夹删除掉
10
11#### 3 工程中使用syscap.json,需要将module.json5中红圈改成如图所示
12
13![输入图片说明](/figures/images1.2/8990023F-CB7E-4661-B9EA-E582A0242D5A.png)
14
15#### 4 工程中使用app.json5中的bundleName字段不能使用com.example.helloworld,bundleName位置如下图
16
17![输入图片说明](/figures/images1.2/5C1C0DA1-3208-4CD5-B31D-D52A40E618D0.png)
18
19#### 5 目录命名
20
21注意事项下图所示:(3)既是工程目录名,其中(1)(2)属于子系统名和组件名,不能修改
22
23![输入图片说明](/figures/images1.2/122733EE-A6A0-4BEF-8C59-F66BAD0739EF.png)
24
25|arkts类型|示例1|示例2|示例3|
26|-|-|-|-|
27|1.1|ActsAmsUsersThirdTest|ace_web_page_saving_dev_three|actscreatemodulecontexttest|
28|1.2|ActsAmsUsersThirdTest[***Static***]()|ace_web_page_saving_dev_three_[***static***]()|actscreatemodulecontexttest[***static***]()|
29|互操作|ActsAmsUsersThirdTest[***Interop***]()|ace_web_page_saving_dev_three_[***interop***]()|actscreatemodulecontexttest[***interop***]()|
30
31#### 7 bundlename命名
32
33![输入图片说明](/figures/images1.2/5C1C0DA1-3208-4CD5-B31D-D52A40E618D0.png)
34
35|arkts类型|示例|
36|-|-|
37|1.1|com.open.harmony.actsacewebpagesavtest|
38|1.2|com.open.harmony.actsacewebpagesavtest.[***static***]()|
39|互操作|com.open.harmony.actsacewebpagesavtest.[***interop***]()|
40
41#### 8 hap_name/targetname/ohos_js_app_static_suite("目标名")命名
42
43![输入图片说明](/figures/images1.2/40A6E21A-582A-4E7F-8AC8-14CB35B1F15B.png)
44
45> 注意:因CodeCheck使用Acts.*Test校验hap_name,所以static不能附加在尾部,否则会被门禁拦截
46
47
48|arkts类型|示例|
49|-|-|
50|1.1|ActsFaMyApplication1Test|
51|1.2|ActsFaMyApplication1[***Static***]()Test|
52|互操作|ActsFaMyApplication1[***Interop***]()Test|
53
54#### 9 用例名命名
55
56![用例名图片](/figures/images1.2/778404BE-B5B2-4D1C-D9AF-29255DFE7542.png)
57
58|arkts类型|示例|
59|-|-|
60|1.1|abilityConstant_WindowMode_static_0100|
61|1.2|abilityConstant_WindowMode_static_[***static***]()_0100|
62|1.2|abilityConstant_WindowMode_static_[***interop***]()_0100|
63
64#### 10 由于当前ohosTest不可用,故BUILD.gn文件中test_hap字段需注释
65
66![test_hap图](/figures/images1.2/6EC0A8B3-1ADD-4613-CA9F-17A8CFD89397.png)
67
68#### 11 BUILD.gn必须使用1.2模板名ohos_js_app_static_suite,否则编译环境是1.1
69
70![输入图片说明](/figures/images1.2/91B25DE1-5955-4851-B84E-3E20F8F5B429.png)
71
72注意:part_name = "自己子系统组件名"
73     subsystem_name = "自己子系统名"
74
75#### 12 Test.json中的"module-name"字段当前必须写成 entry
76
77![module_name图](/figures/images1.2/AC2489E4-1156-43FC-ED74-0FD9D65AADF7.png)
78
79#### 13 Test.json中的"test-file-name" 需要和BUILD.gn中的hap_name名字相同
80
81![test_file_name图](/figures/images1.2/C04F87D7-BB2C-4BE9-815F-84C9C925EEF3.png)
82
83![hap_name2图](/figures/images1.2/E5F26AE2-57F1-437E-A605-C1FD2AD39CF9.png)
84
85