diff --git a/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/test/ApiCoverAbility.test.ets b/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/test/ApiCoverAbility.test.ets index 100e4e35830fd077053e58d6cc92701a673787d4..b2f281092a7d4980378337df1dde83667c4fb191 100644 --- a/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/test/ApiCoverAbility.test.ets +++ b/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/test/ApiCoverAbility.test.ets @@ -553,16 +553,16 @@ export default function ApiCoverTest() { events: ["Form_StartAbility"] } function UnSubscribeInfoCallback(err, data) { - console.info("SUB_AA_FMS_AcquireFormState_0700 ===UnSubscribeInfoCallback===") + console.info("SUB_AA_FMS_AcquireForm_0100 ===UnSubscribeInfoCallback===") } function SubscribeInfoCallback(err, data) { - console.info("SUB_AA_FMS_AcquireFormState_0700 ===SubscribeInfoCallback===" + JSON.stringify(data)) + console.info("SUB_AA_FMS_AcquireForm_0100 ===SubscribeInfoCallback===" + JSON.stringify(data)) expect(data.parameters["Life"]).assertEqual("onForeground") commonEvent.unsubscribe(subscriber, UnSubscribeInfoCallback) done() } commonEvent.createSubscriber(subscribeInfo, (err, data) => { - console.info("SUB_AA_FMS_AcquireFormState_0700 ===CreateSubscriberCallback===") + console.info("SUB_AA_FMS_AcquireForm_0100 ===CreateSubscriberCallback===") subscriber = data commonEvent.subscribe(subscriber, SubscribeInfoCallback) }) @@ -576,7 +576,7 @@ export default function ApiCoverTest() { } globalThis.abilityContext.startAbility(formWant, (err, data)=>{ if(err.code == 0){ - console.info("SUB_AA_FMS_AcquireFormState_0700 ===acquireFormState=== " + JSON.stringify(data)) + console.info("SUB_AA_FMS_AcquireForm_0100 ===acquireFormState=== " + JSON.stringify(data)) }else{ expect().assertFail() done() diff --git a/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/test/VerificationTest.ets b/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/test/VerificationTest.ets index 6b6c51e6f56ae9876b0d3231e8fec3afe6b445b6..6a1ba6268d3389c2e3f8f9f56c799da7677ca5fc 100644 --- a/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/test/VerificationTest.ets +++ b/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/test/VerificationTest.ets @@ -66,6 +66,8 @@ export default function verificationTest(){ console.info(TAG + "startAbility data = " + JSON.stringify(data)); }).catch((err) => { console.info(TAG + "startAbility err = " + JSON.stringify(err)); + expect().assertFail(); + done(); }); } catch (err) { console.info(TAG + "catch err = " + JSON.stringify(err));