未验证 提交 805e6757 编写于 作者: O openharmony_ci 提交者: Gitee

!2488 XTS用例挑单

Merge pull request !2488 from jiangwensai/cherry-pick-1647347067
......@@ -21,6 +21,8 @@ var abilityNameList = [
"com.ohos.launcher.MainAbility",
"com.ohos.callui.ServiceAbility",
"com.example.SimulateFeatureAbilityFir",
"com.example.SimulateFeatureAbilitySed",
"com.example.VerifyIoThirdAbility",
"com.example.actsamstestfifthscene.MainAbility"
]
......@@ -33,6 +35,7 @@ var bundleNameList = [
"com.ohos.telephonydataability",
"com.ohos.contactsdataability",
"com.ix.simulate.feature",
"com.ix.verify.io",
"com.example.actsamstestfifthscene"
]
......@@ -119,7 +122,7 @@ describe('ActsAmsTestFifthScene', function () {
' + error.code + ', data length [' + data.length + ']');
}
);
setTimeout(done(), 5000);
done();
});
function timeout(done) {
......@@ -163,7 +166,6 @@ describe('ActsAmsTestFifthScene', function () {
expect(info[i].uid).assertLarger(0);
}
done();
setTimeout(timeout, 5000);
})
/*
......@@ -186,7 +188,6 @@ describe('ActsAmsTestFifthScene', function () {
});
console.info('Acts_Ams_test_1100 moveMissionToFront data [' + info + ']');
done();
setTimeout(timeout, 5000);
})
/*
......@@ -196,9 +197,7 @@ describe('ActsAmsTestFifthScene', function () {
*/
it('Acts_Ams_test_0300', 0, async function (done) {
var maxnum = 10;
var data = await missionManager.getMissionInfos("", maxnum).catch(err => {
console.log('Acts_Ams_test_0300 getMissionInfos failed: ' + err);
});
await missionManager.getMissionInfos("", maxnum).then(data => {
console.info('Acts_Ams_test_0300 getMissionInfos data ' + JSON.stringify(data));
expect(Array.isArray(data)).assertEqual(true);
expect(data.length).assertEqual(4);
......@@ -218,9 +217,12 @@ describe('ActsAmsTestFifthScene', function () {
expect(typeof (data[i].label)).assertEqual("string");
expect(typeof (data[i].iconPath)).assertEqual("string");
console.info('Acts_Ams_test_0300 getMissionInfos data[' + i + "], end..");
}
done();
setTimeout(timeout, 5000);
}).catch(err => {
console.log('Acts_Ams_test_0300 getMissionInfos failed: ' + err);
});
})
/*
......@@ -242,7 +244,6 @@ describe('ActsAmsTestFifthScene', function () {
});
console.info('Acts_Ams_test_0700 clearMission data [' + info + ']');
done();
setTimeout(timeout, 5000);
})
/*
......@@ -251,10 +252,12 @@ describe('ActsAmsTestFifthScene', function () {
* @tc.desc : Kill Processes By BundleName(by Promise)
*/
it('Acts_Ams_test_1500', 0, async function (done) {
var info = await appManager.killProcessesByBundleName('com.ix.simulate.feature');
console.info('Acts_Ams_test_1500 killProcessesByBundleName data [' + info + ']');
expect(info).assertEqual(0);
await appManager.killProcessesByBundleName('com.ix.simulate.feature').then(data => {
console.info('Acts_Ams_test_1500 killProcessesByBundleName data [' + data + ']');
expect(data).assertEqual(0);
done();
setTimeout(timeout, 5000);
}).catch(err => {
console.log('Acts_Ams_test_0700 getMissionInfos failed: ' + err);
});
})
})
\ No newline at end of file
......@@ -99,7 +99,7 @@ describe('ActsAmsTestSecondScene', function () {
' + error.code + ', data length [' + data.length + ']');
}
);
setTimeout(done(), 5000);
done();
});
function timeout(done) {
......@@ -143,7 +143,6 @@ describe('ActsAmsTestSecondScene', function () {
expect(info[i].uid).assertLarger(0);
}
done();
setTimeout(timeout, 5000);
})
/*
......@@ -163,7 +162,6 @@ describe('ActsAmsTestSecondScene', function () {
});
console.info('Acts_Ams_test_2700 moveMissionToFront data [' + info + ']');
done();
setTimeout(timeout, 5000);
})
/*
......@@ -194,7 +192,6 @@ describe('ActsAmsTestSecondScene', function () {
expect(typeof (data[i].iconPath)).assertEqual("string");
}
done();
setTimeout(timeout, 5000);
})
/*
......@@ -214,7 +211,6 @@ describe('ActsAmsTestSecondScene', function () {
});
console.info('Acts_Ams_test_2300 clearMission data [' + info + ']');
done();
setTimeout(timeout, 5000);
})
/*
......@@ -227,6 +223,5 @@ describe('ActsAmsTestSecondScene', function () {
console.info('Acts_Ams_test_3100 killProcessesByBundleName data [' + info + ']');
expect(info).assertEqual(2097215);
done();
setTimeout(timeout, 5000);
})
})
\ No newline at end of file
......@@ -99,7 +99,7 @@ describe('ActsAmsTestThirdScene', function () {
' + error.code + ', data length [' + data.length + ']');
}
);
setTimeout(done(), 5000);
done();
});
function timeout(done) {
......@@ -144,7 +144,6 @@ describe('ActsAmsTestThirdScene', function () {
expect(info[i].uid).assertLarger(0);
}
done();
setTimeout(timeout, 5000);
})
/*
......@@ -176,7 +175,6 @@ describe('ActsAmsTestThirdScene', function () {
expect(typeof (data[i].iconPath)).assertEqual("string");
}
done();
setTimeout(timeout, 5000);
})
/*
......@@ -196,7 +194,6 @@ describe('ActsAmsTestThirdScene', function () {
});
console.info('Acts_Ams_test_3900 clearMission data [' + info + ']');
done();
setTimeout(timeout, 5000);
})
/*
......@@ -216,7 +213,6 @@ describe('ActsAmsTestThirdScene', function () {
});
console.info('Acts_Ams_test_4300 moveMissionToFront data [' + info + ']');
done();
setTimeout(timeout, 5000);
})
/*
......@@ -236,7 +232,6 @@ describe('ActsAmsTestThirdScene', function () {
});
console.info('Acts_Ams_test_4500 clearMission data [' + info + ']');
done();
setTimeout(timeout, 5000);
})
/*
......@@ -249,6 +244,5 @@ describe('ActsAmsTestThirdScene', function () {
console.info('Acts_Ams_test_4700 killProcessesByBundleName data [' + info + ']');
expect(info.code).assertEqual(2097215);
done();
setTimeout(timeout, 5000);
})
})
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册