提交 8a7711e3 编写于 作者: C chengxingzhen
上级 5fdaba60
......@@ -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':
......
......@@ -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) => {
......
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册