Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
805e6757
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
805e6757
编写于
3月 16, 2022
作者:
O
openharmony_ci
提交者:
Gitee
3月 16, 2022
浏览文件
操作
浏览文件
下载
差异文件
!2488 XTS用例挑单
Merge pull request !2488 from jiangwensai/cherry-pick-1647347067
上级
fd07e2f9
3036bc14
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
37 addition
and
45 deletion
+37
-45
aafwk/aafwk_standard/abilitymanager/actsamstestfifthscene/entry/src/main/js/test/MangerAbilityJsunit.test.js
...hscene/entry/src/main/js/test/MangerAbilityJsunit.test.js
+35
-32
aafwk/aafwk_standard/abilitymanager/actsamstestsecondscene/entry/src/main/js/test/MangerAbilityJsunit.test.js
...dscene/entry/src/main/js/test/MangerAbilityJsunit.test.js
+1
-6
aafwk/aafwk_standard/abilitymanager/actsamstestthirdscene/entry/src/main/js/test/MangerAbilityJsunit.test.js
...dscene/entry/src/main/js/test/MangerAbilityJsunit.test.js
+1
-7
未找到文件。
aafwk/aafwk_standard/abilitymanager/actsamstestfifthscene/entry/src/main/js/test/MangerAbilityJsunit.test.js
浏览文件 @
805e6757
...
...
@@ -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,31 +197,32 @@ 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
);
});
console
.
info
(
'
Acts_Ams_test_0300 getMissionInfos data
'
+
JSON
.
stringify
(
data
));
expect
(
Array
.
isArray
(
data
)).
assertEqual
(
true
);
expect
(
data
.
length
).
assertEqual
(
4
);
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
)
{
console
.
info
(
'
Acts_Ams_test_0300 getMissionInfos data[
'
+
i
+
"
]:
"
+
JSON
.
stringify
(
data
[
i
]));
expect
(
typeof
(
data
[
i
].
missionId
)).
assertEqual
(
"
number
"
);
expect
(
data
[
i
].
missionId
).
assertLarger
(
0
);
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
);
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
)
{
console
.
info
(
'
Acts_Ams_test_0300 getMissionInfos data[
'
+
i
+
"
]:
"
+
JSON
.
stringify
(
data
[
i
]));
expect
(
typeof
(
data
[
i
].
missionId
)).
assertEqual
(
"
number
"
);
expect
(
data
[
i
].
missionId
).
assertLarger
(
0
);
expect
(
typeof
(
data
[
i
].
want
)).
assertEqual
(
"
object
"
);
expect
(
typeof
(
data
[
i
].
want
.
deviceId
)).
assertEqual
(
"
string
"
);
expect
(
typeof
(
data
[
i
].
want
.
bundleName
)).
assertEqual
(
"
string
"
);
expect
(
data
[
i
].
want
.
bundleName
.
length
).
assertLarger
(
0
);
expect
(
bundleNameList
.
indexOf
(
data
[
i
].
want
.
bundleName
)).
assertLarger
(
-
1
);
expect
(
typeof
(
data
[
i
].
want
.
abilityName
)).
assertEqual
(
"
string
"
);
expect
(
data
[
i
].
want
.
abilityName
.
length
).
assertLarger
(
0
);
expect
(
abilityNameList
.
indexOf
(
data
[
i
].
want
.
abilityName
)).
assertLarger
(
-
1
);
expect
(
typeof
(
data
[
i
].
want
)).
assertEqual
(
"
object
"
);
expect
(
typeof
(
data
[
i
].
want
.
deviceId
)).
assertEqual
(
"
string
"
);
expect
(
typeof
(
data
[
i
].
want
.
bundleName
)).
assertEqual
(
"
string
"
);
expect
(
data
[
i
].
want
.
bundleName
.
length
).
assertLarger
(
0
);
expect
(
bundleNameList
.
indexOf
(
data
[
i
].
want
.
bundleName
)).
assertLarger
(
-
1
);
expect
(
typeof
(
data
[
i
].
want
.
abilityName
)).
assertEqual
(
"
string
"
);
expect
(
data
[
i
].
want
.
abilityName
.
length
).
assertLarger
(
0
);
expect
(
abilityNameList
.
indexOf
(
data
[
i
].
want
.
abilityName
)).
assertLarger
(
-
1
);
expect
(
typeof
(
data
[
i
].
label
)).
assertEqual
(
"
string
"
);
expect
(
typeof
(
data
[
i
].
iconPath
)).
assertEqual
(
"
string
"
);
}
done
();
setTimeout
(
timeout
,
5000
);
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
();
}).
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
);
done
();
setTimeout
(
timeout
,
5000
);
await
appManager
.
killProcessesByBundleName
(
'
com.ix.simulate.feature
'
).
then
(
data
=>
{
console
.
info
(
'
Acts_Ams_test_1500 killProcessesByBundleName data [
'
+
data
+
'
]
'
);
expect
(
data
).
assertEqual
(
0
);
done
();
}).
catch
(
err
=>
{
console
.
log
(
'
Acts_Ams_test_0700 getMissionInfos failed:
'
+
err
);
});
})
})
\ No newline at end of file
aafwk/aafwk_standard/abilitymanager/actsamstestsecondscene/entry/src/main/js/test/MangerAbilityJsunit.test.js
浏览文件 @
805e6757
...
...
@@ -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
aafwk/aafwk_standard/abilitymanager/actsamstestthirdscene/entry/src/main/js/test/MangerAbilityJsunit.test.js
浏览文件 @
805e6757
...
...
@@ -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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录