diff --git a/notification/ans_standard/publish_test/badgedisplayed/localcandisplay/BUILD.gn b/notification/ans_standard/publish_test/badgedisplayed/localcandisplay/BUILD.gn index ad536ceced2eccffdd7f2d61dccf1d4c7860dd19..5f0111f09d1e99cc4e3c235d8a31a042c23c8c8e 100644 --- a/notification/ans_standard/publish_test/badgedisplayed/localcandisplay/BUILD.gn +++ b/notification/ans_standard/publish_test/badgedisplayed/localcandisplay/BUILD.gn @@ -13,7 +13,7 @@ import("//test/xts/tools/build/suite.gni") -ohos_js_hap_suite("localcandisplay") { +ohos_hap("localcandisplay") { hap_profile = "./entry/src/main/config.json" hap_name = "localcandisplay" subsystem_name = XTS_SUITENAME diff --git a/notification/ans_standard/publish_test/getactive/getactiveotherapp/BUILD.gn b/notification/ans_standard/publish_test/getactive/getactiveotherapp/BUILD.gn index 1f5a87d3d7d0c976e4cdf88810e97b7cb8514fff..97b5cbba64b985f4b61dc45d2f58a637726d5de1 100644 --- a/notification/ans_standard/publish_test/getactive/getactiveotherapp/BUILD.gn +++ b/notification/ans_standard/publish_test/getactive/getactiveotherapp/BUILD.gn @@ -13,14 +13,18 @@ import("//test/xts/tools/build/suite.gni") -ohos_js_hap_suite("ActsAnsAllActiveTestTwo") { +ohos_hap("ActsAnsAllActiveTestTwo") { hap_profile = "./entry/src/main/config.json" + hap_name = "ActsAnsAllActiveTestTwo" + subsystem_name = XTS_SUITENAME + final_hap_path = + "${SUITES_OUTPUT_ROOT}/${XTS_SUITENAME}/testcases/${hap_name}.hap" + testonly = true deps = [ ":hjs_demo_js_assets", ":hjs_demo_resources", ] certificate_profile = "./signature/openharmony_sx.p7b" - hap_name = "ActsAnsAllActiveTestTwo" } ohos_js_assets("hjs_demo_js_assets") { source_dir = "./entry/src/main/js/default" diff --git a/notification/ans_standard/publish_test/getactive/getactiveotherapp/Test.json b/notification/ans_standard/publish_test/getactive/getactiveotherapp/Test.json index 924311fb1ec4b39606d52f4dc60164e66d6bcfb5..b9f4122fbf466755fe279be1082dcf138af90789 100644 --- a/notification/ans_standard/publish_test/getactive/getactiveotherapp/Test.json +++ b/notification/ans_standard/publish_test/getactive/getactiveotherapp/Test.json @@ -1,18 +1,3 @@ { "description": "Configuration for hjunit demo Tests", - "driver": { - "type": "JSUnitTest", - "test-timeout": "60000", - "package": "com.example.activeotherapp", - "shell-timeout": "60000" - }, - "kits": [ - { - "test-file-name": [ - "ActsAnsAllActiveTestTwo.hap" - ], - "type": "AppInstallKit", - "cleanup-apps": true - } - ] -} +} \ No newline at end of file