Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Applications Sample Wifi Iot
提交
79fde244
A
Applications Sample Wifi Iot
项目概览
OpenHarmony
/
Applications Sample Wifi Iot
大约 1 年 前同步成功
通知
3
Star
24
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
Applications Sample Wifi Iot
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
79fde244
编写于
4月 26, 2022
作者:
O
openharmony_ci
提交者:
Gitee
4月 26, 2022
浏览文件
操作
浏览文件
下载
差异文件
!34 input 改名为uinput
Merge pull request !34 from mayunteng/master
上级
82d732ea
b6fe8dbc
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
16 addition
and
16 deletion
+16
-16
screenshot/rk_master/app_capture_screen_test_config.json
screenshot/rk_master/app_capture_screen_test_config.json
+2
-2
screenshot/rk_master/capturescreentest.py
screenshot/rk_master/capturescreentest.py
+7
-7
screenshot/rk_weekly/capturescreentest.py
screenshot/rk_weekly/capturescreentest.py
+7
-7
未找到文件。
screenshot/rk_master/app_capture_screen_test_config.json
浏览文件 @
79fde244
...
...
@@ -14,7 +14,7 @@
"app_name"
:
"lock"
,
"entry"
:
""
,
"hdc_list_cmd"
:[
"hdc_std list targets"
],
"rm_lock_cmd"
:[
"hdc_std shell input -T -m 350 900 350 300"
],
"rm_lock_cmd"
:[
"hdc_std shell
u
input -T -m 350 900 350 300"
],
"reboot_cmd"
:[
"hdc_std shell reboot"
],
"rm_data_cmd"
:[
"hdc_std shell rm -rf data/*"
],
"powermode_cmd"
:[
"hdc_std shell
\"
power-shell setmode 602
\"
"
],
...
...
@@ -87,4 +87,4 @@
"entry"
:
"aa start -a com.ohos.note.MainAbility -b com.ohos.note"
,
"all_actions"
:
[[
2
,
"permisson_ok-x-y"
],
[
2
,
"permisson_ok-x-y"
],
[
2
,
"permisson_ok-x-y"
],
[
2
,
"permisson_ok-x-y"
],
[
2
,
"permisson_ok-x-y"
],
[
2
,
"shot_cmd"
],
[
2
,
"recent-x-y"
],
[
2
,
"recent_del-x-y"
],
[
2
,
"recent-x-y"
],
[
2
,
"recent_del-x-y"
],
[
2
,
"cmp_cmd-level"
]]
}
]
\ No newline at end of file
]
screenshot/rk_master/capturescreentest.py
浏览文件 @
79fde244
...
...
@@ -43,10 +43,10 @@ if __name__ == "__main__":
cmp_status
=
0
global_pos
=
all_app
[
0
]
return_cmd
=
"hdc_std shell input -M -m {} {} -c 0"
.
format
(
global_pos
[
'return-x-y'
][
0
],
global_pos
[
'return-x-y'
][
1
])
recent_cmd
=
"hdc_std shell input -M -m {} {} -c 0"
.
format
(
global_pos
[
'recent-x-y'
][
0
],
global_pos
[
'recent-x-y'
][
1
])
home_cmd
=
"hdc_std shell input -M -m {} {} -c 0"
.
format
(
global_pos
[
'home-x-y'
][
0
],
global_pos
[
'home-x-y'
][
1
])
recent_del_cmd
=
"hdc_std shell input -M -m {} {} -c 0"
.
format
(
global_pos
[
'recent_del-x-y'
][
0
],
global_pos
[
'recent_del-x-y'
][
1
])
return_cmd
=
"hdc_std shell
u
input -M -m {} {} -c 0"
.
format
(
global_pos
[
'return-x-y'
][
0
],
global_pos
[
'return-x-y'
][
1
])
recent_cmd
=
"hdc_std shell
u
input -M -m {} {} -c 0"
.
format
(
global_pos
[
'recent-x-y'
][
0
],
global_pos
[
'recent-x-y'
][
1
])
home_cmd
=
"hdc_std shell
u
input -M -m {} {} -c 0"
.
format
(
global_pos
[
'home-x-y'
][
0
],
global_pos
[
'home-x-y'
][
1
])
recent_del_cmd
=
"hdc_std shell
u
input -M -m {} {} -c 0"
.
format
(
global_pos
[
'recent_del-x-y'
][
0
],
global_pos
[
'recent_del-x-y'
][
1
])
os
.
system
(
"hdc_std kill"
)
os
.
system
(
"hdc_std start"
)
EnterCmd
(
"hdc_std list targets"
,
1
)
...
...
@@ -120,10 +120,10 @@ if __name__ == "__main__":
sys
.
stdout
.
flush
()
#this cmd only is a name of x,y postion, to get x,y an click it
else
:
next_cmd
=
"hdc_std shell input -M -m {} {} -c 0"
.
format
(
target_
[
0
],
target_
[
1
])
#input x,y postion, to click it
next_cmd
=
"hdc_std shell
u
input -M -m {} {} -c 0"
.
format
(
target_
[
0
],
target_
[
1
])
#
u
input x,y postion, to click it
else
:
next_cmd
=
"hdc_std shell input -M -m {} {} -c 0"
.
format
(
single_action
[
1
],
single_action
[
2
])
next_cmd
=
"hdc_std shell
u
input -M -m {} {} -c 0"
.
format
(
single_action
[
1
],
single_action
[
2
])
EnterCmd
(
next_cmd
,
single_action
[
0
])
if
cmp_status
!=
0
:
...
...
screenshot/rk_weekly/capturescreentest.py
浏览文件 @
79fde244
...
...
@@ -43,10 +43,10 @@ if __name__ == "__main__":
cmp_status
=
0
global_pos
=
all_app
[
0
]
return_cmd
=
"hdc_std shell input -M -m {} {} -c 0"
.
format
(
global_pos
[
'return-x-y'
][
0
],
global_pos
[
'return-x-y'
][
1
])
recent_cmd
=
"hdc_std shell input -M -m {} {} -c 0"
.
format
(
global_pos
[
'recent-x-y'
][
0
],
global_pos
[
'recent-x-y'
][
1
])
home_cmd
=
"hdc_std shell input -M -m {} {} -c 0"
.
format
(
global_pos
[
'home-x-y'
][
0
],
global_pos
[
'home-x-y'
][
1
])
recent_del_cmd
=
"hdc_std shell input -M -m {} {} -c 0"
.
format
(
global_pos
[
'recent_del-x-y'
][
0
],
global_pos
[
'recent_del-x-y'
][
1
])
return_cmd
=
"hdc_std shell
u
input -M -m {} {} -c 0"
.
format
(
global_pos
[
'return-x-y'
][
0
],
global_pos
[
'return-x-y'
][
1
])
recent_cmd
=
"hdc_std shell
u
input -M -m {} {} -c 0"
.
format
(
global_pos
[
'recent-x-y'
][
0
],
global_pos
[
'recent-x-y'
][
1
])
home_cmd
=
"hdc_std shell
u
input -M -m {} {} -c 0"
.
format
(
global_pos
[
'home-x-y'
][
0
],
global_pos
[
'home-x-y'
][
1
])
recent_del_cmd
=
"hdc_std shell
u
input -M -m {} {} -c 0"
.
format
(
global_pos
[
'recent_del-x-y'
][
0
],
global_pos
[
'recent_del-x-y'
][
1
])
os
.
system
(
"hdc_std kill"
)
os
.
system
(
"hdc_std start"
)
EnterCmd
(
"hdc_std list targets"
,
1
)
...
...
@@ -120,10 +120,10 @@ if __name__ == "__main__":
sys
.
stdout
.
flush
()
#this cmd only is a name of x,y postion, to get x,y an click it
else
:
next_cmd
=
"hdc_std shell input -M -m {} {} -c 0"
.
format
(
target_
[
0
],
target_
[
1
])
#input x,y postion, to click it
next_cmd
=
"hdc_std shell
u
input -M -m {} {} -c 0"
.
format
(
target_
[
0
],
target_
[
1
])
#
u
input x,y postion, to click it
else
:
next_cmd
=
"hdc_std shell input -M -m {} {} -c 0"
.
format
(
single_action
[
1
],
single_action
[
2
])
next_cmd
=
"hdc_std shell
u
input -M -m {} {} -c 0"
.
format
(
single_action
[
1
],
single_action
[
2
])
EnterCmd
(
next_cmd
,
single_action
[
0
])
if
cmp_status
!=
0
:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录