Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
e4e1f623
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看板
提交
e4e1f623
编写于
1月 06, 2023
作者:
Z
zhangfuzhi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add smsmmsbatchinsert
Signed-off-by:
N
zhangfuzhi
<
zhangfuzhi1@huawei.com
>
上级
9e6aa9f7
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
28 addition
and
27 deletion
+28
-27
telephony/telephonyjstest/telephony_base/call_manager/src/main/config.json
...nyjstest/telephony_base/call_manager/src/main/config.json
+1
-1
telephony/telephonyjstest/telephony_base/cellular_data/src/main/config.json
...yjstest/telephony_base/cellular_data/src/main/config.json
+1
-1
telephony/telephonyjstest/telephony_base/sms_mms/src/main/config.json
...lephonyjstest/telephony_base/sms_mms/src/main/config.json
+1
-1
telephony/telephonyjstest/telephony_base/sms_mms/src/main/js/MainAbility/app.js
...est/telephony_base/sms_mms/src/main/js/MainAbility/app.js
+1
-1
telephony/telephonyjstest/telephony_base/sms_mms/src/main/js/MainAbility/pages/index/index.js
...base/sms_mms/src/main/js/MainAbility/pages/index/index.js
+5
-5
telephony/telephonyjstest/telephony_base/sms_mms/src/main/js/TestRunner/OpenHarmonyTestRunner.js
...e/sms_mms/src/main/js/TestRunner/OpenHarmonyTestRunner.js
+5
-5
telephony/telephonyjstest/telephony_base/sms_mms/src/main/js/test/List.test.js
...test/telephony_base/sms_mms/src/main/js/test/List.test.js
+1
-1
telephony/telephonyjstest/telephony_base/sms_mms/src/main/js/test/SmsMmsBatchInsert.test.js
...y_base/sms_mms/src/main/js/test/SmsMmsBatchInsert.test.js
+13
-12
未找到文件。
telephony/telephonyjstest/telephony_base/call_manager/src/main/config.json
浏览文件 @
e4e1f623
...
...
@@ -8,7 +8,7 @@
},
"apiVersion"
:
{
"compatible"
:
4
,
"target"
:
5
,
"target"
:
7
,
"releaseType"
:
"Release"
}
},
...
...
telephony/telephonyjstest/telephony_base/cellular_data/src/main/config.json
浏览文件 @
e4e1f623
...
...
@@ -8,7 +8,7 @@
},
"apiVersion"
:
{
"compatible"
:
4
,
"target"
:
5
,
"target"
:
7
,
"releaseType"
:
"Release"
}
},
...
...
telephony/telephonyjstest/telephony_base/sms_mms/src/main/config.json
浏览文件 @
e4e1f623
...
...
@@ -8,7 +8,7 @@
},
"apiVersion"
:
{
"compatible"
:
4
,
"target"
:
5
,
"target"
:
7
,
"releaseType"
:
"Release"
}
},
...
...
telephony/telephonyjstest/telephony_base/sms_mms/src/main/js/MainAbility/app.js
浏览文件 @
e4e1f623
...
...
@@ -14,7 +14,7 @@
*/
export
default
{
onCreate
()
{
console
.
info
(
'
TestApplication onCreate
'
)
console
.
info
(
'
TestApplication onCreate
'
)
;
},
onDestroy
()
{
...
...
telephony/telephonyjstest/telephony_base/sms_mms/src/main/js/MainAbility/pages/index/index.js
浏览文件 @
e4e1f623
...
...
@@ -13,9 +13,9 @@
* limitations under the License.
*/
import
AbilityDelegatorRegistry
from
'
@ohos.application.abilityDelegatorRegistry
'
import
{
Hypium
}
from
'
@ohos/hypium
'
import
testsuite
from
'
../../../test/List.test
'
import
AbilityDelegatorRegistry
from
'
@ohos.application.abilityDelegatorRegistry
'
;
import
{
Hypium
}
from
'
@ohos/hypium
'
;
import
testsuite
from
'
../../../test/List.test
'
;
const
injectRef
=
Object
.
getPrototypeOf
(
global
)
||
global
injectRef
.
regeneratorRuntime
=
require
(
'
@babel/runtime/regenerator
'
)
...
...
@@ -25,13 +25,13 @@ export default {
title
:
''
},
onInit
()
{
this
.
title
=
this
.
$t
(
'
strings.world
'
)
;
this
.
title
=
this
.
$t
(
'
strings.world
'
)
},
onShow
()
{
console
.
info
(
'
onShow finish!
'
);
var
abilityDelegator
=
AbilityDelegatorRegistry
.
getAbilityDelegator
()
var
abilityDelegatorArguments
=
AbilityDelegatorRegistry
.
getArguments
()
console
.
info
(
'
start run testcase!!!
'
)
console
.
info
(
'
start run testcase!!!
'
)
;
Hypium
.
hypiumTest
(
abilityDelegator
,
abilityDelegatorArguments
,
testsuite
)
},
onReady
()
{
...
...
telephony/telephonyjstest/telephony_base/sms_mms/src/main/js/TestRunner/OpenHarmonyTestRunner.js
浏览文件 @
e4e1f623
...
...
@@ -13,7 +13,7 @@
* limitations under the License.
*/
import
AbilityDelegatorRegistry
from
'
@ohos.application.abilityDelegatorRegistry
'
import
AbilityDelegatorRegistry
from
'
@ohos.application.abilityDelegatorRegistry
'
;
function
translateParamsToString
(
parameters
)
{
const
keySet
=
new
Set
([
...
...
@@ -32,10 +32,10 @@ function translateParamsToString(parameters) {
export
default
{
onPrepare
()
{
console
.
info
(
'
OpenHarmonyTestRunner OnPrepare
'
)
console
.
info
(
'
OpenHarmonyTestRunner OnPrepare
'
)
;
},
onRun
()
{
console
.
log
(
'
OpenHarmonyTestRunner onRun run
'
)
console
.
log
(
'
OpenHarmonyTestRunner onRun run
'
)
;
var
abilityDelegatorArguments
=
AbilityDelegatorRegistry
.
getArguments
()
var
abilityDelegator
=
AbilityDelegatorRegistry
.
getAbilityDelegator
()
...
...
@@ -44,12 +44,12 @@ function translateParamsToString(parameters) {
var
cmd
=
'
aa start -d 0 -a
'
+
testAbilityName
+
'
-b
'
+
abilityDelegatorArguments
.
bundleName
cmd
+=
'
'
+
translateParamsToString
(
abilityDelegatorArguments
.
parameters
)
var
debug
=
abilityDelegatorArguments
.
parameters
[
"
-D
"
]
console
.
info
(
'
debug value :
'
+
debug
)
console
.
info
(
'
debug value :
'
+
debug
)
;
if
(
debug
==
'
true
'
)
{
cmd
+=
'
-D
'
}
console
.
info
(
'
cmd :
'
+
cmd
)
console
.
info
(
'
cmd :
'
+
cmd
)
;
abilityDelegator
.
executeShellCommand
(
cmd
,
(
err
,
data
)
=>
{
console
.
info
(
'
executeShellCommand : err :
'
+
JSON
.
stringify
(
err
));
console
.
info
(
'
executeShellCommand : data :
'
+
data
.
stdResult
);
...
...
telephony/telephonyjstest/telephony_base/sms_mms/src/main/js/test/List.test.js
浏览文件 @
e4e1f623
...
...
@@ -13,7 +13,7 @@
* limitations under the License.
*/
import
SmsMmsBatchInsert
from
'
./SmsMmsBatchInsert.test
'
import
SmsMmsBatchInsert
from
'
./SmsMmsBatchInsert.test
'
;
export
default
function
testsuite
()
{
SmsMmsBatchInsert
();
...
...
telephony/telephonyjstest/telephony_base/sms_mms/src/main/js/test/SmsMmsBatchInsert.test.js
浏览文件 @
e4e1f623
...
...
@@ -96,8 +96,9 @@ export default function SmsMmsBatchInsert() {
var
exitTime
=
now
.
getTime
()
+
numberMillis
;
while
(
true
)
{
now
=
new
Date
();
if
(
now
.
getTime
()
>
exitTime
)
return
;
if
(
now
.
getTime
()
>
exitTime
){
return
;
}
}
}
...
...
@@ -138,8 +139,8 @@ export default function SmsMmsBatchInsert() {
}
ExpectTrue
(
data
.
code
===
0
);
console
.
log
(
CASE_NAME
+
'
batchInsert Success, data:
'
+
JSON
.
stringify
(
data
));
})
await
sleep
(
100
);
})
;
sleep
(
100
);
try
{
let
data
=
await
DAHelper
.
query
(
URL_INFO
);
ExpectTrue
(
data
.
rowCount
===
num
);
...
...
@@ -175,7 +176,7 @@ export default function SmsMmsBatchInsert() {
ExpectFalse
();
console
.
log
(
CASE_NAME
+
'
batchInsert failed, data:
'
+
JSON
.
stringify
(
data
));
done
();
})
})
;
});
/*
...
...
@@ -195,8 +196,8 @@ export default function SmsMmsBatchInsert() {
}
ExpectTrue
(
data
.
code
===
0
);
console
.
log
(
CASE_NAME
+
'
batchInsert Success, data:
'
+
JSON
.
stringify
(
data
));
})
await
sleep
(
100
);
})
;
sleep
(
100
);
try
{
let
data
=
await
DAHelper
.
query
(
URL_INFO
);
ExpectTrue
(
data
.
rowCount
===
0
);
...
...
@@ -229,8 +230,8 @@ export default function SmsMmsBatchInsert() {
}
ExpectTrue
(
data
.
code
===
0
);
console
.
log
(
CASE_NAME
+
'
batchInsert Success, data:
'
+
JSON
.
stringify
(
data
));
})
await
sleep
(
2000
);
})
;
sleep
(
2000
);
try
{
let
data
=
await
DAHelper
.
query
(
URL_INFO
);
ExpectTrue
(
data
.
rowCount
===
num
);
...
...
@@ -266,7 +267,7 @@ export default function SmsMmsBatchInsert() {
ExpectFalse
();
console
.
log
(
CASE_NAME
+
'
batchInsert failed, data:
'
+
JSON
.
stringify
(
data
));
done
();
})
})
;
});
/*
...
...
@@ -347,7 +348,7 @@ export default function SmsMmsBatchInsert() {
done
();
return
;
}
await
sleep
(
100
);
sleep
(
100
);
try
{
let
data
=
await
DAHelper
.
query
(
URL_INFO
);
ExpectTrue
(
data
.
rowCount
===
0
);
...
...
@@ -383,7 +384,7 @@ export default function SmsMmsBatchInsert() {
done
();
return
;
}
await
sleep
(
100
);
sleep
(
100
);
try
{
let
data
=
await
DAHelper
.
query
(
URL_INFO
);
ExpectTrue
(
data
.
rowCount
===
num
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录