Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
ce52d14a
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看板
未验证
提交
ce52d14a
编写于
7月 26, 2022
作者:
O
openharmony_ci
提交者:
Gitee
7月 26, 2022
浏览文件
操作
浏览文件
下载
差异文件
!4596 XTS元能力startAbility和updateForm失败用例适配
Merge pull request !4596 from chengxingzhen/OpenHarmony-3.2-Beta2
上级
7d44386e
8ab8cd53
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
62 addition
and
54 deletion
+62
-54
ability/ability_runtime/featureability/actsfeatureabilitytest/entry/src/main/js/test/StartAbilityJsunit.test.js
...itytest/entry/src/main/js/test/StartAbilityJsunit.test.js
+41
-54
ability/ability_runtime/formmanager/fa/formsystemtest_ets/formdeletetest/Test.json
...ormmanager/fa/formsystemtest_ets/formdeletetest/Test.json
+7
-0
ability/ability_runtime/formmanager/fa/formsystemtest_ets/formperformancetest/Test.json
...nager/fa/formsystemtest_ets/formperformancetest/Test.json
+7
-0
ability/ability_runtime/formmanager/fa/formsystemtest_ets/formstatetest_enable/Test.json
...ager/fa/formsystemtest_ets/formstatetest_enable/Test.json
+7
-0
未找到文件。
ability/ability_runtime/featureability/actsfeatureabilitytest/entry/src/main/js/test/StartAbilityJsunit.test.js
浏览文件 @
ce52d14a
...
...
@@ -19,6 +19,7 @@ let resultCode = 123;
let
bundleName
=
'
ohso.act.aafwk
'
;
let
mainAbilityName
=
'
ohos.acts.aafwk.jsap
'
;
const
errCode
=
1
;
const
errCode1
=
202
;
describe
(
'
ConnectAbilityTest
'
,
function
()
{
...
...
@@ -64,12 +65,10 @@ describe('ConnectAbilityTest', function () {
* @tc.desc: StartAbility fail with error parameter.(by promise)
*/
it
(
"
SUB_AA_JsApi_StartAbility_0300
"
,
0
,
async
function
(
done
)
{
let
parameter
=
{
'
StartAbilityParameter
'
:
{
'
want
'
:
{}
}
let
startAbilityParameter
=
{
'
want
'
:
{}
}
await
featureAbility
.
startAbility
(
p
arameter
).
then
((
data
)
=>
{
await
featureAbility
.
startAbility
(
startAbilityP
arameter
).
then
((
data
)
=>
{
console
.
log
(
'
testAbility0300 data:
'
+
JSON
.
stringify
(
data
))
expect
().
assertFail
()
}).
catch
((
error
)
=>
{
...
...
@@ -85,12 +84,10 @@ describe('ConnectAbilityTest', function () {
* @tc.desc: StartAbility fail with error parameter.(by callback)
*/
it
(
"
SUB_AA_JsApi_StartAbility_0400
"
,
0
,
async
function
(
done
)
{
let
parameter
=
{
'
StartAbilityParameter
'
:
{
'
want
'
:
{}
}
let
startAbilityParameter
=
{
'
want
'
:
{}
}
featureAbility
.
startAbility
((
p
arameter
),
(
error
,
data
)
=>
{
featureAbility
.
startAbility
((
startAbilityP
arameter
),
(
error
,
data
)
=>
{
console
.
log
(
'
testAbility0400 data:
'
+
JSON
.
stringify
(
data
))
console
.
log
(
'
testAbility0400 error:
'
+
JSON
.
stringify
(
error
))
expect
(
errCode
).
assertEqual
(
error
.
code
)
...
...
@@ -192,16 +189,13 @@ describe('ConnectAbilityTest', function () {
* @tc.desc: startAbility-want configure action+entities- entities is configurd as a string.(by promise)
*/
it
(
"
SUB_AA_JsApi_Ability_0900
"
,
0
,
async
function
(
done
)
{
let
parameter
=
{
'
startAbilityParameter
'
:
{
'
want
'
:
{
'
bundleName
'
:
bundleName
,
'
abilityName
'
:
mainAbilityName
}
let
startAbilityParameter
=
{
'
want
'
:
{
'
bundleName
'
:
bundleName
,
'
abilityName
'
:
mainAbilityName
}
}
await
featureAbility
.
startAbility
(
p
arameter
).
then
((
data
)
=>
{
await
featureAbility
.
startAbility
(
startAbilityP
arameter
).
then
((
data
)
=>
{
console
.
log
(
'
testAblity0900 data:
'
+
JSON
.
stringify
(
data
))
expect
().
assertFail
()
}).
catch
((
error
)
=>
{
...
...
@@ -217,16 +211,13 @@ describe('ConnectAbilityTest', function () {
* @tc.desc: startAbility-want configure action+entities- entities is configurd as a string.(by callback)
*/
it
(
"
SUB_AA_JsApi_Ability_1000
"
,
0
,
async
function
(
done
)
{
let
parameter
=
{
'
startAbilityParameter
'
:
{
'
want
'
:
{
'
bundleName
'
:
bundleName
,
'
abilityName
'
:
mainAbilityName
}
let
startAbilityParameter
=
{
'
want
'
:
{
'
bundleName
'
:
bundleName
,
'
abilityName
'
:
mainAbilityName
}
}
featureAbility
.
startAbility
((
p
arameter
),
(
error
,
data
)
=>
{
featureAbility
.
startAbility
((
startAbilityP
arameter
),
(
error
,
data
)
=>
{
console
.
log
(
'
testAblity1000 data:
'
+
JSON
.
stringify
(
data
))
console
.
log
(
'
testAblity1000 error:
'
+
JSON
.
stringify
(
error
))
expect
(
errCode
).
assertEqual
(
error
.
code
)
...
...
@@ -246,7 +237,7 @@ describe('ConnectAbilityTest', function () {
expect
().
assertFail
()
}).
catch
((
error
)
=>
{
console
.
log
(
'
testAblity1100 error:
'
+
JSON
.
stringify
(
error
))
expect
(
errCode
).
assertEqual
(
error
.
code
)
expect
(
errCode
1
).
assertEqual
(
error
.
code
)
})
done
()
})
...
...
@@ -261,7 +252,7 @@ describe('ConnectAbilityTest', function () {
featureAbility
.
startAbility
(
parameter
,
(
error
,
data
)
=>
{
console
.
log
(
'
testAblity1200 data:
'
+
JSON
.
stringify
(
data
))
console
.
log
(
'
testAblity1200 error:
'
+
JSON
.
stringify
(
error
))
expect
(
errCode
).
assertEqual
(
error
.
code
)
expect
(
errCode
1
).
assertEqual
(
error
.
code
)
done
();
})
})
...
...
@@ -277,7 +268,7 @@ describe('ConnectAbilityTest', function () {
expect
().
assertFail
()
}).
catch
((
error
)
=>
{
console
.
log
(
'
testAblity1300 error:
'
+
JSON
.
stringify
(
error
))
expect
(
errCode
).
assertEqual
(
error
.
code
)
expect
(
errCode
1
).
assertEqual
(
error
.
code
)
})
done
()
})
...
...
@@ -291,7 +282,7 @@ describe('ConnectAbilityTest', function () {
featureAbility
.
startAbility
(
undefined
,
(
error
,
data
)
=>
{
console
.
log
(
'
testAblity1400 data:
'
+
JSON
.
stringify
(
data
))
console
.
log
(
'
testAblity1400 error:
'
+
JSON
.
stringify
(
error
))
expect
(
errCode
).
assertEqual
(
error
.
code
)
expect
(
errCode
1
).
assertEqual
(
error
.
code
)
done
();
})
})
...
...
@@ -308,7 +299,7 @@ describe('ConnectAbilityTest', function () {
expect
.
assertFail
()
}).
catch
((
error
)
=>
{
console
.
log
(
'
testAblity1500
'
+
JSON
.
stringify
(
error
));
expect
(
errCode
).
assertEqual
(
error
.
code
)
expect
(
errCode
1
).
assertEqual
(
error
.
code
)
})
done
()
})
...
...
@@ -323,7 +314,7 @@ describe('ConnectAbilityTest', function () {
featureAbility
.
startAbilityForResult
(
parameter
,
(
error
,
data
)
=>
{
console
.
log
(
'
testAblity1600 data:
'
+
JSON
.
stringify
(
data
))
console
.
log
(
'
testAblity1600 error:
'
+
JSON
.
stringify
(
error
))
expect
(
errCode
).
assertEqual
(
error
.
code
)
expect
(
errCode
1
).
assertEqual
(
error
.
code
)
console
.
log
(
'
testAblity1600-1 error:
'
+
JSON
.
stringify
(
error
))
done
();
})
...
...
@@ -340,7 +331,7 @@ describe('ConnectAbilityTest', function () {
expect
.
assertFail
()
}).
catch
((
error
)
=>
{
console
.
log
(
'
testAblity1700
'
+
JSON
.
stringify
(
error
));
expect
(
errCode
).
assertEqual
(
error
.
code
)
expect
(
errCode
1
).
assertEqual
(
error
.
code
)
})
done
()
})
...
...
@@ -353,7 +344,7 @@ describe('ConnectAbilityTest', function () {
it
(
"
SUB_AA_JsApi_Ability_1800
"
,
0
,
async
function
(
done
)
{
featureAbility
.
startAbilityForResult
(
undefined
,
(
error
)
=>
{
console
.
log
(
'
testAblity1800
'
+
JSON
.
stringify
(
error
));
expect
(
errCode
).
assertEqual
(
error
.
code
)
expect
(
errCode
1
).
assertEqual
(
error
.
code
)
done
()
})
})
...
...
@@ -364,19 +355,17 @@ describe('ConnectAbilityTest', function () {
* @tc.desc: startAbilityForResult-wrong input parameter format want a layer outside.(by promise)
*/
it
(
"
SUB_AA_JsApi_Ability_1900
"
,
0
,
async
function
(
done
)
{
let
parameter
=
{
'
StartAbilityParameter
'
:
{
'
want
'
:
{
'
bundleName
'
:
bundleName
,
'
abilityName
'
:
mainAbilityName
,
'
parameters
'
:
{
'
key
'
:
resultCode
,
'
terminate
'
:
true
}
let
startAbilityParameter
=
{
'
want
'
:
{
'
bundleName
'
:
bundleName
,
'
abilityName
'
:
mainAbilityName
,
'
parameters
'
:
{
'
key
'
:
resultCode
,
'
terminate
'
:
true
}
}
}
await
featureAbility
.
startAbilityForResult
(
p
arameter
).
then
((
data
)
=>
{
await
featureAbility
.
startAbilityForResult
(
startAbilityP
arameter
).
then
((
data
)
=>
{
console
.
log
(
'
testAblity1900 data:
'
+
JSON
.
stringify
(
data
))
expect
.
assertFail
()
}).
catch
((
error
)
=>
{
...
...
@@ -392,19 +381,17 @@ describe('ConnectAbilityTest', function () {
* @tc.desc: startAbilityForResult-wrong input parameter format want a layer outside.(by callback)
*/
it
(
"
SUB_AA_JsApi_Ability_2000
"
,
0
,
async
function
(
done
)
{
let
parameter
=
{
'
StartAbilityParameter
'
:
{
'
want
'
:
{
'
bundleName
'
:
bundleName
,
'
abilityName
'
:
mainAbilityName
,
'
parameters
'
:
{
'
key
'
:
resultCode
,
'
terminate
'
:
true
}
let
startAbilityParameter
=
{
'
want
'
:
{
'
bundleName
'
:
bundleName
,
'
abilityName
'
:
mainAbilityName
,
'
parameters
'
:
{
'
key
'
:
resultCode
,
'
terminate
'
:
true
}
}
}
featureAbility
.
startAbilityForResult
(
p
arameter
,
(
error
,
data
)
=>
{
featureAbility
.
startAbilityForResult
(
startAbilityP
arameter
,
(
error
,
data
)
=>
{
console
.
log
(
'
testAblity2000
'
+
JSON
.
stringify
(
error
));
expect
(
errCode
).
assertEqual
(
error
.
code
)
done
()
...
...
ability/ability_runtime/formmanager/fa/formsystemtest_ets/formdeletetest/Test.json
浏览文件 @
ce52d14a
...
...
@@ -18,6 +18,13 @@
],
"type"
:
"AppInstallKit"
,
"cleanup-apps"
:
true
},
{
"type"
:
"ShellKit"
,
"run-command"
:
[
"power-shell wakeup"
,
"power-shell setmode 602"
]
}
]
}
ability/ability_runtime/formmanager/fa/formsystemtest_ets/formperformancetest/Test.json
浏览文件 @
ce52d14a
...
...
@@ -15,6 +15,13 @@
],
"type"
:
"AppInstallKit"
,
"cleanup-apps"
:
true
},
{
"type"
:
"ShellKit"
,
"run-command"
:
[
"power-shell wakeup"
,
"power-shell setmode 602"
]
}
]
}
\ No newline at end of file
ability/ability_runtime/formmanager/fa/formsystemtest_ets/formstatetest_enable/Test.json
浏览文件 @
ce52d14a
...
...
@@ -20,6 +20,13 @@
],
"type"
:
"AppInstallKit"
,
"cleanup-apps"
:
true
},
{
"type"
:
"ShellKit"
,
"run-command"
:
[
"power-shell wakeup"
,
"power-shell setmode 602"
]
}
]
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录