From 560100d98127cacf8e53ab511e51a28f935ee62a Mon Sep 17 00:00:00 2001 From: chengxingzhen Date: Tue, 27 Sep 2022 12:01:51 +0800 Subject: [PATCH] =?UTF-8?q?XTS=E5=A4=B1=E8=B4=A5=E7=94=A8=E4=BE=8B?= =?UTF-8?q?=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chengxingzhen --- .../formfuzztest/entry/src/main/ets/test/getParam.ets | 8 +++++++- .../entry/src/main/ets/test/FmsStress.test.ets | 10 ++++++++++ .../src/main/ets/test/FmsUpdateRefreshForm.test.ets | 10 ++++++++++ 3 files changed, 27 insertions(+), 1 deletion(-) diff --git a/ability/ability_runtime/formmanager/fa/formsystemtest_ets/formfuzztest/entry/src/main/ets/test/getParam.ets b/ability/ability_runtime/formmanager/fa/formsystemtest_ets/formfuzztest/entry/src/main/ets/test/getParam.ets index 29c726720..819d27fcf 100644 --- a/ability/ability_runtime/formmanager/fa/formsystemtest_ets/formfuzztest/entry/src/main/ets/test/getParam.ets +++ b/ability/ability_runtime/formmanager/fa/formsystemtest_ets/formfuzztest/entry/src/main/ets/test/getParam.ets @@ -148,7 +148,13 @@ const functionTest = function () { const getFuzzData = (datatype: string) => { switch (datatype) { case 'ARRAY': - return arrayTest(); + let array1 = arrayTest(); + let array2 = abc.join("") + if (isNaN(Number(array2))) { + return array1; + } else { + getFuzzData(DATA_TYPE_LIST[0]); + } case 'BOOLEAN': return booleanTest(); case 'FUNCTION': diff --git a/ability/ability_runtime/formmanager/fa/formsystemtest_ets/formstresstest/entry/src/main/ets/test/FmsStress.test.ets b/ability/ability_runtime/formmanager/fa/formsystemtest_ets/formstresstest/entry/src/main/ets/test/FmsStress.test.ets index e23601167..4c1f78b33 100644 --- a/ability/ability_runtime/formmanager/fa/formsystemtest_ets/formstresstest/entry/src/main/ets/test/FmsStress.test.ets +++ b/ability/ability_runtime/formmanager/fa/formsystemtest_ets/formstresstest/entry/src/main/ets/test/FmsStress.test.ets @@ -69,6 +69,16 @@ export default function test() { commonEvent.unsubscribe(onAcquiredEventSubscriber, () => unsubscribeCallback("afterEach unsubscribe onAcquiredEventSubscriber")); commonEvent.unsubscribe(onSupplyEventSubscriber, () => unsubscribeCallback("afterEach unsubscribe onSupplyEventSubscriber")); await sleep(1000); + await featureAbility.startAbility({ + want: { + bundleName: "com.ohos.st.formstresstest", + abilityName: "com.ohos.st.formstresstest.MainAbility" + } + }).then((data) => { + console.log("FmsStressTest startAbility data: " + JSON.stringify(data)); + }).catch((err) => { + console.log("FmsStressTest startAbility err: " + JSON.stringify(err)); + }) }) const subscribeDeletedEvent = (tcNumber, expectedDeletedFormAmount, done) => { diff --git a/ability/ability_runtime/formmanager/fa/formsystemtest_ets/formupdatefreshtest/entry/src/main/ets/test/FmsUpdateRefreshForm.test.ets b/ability/ability_runtime/formmanager/fa/formsystemtest_ets/formupdatefreshtest/entry/src/main/ets/test/FmsUpdateRefreshForm.test.ets index 270b01959..2e1c9c888 100644 --- a/ability/ability_runtime/formmanager/fa/formsystemtest_ets/formupdatefreshtest/entry/src/main/ets/test/FmsUpdateRefreshForm.test.ets +++ b/ability/ability_runtime/formmanager/fa/formsystemtest_ets/formupdatefreshtest/entry/src/main/ets/test/FmsUpdateRefreshForm.test.ets @@ -66,6 +66,16 @@ export default function test() { commonEvent.unsubscribe(subscriberOnRefresh, () => unsubscribeCallback("afterEach unsubscribe subscriberOnRefresh")); commonEvent.unsubscribe(subscriberOnRequest, () => unsubscribeCallback("afterEach unsubscribe subscriberOnRequest")); await sleep(1000); + await featureAbility.startAbility({ + want: { + bundleName: "com.ohos.st.formupdaterefreshtest", + abilityName: "com.ohos.st.formupdaterefreshtest.MainAbility" + } + }).then((data) => { + console.log("FmsUpdateRefreshFormTest startAbility data: " + JSON.stringify(data)); + }).catch((err) => { + console.log("FmsUpdateRefreshFormTest startAbility err: " + JSON.stringify(err)); + }) }) /** * @tc.number: FMS_updateForm_0100 -- GitLab