commit
Showing
7 changed files
with
31 additions
and
0 deletions
| ... | @@ -4,9 +4,11 @@ __author__ = "zhanghao" | ... | @@ -4,9 +4,11 @@ __author__ = "zhanghao" |
| 4 | from airtest.core.api import * | 4 | from airtest.core.api import * |
| 5 | using("login.air") | 5 | using("login.air") |
| 6 | using("exitLogin.air") | 6 | using("exitLogin.air") |
| 7 | using("setting.air") | ||
| 7 | 8 | ||
| 8 | from login import login | 9 | from login import login |
| 9 | from exitLogin import exitLogin | 10 | from exitLogin import exitLogin |
| 11 | from setting import * | ||
| 10 | 12 | ||
| 11 | auto_setup(__file__, logdir=True) | 13 | auto_setup(__file__, logdir=True) |
| 12 | connect_device("Android:///2PF4C19807005028?cap_method=javacap&touch_method=adb") | 14 | connect_device("Android:///2PF4C19807005028?cap_method=javacap&touch_method=adb") |
| ... | @@ -20,6 +22,12 @@ sleep(8) | ... | @@ -20,6 +22,12 @@ sleep(8) |
| 20 | login() | 22 | login() |
| 21 | sleep(3) | 23 | sleep(3) |
| 22 | 24 | ||
| 25 | enter() | ||
| 26 | sleep(3) | ||
| 27 | |||
| 28 | xinlvzice() | ||
| 29 | sleep(3) | ||
| 30 | |||
| 23 | exitLogin() | 31 | exitLogin() |
| 24 | sleep(3) | 32 | sleep(3) |
| 25 | 33 | ... | ... |
android/setting.air/setting.py
0 → 100644
| 1 | # -*- encoding=utf8 -*- | ||
| 2 | __author__ = "sifude" | ||
| 3 | |||
| 4 | from airtest.core.api import * | ||
| 5 | |||
| 6 | def enter(): | ||
| 7 | touch(Template(r"tpl1623744754522.png", record_pos=(0.387, 0.86), resolution=(1080, 2340))) | ||
| 8 | sleep(3) | ||
| 9 | |||
| 10 | def xinlvzice(): | ||
| 11 | touch(Template(r"tpl1623744811046.png", record_pos=(-0.315, -0.38), resolution=(1080, 2340))) | ||
| 12 | sleep(3) | ||
| 13 | touch(Template(r"tpl1623748349958.png", record_pos=(-0.006, 0.35), resolution=(1080, 2340))) | ||
| 14 | if(exists(Template(r"tpl1623748400309.png", record_pos=(0.241, 0.828), resolution=(1080, 2340))) != False): | ||
| 15 | touch(Template(r"tpl1623748400309.png", record_pos=(0.241, 0.828), resolution=(1080, 2340))) | ||
| 16 | sleep(30) | ||
| 17 | touch(Template(r"tpl1623748540515.png", record_pos=(0.372, 0.913), resolution=(1080, 2340))) | ||
| 18 | sleep(3) | ||
| 19 | |||
| 20 | |||
| 21 | |||
| 22 | |||
| 23 |
android/setting.air/tpl1623744754522.png
0 → 100644
13.6 KB
android/setting.air/tpl1623744811046.png
0 → 100644
18.2 KB
android/setting.air/tpl1623748349958.png
0 → 100644
35.7 KB
android/setting.air/tpl1623748400309.png
0 → 100644
20.8 KB
android/setting.air/tpl1623748540515.png
0 → 100644
14.2 KB
-
Please register or sign in to post a comment