Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
974aa6bf
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看板
未验证
提交
974aa6bf
编写于
9月 15, 2022
作者:
O
openharmony_ci
提交者:
Gitee
9月 15, 2022
浏览文件
操作
浏览文件
下载
差异文件
!5467 XTS失败用例适配
Merge pull request !5467 from chengxingzhen/master
上级
d6e9b9a6
1eb37f9d
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
9 addition
and
204 deletion
+9
-204
ability/ability_runtime/aacommand/AACommandPrintSync/entry/src/main/ets/test/Ability.test.ets
...CommandPrintSync/entry/src/main/ets/test/Ability.test.ets
+0
-4
ability/ability_runtime/aacommand/AACommandRelyHap/entry/src/main/ets/test/Ability.test.ets
...AACommandRelyHap/entry/src/main/ets/test/Ability.test.ets
+9
-26
ability/ability_runtime/aacommand/AACommandtest/entry/src/main/ets/MainAbility/MainAbility.ts
...Commandtest/entry/src/main/ets/MainAbility/MainAbility.ts
+0
-106
ability/ability_runtime/aacommand/AACommandtest/entry/src/main/ets/test/Ability.test.ets
...nd/AACommandtest/entry/src/main/ets/test/Ability.test.ets
+0
-68
ability/ability_runtime/apicover/apicoverhaptest/signature/openharmony_sx.p7b
...ime/apicover/apicoverhaptest/signature/openharmony_sx.p7b
+0
-0
未找到文件。
ability/ability_runtime/aacommand/AACommandPrintSync/entry/src/main/ets/test/Ability.test.ets
浏览文件 @
974aa6bf
...
...
@@ -32,7 +32,6 @@ export default function abilityTest() {
var msg = '测试日志!@#$%^&*()_+QWE{}|?><Fafq3146'
globalThis.abilityDelegator.printSync(msg);
console.log("ACTS_AACommand_printSync_01_0100 printSync end ====> " )
await sleep(1000)
var finishmsg = 'ACTS_AACommand_printSync_01_0100 end'
globalThis.abilityDelegator.finishTest(finishmsg, 1).then((data)=>{
console.log("ACTS_AACommand_printSync_01_0100 finishTest test end ========> callback " )
...
...
@@ -63,7 +62,6 @@ export default function abilityTest() {
'9aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaae'
globalThis.abilityDelegator.printSync(msg);
console.log("ACTS_AACommand_printSync_01_0200 printSync end ====> " )
await sleep(1000)
var finishmsg = 'ACTS_AACommand_printSync_01_0200 end'
globalThis.abilityDelegator.finishTest(finishmsg, 1).then(()=>{
console.log("ACTS_AACommand_printSync_01_0200 print test end ========> callback " )
...
...
@@ -93,7 +91,6 @@ export default function abilityTest() {
'fffffffffff'
globalThis.abilityDelegator.printSync(msg);
console.log("ACTS_AACommand_printSync_01_0300 printSync end ====> " )
await sleep(1000)
var finishmsg = 'ACTS_AACommand_printSync_01_0300 end'
globalThis.abilityDelegator.finishTest(finishmsg, 1).then(()=>{
console.log("ACTS_AACommand_printSync_01_0300 print test end ========> callback " )
...
...
@@ -111,7 +108,6 @@ export default function abilityTest() {
it('ACTS_AACommand_printSync_01_0400', 0, async function (done) {
globalThis.abilityDelegator.printSync(null);
console.log("ACTS_AACommand_printSync_01_0300 printSync end ====> " )
await sleep(1000)
var finishmsg = 'ACTS_AACommand_printSync_01_0400 end'
globalThis.abilityDelegator.finishTest(finishmsg, 1).then(()=>{
console.log("ACTS_AACommand_printSync_01_0400 print test end ========> callback " )
...
...
ability/ability_runtime/aacommand/AACommandRelyHap/entry/src/main/ets/test/Ability.test.ets
浏览文件 @
974aa6bf
...
...
@@ -352,17 +352,12 @@ export default function abilityTest() {
*/
it('ACTS_AACommand_finish_01_0800', 0, async function (done) {
var msg = '测试日志!@#$%^&*()_+QWE{}|?><Fafq3146'
setTimeout(() => {
console.log('ACTS_AACommand_finish_01_0800 code:'+JSON.stringify(code))
if(code!=undefined){
expect().assertFail();
}
done();
}, 3000)
var code = globalThis.abilityDelegator.finishTest(msg, 'ABCD',()=>{
globalThis.abilityDelegator.finishTest(msg, 'ABCD',()=>{
console.log(" ACTS_AACommand_finish_01_0800 finishTest test end ========> callback " )
expect().assertFail();
})
await sleep(2000);
done();
})
/**
...
...
@@ -388,15 +383,9 @@ export default function abilityTest() {
* @tc.desc: Verify that the process of the test framework can be stopped by calling this interface.
*/
it('ACTS_AACommand_finish_01_1000', 0, async function (done) {
var code = null
setTimeout(() => {
console.log('ACTS_AACommand_finish_01_1000 code:'+JSON.stringify(code))
if(code!=undefined){
expect().assertFail();
}
done();
}, 3000)
code = globalThis.abilityDelegator.finishTest(null, 1)
globalThis.abilityDelegator.finishTest(null, 1)
await sleep(2000);
done()
})
/**
...
...
@@ -406,15 +395,9 @@ export default function abilityTest() {
* @tc.desc: Verify that the process of the test framework can be stopped by calling this interface.
*/
it('ACTS_AACommand_finish_01_1100', 0, async function (done) {
var code=null
setTimeout(() => {
console.log('ACTS_AACommand_finish_01_1100 code:'+JSON.stringify(code))
if(code!=undefined){
expect().assertFail();
}
done();
}, 3000)
code = globalThis.abilityDelegator.finishTest(undefined, 1)
globalThis.abilityDelegator.finishTest(undefined, 1)
await sleep(2000);
done()
})
/**
...
...
ability/ability_runtime/aacommand/AACommandtest/entry/src/main/ets/MainAbility/MainAbility.ts
浏览文件 @
974aa6bf
...
...
@@ -163,28 +163,6 @@ export default class MainAbility extends Ability {
await
sleep
(
2000
)
cmd
=
'
aa test -m entry_test -b com.example.aacommandrelyhap
'
+
'
-s class ACTS_AACommand_01_3#ACTS_AACommand_finish_01_1200 -s unittest OpenHarmonyTestRunner
'
abilityDelegator
.
executeShellCommand
(
cmd
,
(
err
,
data
)
=>
{
console
.
log
(
'
ACTS_AACommand_finish_01_1200 - executeShellCommand: start
'
)
console
.
log
(
'
ACTS_AACommand_finish_01_1200 start err:
'
+
JSON
.
stringify
(
err
))
console
.
log
(
'
ACTS_AACommand_finish_01_1200 stdResult =
'
+
data
.
stdResult
)
globalThis
.
stdResult21
=
data
.
stdResult
;
console
.
log
(
'
ACTS_AACommand_finish_01_1200 - executeShellCommand: end
'
)
})
await
sleep
(
4000
)
cmd
=
'
aa dump -a
'
abilityDelegator
.
executeShellCommand
(
cmd
,
(
err
,
data
)
=>
{
console
.
info
(
'
ACTS_AACommand_finish_01_1200 : err :
'
+
JSON
.
stringify
(
err
));
console
.
info
(
'
ACTS_AACommand_finish_01_1200 : data :
'
+
JSON
.
stringify
(
data
));
globalThis
.
stdResult22
=
data
[
"
stdResult
"
];
console
.
info
(
'
ACTS_AACommand_finish_01_1200 end
'
);
})
await
sleep
(
2000
)
cmd
=
'
aa test -m entry_test -b com.example.aacommandrelyhap
'
+
'
-s class ACTS_AACommand_01_3#ACTS_AACommand_finish_01_1300 -s unittest OpenHarmonyTestRunner
'
abilityDelegator
.
executeShellCommand
(
cmd
,
(
err
,
data
)
=>
{
...
...
@@ -251,27 +229,6 @@ export default class MainAbility extends Ability {
await
sleep
(
2000
)
cmd
=
'
aa test -m entry_test -b com.example.aacommandrelyhap
'
+
'
-s class ACTS_AACommand_01_3#ACTS_AACommand_finish_01_0200 -s unittest OpenHarmonyTestRunner
'
abilityDelegator
.
executeShellCommand
(
cmd
,
(
err
,
data
)
=>
{
console
.
log
(
'
ACTS_AACommand_finish_01_0200 - executeShellCommand: start
'
)
console
.
log
(
'
ACTS_AACommand_finish_01_0200 start err:
'
+
JSON
.
stringify
(
err
))
console
.
log
(
'
ACTS_AACommand_finish_01_0200 stdResult =
'
+
data
.
stdResult
)
console
.
log
(
'
ACTS_AACommand_finish_01_0200 - executeShellCommand: end
'
)
})
await
sleep
(
4000
)
cmd
=
'
aa dump -a
'
abilityDelegator
.
executeShellCommand
(
cmd
,
(
err
,
data
)
=>
{
console
.
info
(
'
ACTS_AACommand_finish_01_0200 : err :
'
+
JSON
.
stringify
(
err
));
console
.
info
(
'
ACTS_AACommand_finish_01_0200 : data :
'
+
JSON
.
stringify
(
data
));
globalThis
.
stdResult29
=
data
[
"
stdResult
"
];
console
.
info
(
'
ACTS_AACommand_finish_01_0200 end
'
);
})
await
sleep
(
2000
)
cmd
=
'
aa test -m entry_test -b com.example.aacommandrelyhap
'
+
'
-s class ACTS_AACommand_01_3#ACTS_AACommand_finish_01_0300 -s unittest OpenHarmonyTestRunner
'
abilityDelegator
.
executeShellCommand
(
cmd
,
(
err
,
data
)
=>
{
...
...
@@ -293,69 +250,6 @@ export default class MainAbility extends Ability {
await
sleep
(
2000
)
cmd
=
'
aa test -m entry_test -b com.example.aacommandrelyhap -s
'
+
'
class ACTS_AACommand_01_3#ACTS_AACommand_finish_01_0800 -s unittest OpenHarmonyTestRunner
'
abilityDelegator
.
executeShellCommand
(
cmd
,
(
err
,
data
)
=>
{
console
.
log
(
'
ACTS_AACommand_finish_01_0800 - executeShellCommand: start
'
)
console
.
log
(
'
ACTS_AACommand_finish_01_0800 start err:
'
+
JSON
.
stringify
(
err
))
console
.
log
(
'
ACTS_AACommand_finish_01_0800 stdResult =
'
+
data
.
stdResult
)
console
.
log
(
'
ACTS_AACommand_finish_01_0800 - executeShellCommand: end
'
)
})
await
sleep
(
3000
)
cmd
=
'
aa dump -a
'
abilityDelegator
.
executeShellCommand
(
cmd
,
(
err
,
data
)
=>
{
console
.
info
(
'
ACTS_AACommand_finish_01_0800 : err :
'
+
JSON
.
stringify
(
err
));
console
.
info
(
'
ACTS_AACommand_finish_01_0800 : data :
'
+
JSON
.
stringify
(
data
));
globalThis
.
stdResult31
=
data
[
"
stdResult
"
];
console
.
info
(
'
ACTS_AACommand_finish_01_0800 end
'
);
})
await
sleep
(
2000
)
cmd
=
'
aa test -m entry_test -b com.example.aacommandrelyhap -s
'
+
'
class ACTS_AACommand_01_3#ACTS_AACommand_finish_01_1000 -s unittest OpenHarmonyTestRunner
'
abilityDelegator
.
executeShellCommand
(
cmd
,
(
err
,
data
)
=>
{
console
.
log
(
'
ACTS_AACommand_finish_01_1000 - executeShellCommand: start
'
)
console
.
log
(
'
ACTS_AACommand_finish_01_1000 start err:
'
+
JSON
.
stringify
(
err
))
console
.
log
(
'
ACTS_AACommand_finish_01_1000 stdResult =
'
+
data
.
stdResult
)
console
.
log
(
'
ACTS_AACommand_finish_01_1000 - executeShellCommand: end
'
)
})
await
sleep
(
3000
)
cmd
=
'
aa dump -a
'
abilityDelegator
.
executeShellCommand
(
cmd
,
(
err
,
data
)
=>
{
console
.
info
(
'
ACTS_AACommand_finish_01_1000 : err :
'
+
JSON
.
stringify
(
err
));
console
.
info
(
'
ACTS_AACommand_finish_01_1000 : data :
'
+
JSON
.
stringify
(
data
));
globalThis
.
stdResult32
=
data
[
"
stdResult
"
];
console
.
info
(
'
ACTS_AACommand_finish_01_1000 end
'
);
})
await
sleep
(
2000
)
cmd
=
'
aa test -m entry_test -b com.example.aacommandrelyhap
'
+
'
-s class ACTS_AACommand_01_3#ACTS_AACommand_finish_01_1100 -s unittest OpenHarmonyTestRunner
'
abilityDelegator
.
executeShellCommand
(
cmd
,
(
err
,
data
)
=>
{
console
.
log
(
'
ACTS_AACommand_finish_01_1100 - executeShellCommand: start
'
)
console
.
log
(
'
ACTS_AACommand_finish_01_1100 start err:
'
+
JSON
.
stringify
(
err
))
console
.
log
(
'
ACTS_AACommand_finish_01_1100 stdResult =
'
+
data
.
stdResult
)
console
.
log
(
'
ACTS_AACommand_finish_01_1100 - executeShellCommand: end
'
)
})
await
sleep
(
3000
)
cmd
=
'
aa dump -a
'
abilityDelegator
.
executeShellCommand
(
cmd
,
(
err
,
data
)
=>
{
console
.
info
(
'
ACTS_AACommand_finish_01_1100 : err :
'
+
JSON
.
stringify
(
err
));
console
.
info
(
'
ACTS_AACommand_finish_01_1100 : data :
'
+
JSON
.
stringify
(
data
));
globalThis
.
stdResult33
=
data
[
"
stdResult
"
];
console
.
info
(
'
ACTS_AACommand_finish_01_1100 end
'
);
})
await
sleep
(
2000
)
cmd
=
'
aa test -m entry_test -b com.example.aacommandrelyhap
'
+
'
-s class ACTS_AACommand_01_3#ACTS_AACommand_finish_01_1600 -s unittest OpenHarmonyTestRunner
'
abilityDelegator
.
executeShellCommand
(
cmd
,
(
err
,
data
)
=>
{
...
...
ability/ability_runtime/aacommand/AACommandtest/entry/src/main/ets/test/Ability.test.ets
浏览文件 @
974aa6bf
...
...
@@ -293,24 +293,6 @@ export default function abilityTest() {
done()
})
/**
* @tc.number: ACTS_AACommand_finishTest_1200
* @tc.name: The parameters of the test command are valid, and the finishTest interface is called in Promise
* mode. The msg parameter is valid(including Chinese and special characters) and the code parameter
* is valid (Number.MAX_VALUE)
* @tc.desc: Verify that the process of the test framework can be stopped by calling this interface.
*/
it('ACTS_AACommand_finishTest_1200', 0, async function (done) {
console.log("ACTS_AACommand_finishTest_1200 --- start")
let
finishmsg = '测试日志!@#$%^&*()_+QWE{}|?><Fafq3146'
finishmsg1 = 'TestFinished-ResultCode: -1'
expect(globalThis.stdResult21).assertContain(finishmsg);
expect(globalThis.stdResult21).assertContain(finishmsg1);
expect(globalThis.stdResult22.indexOf("com.example.aacommandrelyhap") == -1).assertTrue()
done()
})
/**
* @tc.number: ACTS_AACommand_finishTest_1300
* @tc.name: The parameters of the test command are valid, and the finishTest interface is called in Promise
...
...
@@ -362,19 +344,6 @@ export default function abilityTest() {
done()
})
/**
* @tc.number: ACTS_AACommand_finishTest_0200
* @tc.name: The parameters of the test command are valid, and the finishTest
* interface is called in AsyncCallback
* mode. The msg parameter is invalid (null) and the code parameter is valid (1)
* @tc.desc: Verify that the process of the test framework can be stopped by calling this interface.
*/
it('ACTS_AACommand_finishTest_0200', 0, async function (done) {
console.log("ACTS_AACommand_finishTest_0200 --- start")
expect(globalThis.stdResult29.indexOf("com.example.aacommandrelyhap") >= 0).assertTrue()
done()
})
/**
* @tc.number: ACTS_AACommand_finishTest_0300
* @tc.name: The parameters of the test command are valid, and the finishTest interface is called in
...
...
@@ -387,43 +356,6 @@ export default function abilityTest() {
done()
})
/**
* @tc.number: ACTS_AACommand_finishTest_0800
* @tc.name: The parameters of the test command are valid, and the finishTest interface is called in
* AsyncCallback
* mode. The msg parameter is invalid(including Chinese and special characters) and the
* code parameter is valid (“ABCD”)
* @tc.desc: Verify that the process of the test framework is not stopped by calling this interface.
*/
it('ACTS_AACommand_finishTest_0800', 0, async function (done) {
console.log("ACTS_AACommand_finishTest_0800 --- start")
expect(globalThis.stdResult31.indexOf("com.example.aacommandrelyhap") >= 0).assertTrue()
done()
})
/**
* @tc.number: ACTS_AACommand_finishTest_1000
* @tc.name: The parameters of the test command are valid, and the finishTest interface is called in Promise
* mode. The msg parameter is invalid(null) and the code parameter is valid (1)
* @tc.desc: Verify that the process of the test framework can be stopped by calling this interface.
*/
it('ACTS_AACommand_finishTest_1000', 0, async function (done) {
console.log("ACTS_AACommand_finishTest_1000 --- start")
expect(globalThis.stdResult32.indexOf("com.example.aacommandrelyhap") >= 0).assertTrue()
done()
})
/**
* @tc.number: ACTS_AACommand_finishTest_1100
* @tc.name: The parameters of the test command are valid, and the finishTest interface is called in Promise
* mode. The msg parameter is invalid(undefined) and the code parameter is valid (1)
* @tc.desc: Verify that the process of the test framework can be stopped by calling this interface.
*/
it('ACTS_AACommand_finishTest_1100', 0, async function (done) {
console.log("ACTS_AACommand_finishTest_1100 --- start")
expect(globalThis.stdResult33.indexOf("com.example.aacommandrelyhap") >= 0).assertTrue()
done()
})
/**
* @tc.number: ACTS_AACommand_finishTest_1600
* @tc.name: The parameters of the test command are valid, and the finishTest interface is called in
...
...
ability/ability_runtime/apicover/apicoverhaptest/signature/openharmony_sx.p7b
浏览文件 @
974aa6bf
无法预览此类型文件
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录