提交 560100d9 编写于 作者: C chengxingzhen

XTS失败用例适配

Signed-off-by: Nchengxingzhen <chengxingzhen@huawei.com>
上级 8d1181a7
...@@ -148,7 +148,13 @@ const functionTest = function () { ...@@ -148,7 +148,13 @@ const functionTest = function () {
const getFuzzData = (datatype: string) => { const getFuzzData = (datatype: string) => {
switch (datatype) { switch (datatype) {
case 'ARRAY': 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': case 'BOOLEAN':
return booleanTest(); return booleanTest();
case 'FUNCTION': case 'FUNCTION':
......
...@@ -69,6 +69,16 @@ export default function test() { ...@@ -69,6 +69,16 @@ export default function test() {
commonEvent.unsubscribe(onAcquiredEventSubscriber, () => unsubscribeCallback("afterEach unsubscribe onAcquiredEventSubscriber")); commonEvent.unsubscribe(onAcquiredEventSubscriber, () => unsubscribeCallback("afterEach unsubscribe onAcquiredEventSubscriber"));
commonEvent.unsubscribe(onSupplyEventSubscriber, () => unsubscribeCallback("afterEach unsubscribe onSupplyEventSubscriber")); commonEvent.unsubscribe(onSupplyEventSubscriber, () => unsubscribeCallback("afterEach unsubscribe onSupplyEventSubscriber"));
await sleep(1000); 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) => { const subscribeDeletedEvent = (tcNumber, expectedDeletedFormAmount, done) => {
......
...@@ -66,6 +66,16 @@ export default function test() { ...@@ -66,6 +66,16 @@ export default function test() {
commonEvent.unsubscribe(subscriberOnRefresh, () => unsubscribeCallback("afterEach unsubscribe subscriberOnRefresh")); commonEvent.unsubscribe(subscriberOnRefresh, () => unsubscribeCallback("afterEach unsubscribe subscriberOnRefresh"));
commonEvent.unsubscribe(subscriberOnRequest, () => unsubscribeCallback("afterEach unsubscribe subscriberOnRequest")); commonEvent.unsubscribe(subscriberOnRequest, () => unsubscribeCallback("afterEach unsubscribe subscriberOnRequest"));
await sleep(1000); 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 * @tc.number: FMS_updateForm_0100
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册