未验证 提交 549cb102 编写于 作者: O openharmony_ci 提交者: Gitee

!2049 modify aafwk xts unavilable problem

Merge pull request !2049 from mingxihua/master
...@@ -54,21 +54,8 @@ var bundleNameList = [ ...@@ -54,21 +54,8 @@ var bundleNameList = [
describe('ActsAmsCallBackFifthScene', function () { describe('ActsAmsCallBackFifthScene', function () {
console.info('----ActsAmsCallBackFifthScene----'); console.info('----ActsAmsCallBackFifthScene----');
beforeAll(async function (done) { beforeAll(async function (done) {
await featureAbility.startAbility(
{
want:
{
deviceId: "",
bundleName: "com.ohos.launcher",
abilityName: "com.ohos.launcher.MainAbility",
action: "action1",
parameters:
{},
},
},
);
var maxnum = 10; var maxnum = 10;
var flag = 1; var flag = 1;
var data = await abilitymanager.queryRecentAbilityMissionInfos(maxnum, flag); var data = await abilitymanager.queryRecentAbilityMissionInfos(maxnum, flag);
console.log('queryRecentAbilityMissionInfos data ' + JSON.stringify(data)); console.log('queryRecentAbilityMissionInfos data ' + JSON.stringify(data));
for (var i = 0; i < data.length; i++) { for (var i = 0; i < data.length; i++) {
......
...@@ -51,21 +51,8 @@ var bundleNameList = [ ...@@ -51,21 +51,8 @@ var bundleNameList = [
describe('ActsAmsCallBackFirstScene', function () { describe('ActsAmsCallBackFirstScene', function () {
console.info('----ActsAmsCallBackFirstScene----'); console.info('----ActsAmsCallBackFirstScene----');
beforeAll(async function (done) { beforeAll(async function (done) {
await featureAbility.startAbility(
{
want:
{
deviceId: "",
bundleName: "com.ohos.launcher",
abilityName: "com.ohos.launcher.MainAbility",
action: "action1",
parameters:
{},
},
},
);
var maxnum = 10; var maxnum = 10;
var flag = 1; var flag = 1;
var data = await abilitymanager.queryRecentAbilityMissionInfos(maxnum, flag); var data = await abilitymanager.queryRecentAbilityMissionInfos(maxnum, flag);
console.log('queryRecentAbilityMissionInfos data ' + JSON.stringify(data)); console.log('queryRecentAbilityMissionInfos data ' + JSON.stringify(data));
for (var i = 0; i < data.length; i++) { for (var i = 0; i < data.length; i++) {
......
...@@ -57,21 +57,8 @@ var bundleNameList = [ ...@@ -57,21 +57,8 @@ var bundleNameList = [
describe('ActsAmsCallBackFourthScene', function () { describe('ActsAmsCallBackFourthScene', function () {
console.info('----ActsAmsCallBackFourthScene----'); console.info('----ActsAmsCallBackFourthScene----');
beforeAll(async function (done) { beforeAll(async function (done) {
await featureAbility.startAbility(
{
want:
{
deviceId: "",
bundleName: "com.ohos.launcher",
abilityName: "com.ohos.launcher.MainAbility",
action: "action1",
parameters:
{},
},
},
);
var maxnum = 10; var maxnum = 10;
var flag = 1; var flag = 1;
var data = await abilitymanager.queryRecentAbilityMissionInfos(maxnum, flag); var data = await abilitymanager.queryRecentAbilityMissionInfos(maxnum, flag);
console.log('queryRecentAbilityMissionInfos data ' + JSON.stringify(data)); console.log('queryRecentAbilityMissionInfos data ' + JSON.stringify(data));
for (var i = 0; i < data.length; i++) { for (var i = 0; i < data.length; i++) {
...@@ -126,7 +113,7 @@ describe('ActsAmsCallBackFourthScene', function () { ...@@ -126,7 +113,7 @@ describe('ActsAmsCallBackFourthScene', function () {
{ {
deviceId: "", deviceId: "",
bundleName: "com.ix.simulate.entry", bundleName: "com.ix.simulate.entry",
abilityName: "com.example.SimulateEntryAbilityFir", abilityName: "com.example.SimulateEntryAbility",
action: "action1", action: "action1",
parameters: parameters:
{}, {},
......
...@@ -53,21 +53,8 @@ var bundleNameList = [ ...@@ -53,21 +53,8 @@ var bundleNameList = [
describe('ActsAmsCallBackSecondScene', function () { describe('ActsAmsCallBackSecondScene', function () {
console.info('----ActsAmsCallBackSecondScene----'); console.info('----ActsAmsCallBackSecondScene----');
beforeAll(async function (done) { beforeAll(async function (done) {
await featureAbility.startAbility(
{
want:
{
deviceId: "",
bundleName: "com.ohos.launcher",
abilityName: "com.ohos.launcher.MainAbility",
action: "action1",
parameters:
{},
},
},
);
var maxnum = 10; var maxnum = 10;
var flag = 1; var flag = 1;
var data = await abilitymanager.queryRecentAbilityMissionInfos(maxnum, flag); var data = await abilitymanager.queryRecentAbilityMissionInfos(maxnum, flag);
console.log('queryRecentAbilityMissionInfos data ' + JSON.stringify(data)); console.log('queryRecentAbilityMissionInfos data ' + JSON.stringify(data));
for (var i = 0; i < data.length; i++) { for (var i = 0; i < data.length; i++) {
......
...@@ -51,21 +51,8 @@ var bundleNameList = [ ...@@ -51,21 +51,8 @@ var bundleNameList = [
describe('ActsAmsCallBackThirdScene', function () { describe('ActsAmsCallBackThirdScene', function () {
console.info('----ActsAmsCallBackThirdScene----'); console.info('----ActsAmsCallBackThirdScene----');
beforeAll(async function (done) { beforeAll(async function (done) {
await featureAbility.startAbility(
{
want:
{
deviceId: "",
bundleName: "com.ohos.launcher",
abilityName: "com.ohos.launcher.MainAbility",
action: "action1",
parameters:
{},
},
}
);
var maxnum = 10; var maxnum = 10;
var flag = 1; var flag = 1;
var data = await abilitymanager.queryRecentAbilityMissionInfos(maxnum, flag); var data = await abilitymanager.queryRecentAbilityMissionInfos(maxnum, flag);
console.log('queryRecentAbilityMissionInfos data ' + JSON.stringify(data)); console.log('queryRecentAbilityMissionInfos data ' + JSON.stringify(data));
for (var i = 0; i < data.length; i++) { for (var i = 0; i < data.length; i++) {
...@@ -88,19 +75,6 @@ describe('ActsAmsCallBackThirdScene', function () { ...@@ -88,19 +75,6 @@ describe('ActsAmsCallBackThirdScene', function () {
}, },
}, },
); );
await featureAbility.startAbility(
{
want:
{
deviceId: "",
bundleName: "com.ohos.launcher",
abilityName: "com.ohos.launcher.MainAbility",
action: "action1",
parameters:
{},
},
},
);
await featureAbility.startAbility( await featureAbility.startAbility(
{ {
want: want:
......
...@@ -54,26 +54,8 @@ var bundleNameList = [ ...@@ -54,26 +54,8 @@ var bundleNameList = [
describe('ActsAmsTestFifthScene', function () { describe('ActsAmsTestFifthScene', function () {
console.info('----ActsAmsTestFifthScene----'); console.info('----ActsAmsTestFifthScene----');
beforeAll(async function (done) { beforeAll(async function (done) {
await featureAbility.startAbility(
{
want:
{
deviceId: "",
bundleName: "com.ohos.launcher",
abilityName: "com.ohos.launcher.MainAbility",
action: "action1",
entities: ["entity1"],
type: "MIMETYPE",
uri: "key={true,true,false}",
options:
{},
parameters:
{},
},
},
);
var maxnum = 10; var maxnum = 10;
var flag = 1; var flag = 1;
var data = await abilitymanager.queryRecentAbilityMissionInfos(maxnum, flag); var data = await abilitymanager.queryRecentAbilityMissionInfos(maxnum, flag);
console.log('queryRecentAbilityMissionInfos data ' + JSON.stringify(data)); console.log('queryRecentAbilityMissionInfos data ' + JSON.stringify(data));
for (var i = 0; i < data.length; i++) { for (var i = 0; i < data.length; i++) {
......
...@@ -51,26 +51,8 @@ var bundleNameList = [ ...@@ -51,26 +51,8 @@ var bundleNameList = [
describe('ActsAmsTestFirstScene', function () { describe('ActsAmsTestFirstScene', function () {
console.info('----ActsAmsTestFirstScene----'); console.info('----ActsAmsTestFirstScene----');
beforeAll(async function (done) { beforeAll(async function (done) {
await featureAbility.startAbility(
{
want:
{
deviceId: "",
bundleName: "com.ohos.launcher",
abilityName: "com.ohos.launcher.MainAbility",
action: "action1",
entities: ["entity1"],
type: "MIMETYPE",
uri: "key={true,true,false}",
options:
{},
parameters:
{},
},
},
);
var maxnum = 10; var maxnum = 10;
var flag = 1; var flag = 1;
var data = await abilitymanager.queryRecentAbilityMissionInfos(maxnum, flag); var data = await abilitymanager.queryRecentAbilityMissionInfos(maxnum, flag);
console.log('queryRecentAbilityMissionInfos data ' + JSON.stringify(data)); console.log('queryRecentAbilityMissionInfos data ' + JSON.stringify(data));
for (var i = 0; i < data.length; i++) { for (var i = 0; i < data.length; i++) {
......
...@@ -56,26 +56,8 @@ var bundleNameList = [ ...@@ -56,26 +56,8 @@ var bundleNameList = [
describe('ActsAmsTestFourthScene', function () { describe('ActsAmsTestFourthScene', function () {
console.info('----ActsAmsTestFourthScene----'); console.info('----ActsAmsTestFourthScene----');
beforeAll(async function (done) { beforeAll(async function (done) {
await featureAbility.startAbility(
{
want:
{
deviceId: "",
bundleName: "com.ohos.launcher",
abilityName: "com.ohos.launcher.MainAbility",
action: "action1",
entities: ["entity1"],
type: "MIMETYPE",
uri: "key={true,true,false}",
options:
{},
parameters:
{},
},
},
);
var maxnum = 10; var maxnum = 10;
var flag = 1; var flag = 1;
var data = await abilitymanager.queryRecentAbilityMissionInfos(maxnum, flag); var data = await abilitymanager.queryRecentAbilityMissionInfos(maxnum, flag);
console.log('queryRecentAbilityMissionInfos data ' + JSON.stringify(data)); console.log('queryRecentAbilityMissionInfos data ' + JSON.stringify(data));
for (var i = 0; i < data.length; i++) { for (var i = 0; i < data.length; i++) {
...@@ -145,7 +127,7 @@ describe('ActsAmsTestFourthScene', function () { ...@@ -145,7 +127,7 @@ describe('ActsAmsTestFourthScene', function () {
{ {
deviceId: "", deviceId: "",
bundleName: "com.ix.simulate.entry", bundleName: "com.ix.simulate.entry",
abilityName: "com.example.SimulateEntryAbilityFir", abilityName: "com.example.SimulateEntryAbility",
action: "action1", action: "action1",
entities: ["entity1"], entities: ["entity1"],
type: "MIMETYPE", type: "MIMETYPE",
......
...@@ -53,26 +53,8 @@ var bundleNameList = [ ...@@ -53,26 +53,8 @@ var bundleNameList = [
describe('ActsAmsTestSecondScene', function () { describe('ActsAmsTestSecondScene', function () {
console.info('----ActsAmsTestSecondScene----'); console.info('----ActsAmsTestSecondScene----');
beforeAll(async function (done) { beforeAll(async function (done) {
await featureAbility.startAbility(
{
want:
{
deviceId: "",
bundleName: "com.ohos.launcher",
abilityName: "com.ohos.launcher.MainAbility",
action: "action1",
entities: ["entity1"],
type: "MIMETYPE",
uri: "key={true,true,false}",
options:
{},
parameters:
{},
},
},
);
var maxnum = 10; var maxnum = 10;
var flag = 1; var flag = 1;
var data = await abilitymanager.queryRecentAbilityMissionInfos(maxnum, flag); var data = await abilitymanager.queryRecentAbilityMissionInfos(maxnum, flag);
console.log('queryRecentAbilityMissionInfos data ' + JSON.stringify(data)); console.log('queryRecentAbilityMissionInfos data ' + JSON.stringify(data));
for (var i = 0; i < data.length; i++) { for (var i = 0; i < data.length; i++) {
......
...@@ -53,26 +53,8 @@ describe('ActsAmsTestThirdScene', function () { ...@@ -53,26 +53,8 @@ describe('ActsAmsTestThirdScene', function () {
console.info('----ActsAmsTestThirdScene----'); console.info('----ActsAmsTestThirdScene----');
beforeAll(async function (done) { beforeAll(async function (done) {
await featureAbility.startAbility(
{
want:
{
deviceId: "",
bundleName: "com.ohos.launcher",
abilityName: "com.ohos.launcher.MainAbility",
action: "action1",
entities: ["entity1"],
type: "MIMETYPE",
uri: "key={true,true,false}",
options:
{},
parameters:
{},
},
},
);
var maxnum = 10; var maxnum = 10;
var flag = 1; var flag = 1;
var data = await abilitymanager.queryRecentAbilityMissionInfos(maxnum, flag); var data = await abilitymanager.queryRecentAbilityMissionInfos(maxnum, flag);
console.log('queryRecentAbilityMissionInfos data ' + JSON.stringify(data)); console.log('queryRecentAbilityMissionInfos data ' + JSON.stringify(data));
for (var i = 0; i < data.length; i++) { for (var i = 0; i < data.length; i++) {
...@@ -100,24 +82,6 @@ describe('ActsAmsTestThirdScene', function () { ...@@ -100,24 +82,6 @@ describe('ActsAmsTestThirdScene', function () {
}, },
}, },
); );
await featureAbility.startAbility(
{
want:
{
deviceId: "",
bundleName: "com.ohos.launcher",
abilityName: "com.ohos.launcher.MainAbility",
action: "action1",
entities: ["entity1"],
type: "MIMETYPE",
uri: "key={true,true,false}",
options:
{},
parameters:
{},
},
},
);
await featureAbility.startAbility( await featureAbility.startAbility(
{ {
want: want:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册