Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
85f992fe
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看板
提交
85f992fe
编写于
7月 20, 2022
作者:
Z
zhouke
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
modify.Signed-off-by: <zhouke35@huawei.com>.
Signed-off-by:
N
zhouke
<
zhouke35@huawei.com
>
上级
56dfc4f7
变更
10
展开全部
隐藏空白更改
内联
并排
Showing
10 changed file
with
215 addition
and
146 deletion
+215
-146
arkXtest/BUILD.gn
arkXtest/BUILD.gn
+1
-1
arkXtest/uitest/BUILD.gn
arkXtest/uitest/BUILD.gn
+3
-3
arkXtest/uitest/Test.json
arkXtest/uitest/Test.json
+21
-2
arkXtest/uitest/src/main/config.json
arkXtest/uitest/src/main/config.json
+2
-2
arkXtest/uitest/src/main/ets/MainAbility/pages/index.ets
arkXtest/uitest/src/main/ets/MainAbility/pages/index.ets
+6
-15
arkXtest/uitest/src/main/ets/MainAbility/pages/third.ets
arkXtest/uitest/src/main/ets/MainAbility/pages/third.ets
+1
-1
arkXtest/uitest/src/main/ets/TestAbility/pages/index.ets
arkXtest/uitest/src/main/ets/TestAbility/pages/index.ets
+6
-1
arkXtest/uitest/src/main/ets/TestAbility/pages/third.ets
arkXtest/uitest/src/main/ets/TestAbility/pages/third.ets
+1
-1
arkXtest/uitest/src/main/ets/test/List.test.ets
arkXtest/uitest/src/main/ets/test/List.test.ets
+1
-1
arkXtest/uitest/src/main/ets/test/uitest.test.ets
arkXtest/uitest/src/main/ets/test/uitest.test.ets
+173
-119
未找到文件。
arkXtest/BUILD.gn
浏览文件 @
85f992fe
...
...
@@ -16,6 +16,6 @@ import("//build/ohos_var.gni")
group("arkXtest") {
testonly = true
if (is_standard_system) {
deps = [ "uitest:uitest
_x
ts" ]
deps = [ "uitest:uitest
Ac
ts" ]
}
}
arkXtest/uitest/BUILD.gn
浏览文件 @
85f992fe
# Copyright (C) 202
1
Huawei Device Co., Ltd.
# Copyright (C) 202
2
Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
...
...
@@ -13,7 +13,7 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("uitest
_x
ts") {
ohos_js_hap_suite("uitest
Ac
ts") {
hap_profile = "./src/main/config.json"
deps = [
":uitest_ets_assets",
...
...
@@ -22,7 +22,7 @@ ohos_js_hap_suite("uitest_xts") {
]
ets2abc = true
certificate_profile = "//test/xts/acts/arkXtest/uitest/signature/auto_ohos_default_com.uitest.test.p7b"
hap_name = "uitest
_x
ts"
hap_name = "uitest
Ac
ts"
}
ohos_js_assets("uitest_ets_assets") {
source_dir = "./src/main/ets/MainAbility"
...
...
arkXtest/uitest/Test.json
浏览文件 @
85f992fe
...
...
@@ -3,8 +3,8 @@
"driver"
:
{
"type"
:
"OHJSUnitTest"
,
"test-timeout"
:
"1800000"
,
"bundle-name"
:
"com.uitest.
test
"
,
"package-name"
:
"com.uitest.
test
"
,
"bundle-name"
:
"com.uitest.
acts
"
,
"package-name"
:
"com.uitest.
acts
"
,
"shell-timeout"
:
"60000"
},
"kits"
:
[
...
...
@@ -14,6 +14,25 @@
],
"type"
:
"AppInstallKit"
,
"cleanup-apps"
:
true
},
{
"type"
:
"PushKit"
,
"push"
:
[
"resource/arkXtest/arkXtest_windowsTest.hap -> /data/local/tmp/arkXtest_windowsTest.hap"
,
"resource/arkXtest/window_manager_config.xml -> /system/etc/window/resources/window_manager_config.xml"
]
},
{
"type"
:
"ShellKit"
,
"run-command"
:
[
"power-shell wakeup"
,
"uinput -T -d 300 600 -m 300 600 300 100 -u 300 100"
,
"power-shell setmode 602"
,
"bm install -p /data/local/tmp/arkXtest_windowsTest.hap"
],
"teardown-command"
:
[
"bm uninstall -n com.example.windows"
]
}
]
}
\ No newline at end of file
arkXtest/uitest/src/main/config.json
浏览文件 @
85f992fe
{
"app"
:
{
"vendor"
:
"open"
,
"bundleName"
:
"com.uitest.
test
"
,
"bundleName"
:
"com.uitest.
acts
"
,
"version"
:
{
"code"
:
1000000
,
"name"
:
"1.0.0"
...
...
@@ -14,7 +14,7 @@
},
"deviceConfig"
:
{},
"module"
:
{
"package"
:
"com.uitest.
test
"
,
"package"
:
"com.uitest.
acts
"
,
"name"
:
".MyApplication"
,
"mainAbility"
:
".MainAbility"
,
"srcPath"
:
"MainAbility"
,
...
...
arkXtest/uitest/src/main/ets/MainAbility/pages/index.ets
浏览文件 @
85f992fe
/**
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import router from '@system.router';
import prompt from '@ohos.prompt';
...
...
@@ -41,7 +27,12 @@ struct ScrollExample {
router.push({ uri: 'pages/fourth' })
})
)
Text('Click twice')
Button() {
Text('Click twice')
.fontSize(25)
.fontWeight(FontWeight.Bold)
}
.type(ButtonType.Capsule)
.margin({top:20})
.gesture(
TapGesture({ count: 2 })
...
...
arkXtest/uitest/src/main/ets/MainAbility/pages/third.ets
浏览文件 @
85f992fe
...
...
@@ -25,7 +25,7 @@ struct Third{
.fontSize(50)
.fontWeight(FontWeight.Bold)
Button() {
Text('
page_3
')
Text('
doubleClick
')
.fontSize(20)
.fontWeight(FontWeight.Bold)
}.type(ButtonType.Capsule)
...
...
arkXtest/uitest/src/main/ets/TestAbility/pages/index.ets
浏览文件 @
85f992fe
...
...
@@ -41,7 +41,12 @@ struct ScrollExample {
router.push({ uri: 'pages/fourth' })
})
)
Text('Click twice')
Button() {
Text('Click twice')
.fontSize(25)
.fontWeight(FontWeight.Bold)
}
.type(ButtonType.Capsule)
.margin({top:20})
.gesture(
TapGesture({ count: 2 })
...
...
arkXtest/uitest/src/main/ets/TestAbility/pages/third.ets
浏览文件 @
85f992fe
...
...
@@ -25,7 +25,7 @@ struct Third{
.fontSize(50)
.fontWeight(FontWeight.Bold)
Button() {
Text('
page_3
')
Text('
doubleClick
')
.fontSize(20)
.fontWeight(FontWeight.Bold)
}.type(ButtonType.Capsule)
...
...
arkXtest/uitest/src/main/ets/test/List.test.ets
浏览文件 @
85f992fe
...
...
@@ -12,7 +12,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import abilityTest from './
Ability
.test'
import abilityTest from './
uitest
.test'
export default function testsuite() {
abilityTest()
...
...
arkXtest/uitest/src/main/ets/test/
Ability
.test.ets
→
arkXtest/uitest/src/main/ets/test/
uitest
.test.ets
浏览文件 @
85f992fe
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录