Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
a424cb82
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看板
提交
a424cb82
编写于
1月 07, 2023
作者:
Z
zhangfuzhi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add smsmmsbatchinsert
Signed-off-by:
N
zhangfuzhi
<
zhangfuzhi1@huawei.com
>
上级
e46ffc6b
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
17 addition
and
17 deletion
+17
-17
telephony/telephonyjstest/telephony_base/sms_mms/src/main/js/MainAbility/pages/index/index.hml
...ase/sms_mms/src/main/js/MainAbility/pages/index/index.hml
+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
+11
-11
未找到文件。
telephony/telephonyjstest/telephony_base/sms_mms/src/main/js/MainAbility/pages/index/index.hml
浏览文件 @
a424cb82
<div class="container">
<text class="title">
S
IM
TEST
S
MS_MMS
TEST
</text>
</div>
telephony/telephonyjstest/telephony_base/sms_mms/src/main/js/MainAbility/pages/index/index.js
浏览文件 @
a424cb82
...
...
@@ -18,21 +18,21 @@ import { Hypium } from '@ohos/hypium';
import
testsuite
from
'
../../../test/List.test
'
;
const
injectRef
=
Object
.
getPrototypeOf
(
global
)
||
global
injectRef
.
regeneratorRuntime
=
require
(
'
@babel/runtime/regenerator
'
)
injectRef
.
regeneratorRuntime
=
require
(
'
@babel/runtime/regenerator
'
)
;
export
default
{
data
:
{
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
()
var
abilityDelegator
=
AbilityDelegatorRegistry
.
getAbilityDelegator
()
;
var
abilityDelegatorArguments
=
AbilityDelegatorRegistry
.
getArguments
()
;
console
.
info
(
'
start run testcase!!!
'
);
Hypium
.
hypiumTest
(
abilityDelegator
,
abilityDelegatorArguments
,
testsuite
)
Hypium
.
hypiumTest
(
abilityDelegator
,
abilityDelegatorArguments
,
testsuite
)
;
},
onReady
()
{
},
...
...
telephony/telephonyjstest/telephony_base/sms_mms/src/main/js/TestRunner/OpenHarmonyTestRunner.js
浏览文件 @
a424cb82
...
...
@@ -20,14 +20,14 @@ function translateParamsToString(parameters) {
'
-s class
'
,
'
-s notClass
'
,
'
-s suite
'
,
'
-s itName
'
,
'
-s level
'
,
'
-s testType
'
,
'
-s size
'
,
'
-s timeout
'
,
'
-s package
'
,
'
-s dryRun
'
])
])
;
let
targetParams
=
''
;
for
(
const
key
in
parameters
)
{
if
(
keySet
.
has
(
key
))
{
targetParams
+=
'
'
+
key
+
'
'
+
parameters
[
key
]
targetParams
+=
'
'
+
key
+
'
'
+
parameters
[
key
]
;
}
}
return
targetParams
.
trim
()
return
targetParams
.
trim
()
;
}
export
default
{
...
...
@@ -36,18 +36,18 @@ function translateParamsToString(parameters) {
},
onRun
()
{
console
.
log
(
'
OpenHarmonyTestRunner onRun run
'
);
var
abilityDelegatorArguments
=
AbilityDelegatorRegistry
.
getArguments
()
var
abilityDelegator
=
AbilityDelegatorRegistry
.
getAbilityDelegator
()
var
abilityDelegatorArguments
=
AbilityDelegatorRegistry
.
getArguments
()
;
var
abilityDelegator
=
AbilityDelegatorRegistry
.
getAbilityDelegator
()
;
var
testAbilityName
=
abilityDelegatorArguments
.
parameters
[
'
-p
'
]
+
'
.
MainAbility
'
var
testAbilityName
=
abilityDelegatorArguments
.
parameters
[
'
-p
'
]
+
'
.
TestAbility
'
;
var
cmd
=
'
aa start -d 0 -a
'
+
testAbilityName
+
'
-b
'
+
abilityDelegatorArguments
.
bundleName
cmd
+=
'
'
+
translateParamsToString
(
abilityDelegatorArguments
.
parameters
)
var
debug
=
abilityDelegatorArguments
.
parameters
[
"
-D
"
]
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
);
if
(
debug
==
'
true
'
)
{
cmd
+=
'
-D
'
cmd
+=
'
-D
'
;
}
console
.
info
(
'
cmd :
'
+
cmd
);
abilityDelegator
.
executeShellCommand
(
cmd
,
(
err
,
data
)
=>
{
...
...
@@ -56,4 +56,4 @@ function translateParamsToString(parameters) {
console
.
info
(
'
executeShellCommand : data :
'
+
data
.
exitCode
);
})
}
}
;
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录