diff --git a/commonlibrary/BUILD.gn b/commonlibrary/BUILD.gn index 8c24c3edd61d441e89abd4e85430f1c4587efc6a..8be5c3b97077fd001e78f3b4465b6d113b567da1 100644 --- a/commonlibrary/BUILD.gn +++ b/commonlibrary/BUILD.gn @@ -16,9 +16,9 @@ group("commonlibrary") { testonly = true if (is_standard_system) { deps = [ + "crossplatform/commonlibraryxmletstest:ActsCrossplatformXmlTest", "ets_utils:ets_utils", "toolchain:toolchain", - "crossplatform/commonlibraryxmletstest:xml_ets_test" ] } } diff --git a/commonlibrary/crossplatform/commonlibraryxmletstest/AppScope/app.json b/commonlibrary/crossplatform/commonlibraryxmletstest/AppScope/app.json index b0ff7210aecbb3d7b8cf53c4d4b651b5ac589622..6f58491ddf9cf37996ed945d57fa0afa03cb7b4e 100644 --- a/commonlibrary/crossplatform/commonlibraryxmletstest/AppScope/app.json +++ b/commonlibrary/crossplatform/commonlibraryxmletstest/AppScope/app.json @@ -6,10 +6,10 @@ "versionName": "1.0.0", "icon": "$media:app_icon", "label": "$string:app_name", - "minAPIVersion": 9, - "targetAPIVersion": 9, + "minAPIVersion": 10, + "targetAPIVersion": 10, "car": { - "apiCompatibleVersion": 9, + "apiCompatibleVersion": 10, "singleUser": false } } diff --git a/commonlibrary/crossplatform/commonlibraryxmletstest/BUILD.gn b/commonlibrary/crossplatform/commonlibraryxmletstest/BUILD.gn index 421e401b5ff09db7ffd1b1a939774a629c1f3df8..1e30153a2d877b38d6d156e452c2c9b1f90fd920 100644 --- a/commonlibrary/crossplatform/commonlibraryxmletstest/BUILD.gn +++ b/commonlibrary/crossplatform/commonlibraryxmletstest/BUILD.gn @@ -12,7 +12,7 @@ # limitations under the License. import("//test/xts/tools/build/suite.gni") -ohos_js_hap_suite("xml_ets_test") { +ohos_js_hap_suite("ActsCrossplatformXmlTest") { hap_profile = "src/main/module.json" deps = [ ":windowStage_js_assets", @@ -20,7 +20,7 @@ ohos_js_hap_suite("xml_ets_test") { ] ets2abc = true certificate_profile = "./signature/openharmony_sx.p7b" - hap_name = "xml_ets_test" + hap_name = "ActsCrossplatformXmlTest" subsystem_name = "commonlibrary" part_name = "ets_utils" } @@ -35,4 +35,4 @@ ohos_resources("windowStage_resources") { sources = [ "src/main/resources" ] deps = [ ":windowStage_app_profile" ] hap_profile = "src/main/module.json" -} \ No newline at end of file +} diff --git a/commonlibrary/crossplatform/commonlibraryxmletstest/Test.json b/commonlibrary/crossplatform/commonlibraryxmletstest/Test.json index e81514b0419af8cf0a77bdb3b500b013ec2bc2fa..b15bd1dafb815348e298a12382abda6e2242bf53 100644 --- a/commonlibrary/crossplatform/commonlibraryxmletstest/Test.json +++ b/commonlibrary/crossplatform/commonlibraryxmletstest/Test.json @@ -1,24 +1,16 @@ { "description": "Configuration for hjunit demo Tests", - // 指定设备执行的驱动 "driver": { "type": "OHJSUnitTest", - //test-timeout: 测试hap 整体执行用例的执行时长 "test-timeout": "60000", - //shell-timeout: aa test 拉起命令执行时长 "shell-timeout": "60000", - //bundle-name: 与HAP的app.json 中 bundleName 保持一致 "bundle-name": "ohos.acts.commonlibrary.crossplatform.convertxml.normal", - //module-name: 与HAP的module.json 中"module"字段的 name 保持一致 "module-name": "entry_test" - //testcase-timeout: 测试hap 单条用例的执行时长 - //"testcase-timeout": 5000 }, - // kit的作用主要是为了支撑测试执行活动,在测试前执行预制操作(Setup),在测试后执行清理操作(Teardown) "kits": [ { "test-file-name": [ - "ActsDemoStageTest.hap" + "ActsCrossplatformXmlTest.hap" ], "type": "AppInstallKit", "cleanup-apps": true