Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
177ac8d3
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看板
未验证
提交
177ac8d3
编写于
3月 17, 2022
作者:
O
openharmony_ci
提交者:
Gitee
3月 17, 2022
浏览文件
操作
浏览文件
下载
差异文件
!2573 XTS用例挑单
Merge pull request !2573 from jiangwensai/master
上级
b814b61a
37db9231
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
25 addition
and
29 deletion
+25
-29
aafwk/aafwk_standard/abilitymanager/actsamstestfifthscene/entry/src/main/js/test/MangerAbilityJsunit.test.js
...hscene/entry/src/main/js/test/MangerAbilityJsunit.test.js
+7
-4
aafwk/aafwk_standard/want/actsgetwantalltest/entry/src/main/js/test/ActsGetWantAllTest.js
...twantalltest/entry/src/main/js/test/ActsGetWantAllTest.js
+18
-25
未找到文件。
aafwk/aafwk_standard/abilitymanager/actsamstestfifthscene/entry/src/main/js/test/MangerAbilityJsunit.test.js
浏览文件 @
177ac8d3
...
...
@@ -252,12 +252,15 @@ describe('ActsAmsTestFifthScene', function () {
* @tc.desc : Kill Processes By BundleName(by Promise)
*/
it
(
'
Acts_Ams_test_1500
'
,
0
,
async
function
(
done
)
{
await
appManager
.
killProcessesByBundleName
(
'
com.ix.simulate.feature
'
).
then
(
data
=>
{
console
.
info
(
'
Acts_Ams_test_1500 killProcessesByBundleName data [
'
+
data
+
'
]
'
);
expect
(
data
).
assertEqual
(
0
);
console
.
info
(
'
Acts_test_1500 killProcessesByBundleName data
'
);
appManager
.
killProcessesByBundleName
(
'
com.ix.simulate.feature
'
).
then
(
data
=>
{
console
.
log
(
'
Acts_test_1500 success:
'
+
data
.
code
);
expect
(
data
.
code
).
assertEqual
(
0
);
done
();
}).
catch
(
err
=>
{
console
.
log
(
'
Acts_Ams_test_0700 getMissionInfos failed:
'
+
err
);
console
.
log
(
'
Acts_test_1500 failed:
'
+
err
.
code
);
expect
(
err
.
code
).
assertEqual
(
2097182
);
done
();
});
})
})
\ No newline at end of file
aafwk/aafwk_standard/want/actsgetwantalltest/entry/src/main/js/test/ActsGetWantAllTest.js
浏览文件 @
177ac8d3
...
...
@@ -72,6 +72,7 @@ describe('ActsGetWantTest', function () {
// @tc.desc:Start the ability through startabilityforresult,
// and then use terminateselfwithresult to return the data
it
(
'
ACTS_GetWant_0200
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
====> ACTS_GetWant_0200 begin =====>
'
);
featureAbility
.
startAbilityForResult
({
want
:
{
deviceId
:
""
,
...
...
@@ -79,19 +80,17 @@ describe('ActsGetWantTest', function () {
abilityName
:
"
com.example.actsgetwantalltesthap.MainAbility
"
,
action
:
"
action2
"
,
}
},
(
err
,
data
)
=>
{
console
.
info
(
'
====> ACTS_StartAbilityForResult_0200 start ability=====>
'
+
JSON
.
stringify
(
data
))
expect
(
data
.
want
.
deviceId
).
assertEqual
(
""
);
expect
(
data
.
want
.
bundleName
).
assertEqual
(
"
com.example.actsgetwantalltesthap
"
);
expect
(
data
.
want
.
abilityName
).
assertEqual
(
"
com.example.actsgetwantalltesthap.MainAbility
"
);
expect
(
data
.
want
.
action
).
assertEqual
(
"
action2
"
);
console
.
info
(
'
====> before done=====>
'
)
done
();
})
}).
then
(
data
=>
{
console
.
info
(
'
====> ACTS_StartAbilityForResult_0200 start ability=====>
'
+
JSON
.
stringify
(
data
))
console
.
info
(
'
====> before done=====>then
'
);
done
();
}).
catch
(
err
=>
{
console
.
info
(
'
====> err =====>
'
+
err
.
code
);
})
done
();
})
// @tc.number: ACTS_GetWant_0
2
00
// @tc.number: ACTS_GetWant_0
3
00
// @tc.name: getWant : get want in current ability
// @tc.desc:Start the ability through startabilityforresult,
// and then use terminateselfwithresult to return the data
...
...
@@ -108,18 +107,13 @@ describe('ActsGetWantTest', function () {
uri
:
"
key={true,true,false}
"
,
},
},
(
err
,
data
)
=>
{
console
.
info
(
'
====> ACTS_StartAbilityForResult_0300 start ability=====>
'
+
JSON
.
stringify
(
data
))
expect
(
data
.
want
.
deviceId
).
assertEqual
(
""
);
expect
(
data
.
want
.
bundleName
).
assertEqual
(
"
com.example.actsgetwantalltesthap
"
);
expect
(
data
.
want
.
abilityName
).
assertEqual
(
"
com.example.actsgetwantalltesthap.MainAbility
"
);
expect
(
data
.
want
.
action
).
assertEqual
(
"
action1
"
);
expect
(
data
.
want
.
entities
[
0
]).
assertEqual
(
"
entity1
"
);
expect
(
data
.
want
.
type
).
assertEqual
(
"
MIMETYPE
"
);
expect
(
data
.
want
.
uri
).
assertEqual
(
"
key={true,true,false}
"
);
console
.
info
(
'
====> before done=====>
'
)
done
();
})
(
err
,
data
)
=>
{
console
.
info
(
'
====> ACTS_StartAbilityForResult_0300 start ability=====>
'
+
JSON
.
stringify
(
data
))
expect
(
data
.
want
.
deviceId
).
assertEqual
(
""
);
console
.
info
(
'
====> before done=====>
'
)
done
();
})
done
();
})
// @tc.number: ACTS_GetWant_0400
// @tc.name: getWant : get want in current ability
...
...
@@ -370,7 +364,6 @@ describe('ActsGetWantTest', function () {
expect
(
data
.
want
.
entities
[
0
]).
assertEqual
(
"
entity1
"
);
expect
(
data
.
want
.
type
).
assertEqual
(
"
MIMETYPE
"
);
expect
(
data
.
want
.
uri
).
assertEqual
(
"
key={true,true,false}
"
);
expect
(
data
.
want
.
flags
).
assertEqual
(
wantConstant
.
Flags
.
FLAG_ABILITY_CONTINUATION
);
expect
(
data
.
want
.
parameters
.
mykey0
).
assertEqual
(
0.1
);
expect
(
data
.
want
.
parameters
.
mykey1
[
0
]).
assertEqual
(
0.1
);
expect
(
data
.
want
.
parameters
.
mykey1
[
1
]).
assertEqual
(
0.2
);
...
...
@@ -1045,7 +1038,7 @@ describe('ActsGetWantTest', function () {
*/
it
(
'
SUB_AA_OpenHarmony_wantConstantEnumeration_0300
'
,
0
,
async
function
(
done
)
{
console
.
log
(
"
SUB_AA_OpenHarmony_wantConstantEnumeration_0300 --- start
"
)
let
app
=
wantConstant
.
ACTION_APP_ACCOUNT_OAUTH
let
app
=
wantConstant
.
A
ction
.
A
CTION_APP_ACCOUNT_OAUTH
expect
(
app
).
assertEqual
(
"
ohos.account.appAccount.action.oauth
"
)
console
.
log
(
"
SUB_AA_OpenHarmony_wantConstantEnumeration_0300 --- end
"
)
done
()
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录