Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
0e1bf525
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看板
未验证
提交
0e1bf525
编写于
9月 26, 2022
作者:
O
openharmony_ci
提交者:
Gitee
9月 26, 2022
浏览文件
操作
浏览文件
下载
差异文件
!5619 XTS-ActsAmsProcessMultiinstanceTest测试套用例优化
Merge pull request !5619 from chengxingzhen/master
上级
ddad738d
75fe7780
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
17 addition
and
1 deletion
+17
-1
ability/ability_runtime/processmultiinstance/actsamsprocessmultiinstancetest/entry/src/main/ets/test/Ability.test.ets
...ultiinstancetest/entry/src/main/ets/test/Ability.test.ets
+17
-1
未找到文件。
ability/ability_runtime/processmultiinstance/actsamsprocessmultiinstancetest/entry/src/main/ets/test/Ability.test.ets
浏览文件 @
0e1bf525
...
...
@@ -16,7 +16,6 @@ import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from
import
commonEvent
from
'@ohos.commonEvent'
import
abilityManager
from
'@ohos.application.abilityManager'
;
import
appManager
from
'@ohos.application.appManager'
import
missionManager
from
'@ohos.application.missionManager'
const
TIMEOUT
=
1000
;
var
subscriberInfo
=
{
...
...
@@ -35,6 +34,9 @@ var processNameA = "com.example.multiinstancehapa";
var
processNameB
=
"com.example.multiinstancehapb"
;
var
processNameC
=
"com.example.multiinstancehapc"
;
function
sleep
(
ms
)
{
return
new
Promise
(
resolve
=>
setTimeout
(
resolve
,
ms
));
}
export
default
function
abilityTest
()
{
describe
(
'ActsProcessMultiInstanceTest'
,
function
()
{
...
...
@@ -151,6 +153,7 @@ export default function abilityTest() {
done
();
}
}
await
sleep
(
500
)
globalThis
.
abilityContext
.
startAbility
({
bundleName
:
"com.example.multiinstancehapb"
,
abilityName
:
"com.example.multiinstancehapba.MainAbility"
,
...
...
@@ -158,6 +161,7 @@ export default function abilityTest() {
console
.
log
(
'ACTS_Process_MultiInstance_0100 - startAbilityhapba: '
+
JSON
.
stringify
(
err
)
+
", "
+
JSON
.
stringify
(
data
))
})
await
sleep
(
500
)
globalThis
.
abilityContext
.
startAbility
({
bundleName
:
"com.example.multiinstancehapb"
,
abilityName
:
"com.example.multiinstancehapbb.MainAbility"
,
...
...
@@ -260,6 +264,7 @@ export default function abilityTest() {
done
();
}
}
await
sleep
(
500
)
globalThis
.
abilityContext
.
startAbility
({
bundleName
:
"com.example.multiinstancehapb"
,
abilityName
:
"com.example.multiinstancehapbc.MainAbility"
,
...
...
@@ -267,6 +272,7 @@ export default function abilityTest() {
console
.
log
(
'ACTS_Process_MultiInstance_0200 - startAbilityhapbc: '
+
JSON
.
stringify
(
err
)
+
", "
+
JSON
.
stringify
(
data
))
})
await
sleep
(
500
)
globalThis
.
abilityContext
.
startAbility
({
bundleName
:
"com.example.multiinstancehapb"
,
abilityName
:
"com.example.multiinstancehapbd.MainAbility"
,
...
...
@@ -374,6 +380,7 @@ export default function abilityTest() {
done
();
}
}
await
sleep
(
500
)
globalThis
.
abilityContext
.
startAbility
({
bundleName
:
"com.example.multiinstancehapb"
,
abilityName
:
"com.example.multiinstancehapbd.MainAbility"
,
...
...
@@ -381,6 +388,7 @@ export default function abilityTest() {
console
.
log
(
'ACTS_Process_MultiInstance_0300 - startAbilityhapbd: '
+
JSON
.
stringify
(
err
)
+
", "
+
JSON
.
stringify
(
data
))
})
await
sleep
(
500
)
globalThis
.
abilityContext
.
startAbility
({
bundleName
:
"com.example.multiinstancehapb"
,
abilityName
:
"com.example.multiinstancehapbe.MainAbility"
,
...
...
@@ -485,6 +493,7 @@ export default function abilityTest() {
done
();
}
}
await
sleep
(
500
)
globalThis
.
abilityContext
.
startAbility
({
bundleName
:
"com.example.multiinstancehapb"
,
abilityName
:
"com.example.multiinstancehapba.MainAbility"
,
...
...
@@ -492,6 +501,7 @@ export default function abilityTest() {
console
.
log
(
'ACTS_Process_MultiInstance_0400 - startAbilityhapba: '
+
JSON
.
stringify
(
err
)
+
", "
+
JSON
.
stringify
(
data
))
})
await
sleep
(
500
)
globalThis
.
abilityContext
.
startAbility
({
bundleName
:
"com.example.multiinstancehapb"
,
abilityName
:
"com.example.multiinstancehapbf.MainAbility"
,
...
...
@@ -596,6 +606,7 @@ export default function abilityTest() {
done
();
}
}
await
sleep
(
500
)
globalThis
.
abilityContext
.
startAbility
({
bundleName
:
"com.example.multiinstancehapa"
,
abilityName
:
"com.example.multiinstancehapaa.MainAbility"
,
...
...
@@ -603,6 +614,7 @@ export default function abilityTest() {
console
.
log
(
'ACTS_Process_MultiInstance_0500 - startAbilityhapaa: '
+
JSON
.
stringify
(
err
)
+
", "
+
JSON
.
stringify
(
data
))
})
await
sleep
(
500
)
globalThis
.
abilityContext
.
startAbility
({
bundleName
:
"com.example.multiinstancehapb"
,
abilityName
:
"com.example.multiinstancehapbe.MainAbility"
,
...
...
@@ -710,6 +722,7 @@ export default function abilityTest() {
done
();
}
}
await
sleep
(
500
)
globalThis
.
abilityContext
.
startAbility
({
bundleName
:
"com.example.multiinstancehapa"
,
abilityName
:
"com.example.multiinstancehapaa.MainAbility"
,
...
...
@@ -717,6 +730,7 @@ export default function abilityTest() {
console
.
log
(
'ACTS_Process_MultiInstance_0600 - startAbilityhapaa: '
+
JSON
.
stringify
(
err
)
+
", "
+
JSON
.
stringify
(
data
))
})
await
sleep
(
500
)
globalThis
.
abilityContext
.
startAbility
({
bundleName
:
"com.example.multiinstancehapb"
,
abilityName
:
"com.example.multiinstancehapbf.MainAbility"
,
...
...
@@ -823,6 +837,7 @@ export default function abilityTest() {
done
();
}
}
await
sleep
(
500
)
globalThis
.
abilityContext
.
startAbility
({
bundleName
:
"com.example.multiinstancehapa"
,
abilityName
:
"com.example.multiinstancehapab.MainAbility"
,
...
...
@@ -830,6 +845,7 @@ export default function abilityTest() {
console
.
log
(
'ACTS_Process_MultiInstance_0700 - startAbilityhapab: '
+
JSON
.
stringify
(
err
)
+
", "
+
JSON
.
stringify
(
data
))
})
await
sleep
(
500
)
globalThis
.
abilityContext
.
startAbility
({
bundleName
:
"com.example.multiinstancehapb"
,
abilityName
:
"com.example.multiinstancehapbc.MainAbility"
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录