commit
Showing
46 changed files
with
175 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("iOS:///127.0.0.1:8100") | 14 | connect_device("iOS:///127.0.0.1:8100") |
| ... | @@ -18,6 +20,61 @@ sleep(8) | ... | @@ -18,6 +20,61 @@ sleep(8) |
| 18 | login() | 20 | login() |
| 19 | sleep(3) | 21 | sleep(3) |
| 20 | 22 | ||
| 23 | enter() | ||
| 24 | sleep(3) | ||
| 25 | xinlvzice() | ||
| 26 | sleep(3) | ||
| 27 | |||
| 28 | enter() | ||
| 29 | sleep(3) | ||
| 30 | jiankangkecheng() | ||
| 31 | sleep(3) | ||
| 32 | |||
| 33 | enter() | ||
| 34 | sleep(3) | ||
| 35 | jiankangzixun() | ||
| 36 | sleep(3) | ||
| 37 | |||
| 38 | enter() | ||
| 39 | sleep(3) | ||
| 40 | mingyizhuanjia() | ||
| 41 | sleep(3) | ||
| 42 | |||
| 43 | enter() | ||
| 44 | sleep(3) | ||
| 45 | jibingzice() | ||
| 46 | sleep(3) | ||
| 47 | |||
| 48 | enter() | ||
| 49 | sleep(3) | ||
| 50 | zhongyitizhiceshi() | ||
| 51 | sleep(3) | ||
| 52 | |||
| 53 | enter() | ||
| 54 | sleep(3) | ||
| 55 | dianhuayisheng() | ||
| 56 | sleep(3) | ||
| 57 | |||
| 58 | enter() | ||
| 59 | sleep(3) | ||
| 60 | tiaoyang() | ||
| 61 | sleep(3) | ||
| 62 | |||
| 63 | enter() | ||
| 64 | sleep(3) | ||
| 65 | yingyangpeican() | ||
| 66 | sleep(3) | ||
| 67 | |||
| 68 | enter() | ||
| 69 | sleep(3) | ||
| 70 | chaojixinka() | ||
| 71 | sleep(3) | ||
| 72 | |||
| 73 | # enter() | ||
| 74 | # sleep(3) | ||
| 75 | # jiankangceping() | ||
| 76 | # sleep(3) | ||
| 77 | |||
| 21 | exitLogin() | 78 | exitLogin() |
| 22 | sleep(3) | 79 | sleep(3) |
| 23 | 80 | ... | ... |
ios/setting.air/setting.py
0 → 100644
| 1 | # -*- encoding=utf8 -*- | ||
| 2 | __author__ = "sifude" | ||
| 3 | |||
| 4 | from airtest.core.api import * | ||
| 5 | |||
| 6 | def enter(): | ||
| 7 | if(exists(Template(r"tpl1623828598507.png", record_pos=(-0.2, 0.133), resolution=(1080, 2340))) != False): | ||
| 8 | touch(Template(r"tpl1623828629086.png", record_pos=(-0.2, 0.142), resolution=(1080, 2340))) | ||
| 9 | sleep(3) | ||
| 10 | touch(Template(r"tpl1623744754522.png", record_pos=(0.387, 0.86), resolution=(1080, 2340))) | ||
| 11 | sleep(3) | ||
| 12 | |||
| 13 | def xinlvzice(): | ||
| 14 | touch(Template(r"tpl1623744811046.png", record_pos=(-0.315, -0.38), resolution=(1080, 2340))) | ||
| 15 | sleep(3) | ||
| 16 | touch(Template(r"tpl1623748349958.png", record_pos=(-0.006, 0.35), resolution=(1080, 2340))) | ||
| 17 | if(exists(Template(r"tpl1623748400309.png", record_pos=(0.241, 0.828), resolution=(1080, 2340))) != False): | ||
| 18 | touch(Template(r"tpl1623748400309.png", record_pos=(0.241, 0.828), resolution=(1080, 2340))) | ||
| 19 | sleep(30) | ||
| 20 | touch(Template(r"tpl1623748540515.png", record_pos=(0.372, 0.913), resolution=(1080, 2340))) | ||
| 21 | sleep(3) | ||
| 22 | |||
| 23 | def jiankangkecheng(): | ||
| 24 | touch(Template(r"tpl1623812649752.png", record_pos=(-0.105, -0.375), resolution=(1080, 2340))) | ||
| 25 | sleep(8) | ||
| 26 | touch(Template(r"tpl1623812696842.png", record_pos=(0.003, 0.513), resolution=(1080, 2340))) | ||
| 27 | sleep(8) | ||
| 28 | touch(Template(r"tpl1623909683955.png", record_pos=(0.392, 0.835), resolution=(750, 1334))) | ||
| 29 | sleep(3) | ||
| 30 | touch(Template(r"tpl1623909816640.png", record_pos=(0.177, 0.125), resolution=(750, 1334))) | ||
| 31 | sleep(3) | ||
| 32 | |||
| 33 | def jiankangzixun(): | ||
| 34 | touch(Template(r"tpl1623827890035.png", record_pos=(0.109, -0.381), resolution=(1080, 2340))) | ||
| 35 | sleep(8) | ||
| 36 | touch((733,1242)) | ||
| 37 | sleep(8) | ||
| 38 | touch(Template(r"tpl1623828668533.png", record_pos=(-0.444, -0.93), resolution=(1080, 2340))) | ||
| 39 | sleep(3) | ||
| 40 | touch(Template(r"tpl1623828668533.png", record_pos=(-0.444, -0.93), resolution=(1080, 2340))) | ||
| 41 | sleep(3) | ||
| 42 | |||
| 43 | def mingyizhuanjia(): | ||
| 44 | touch(Template(r"tpl1623828845677.png", record_pos=(0.31, -0.372), resolution=(1080, 2340))) | ||
| 45 | sleep(8) | ||
| 46 | touch((541,1087)) | ||
| 47 | sleep(8) | ||
| 48 | touch(Template(r"tpl1623828668533.png", record_pos=(-0.444, -0.93), resolution=(1080, 2340))) | ||
| 49 | sleep(3) | ||
| 50 | touch(Template(r"tpl1623828668533.png", record_pos=(-0.444, -0.93), resolution=(1080, 2340))) | ||
| 51 | sleep(3) | ||
| 52 | |||
| 53 | def jibingzice(): | ||
| 54 | touch(Template(r"tpl1623829188535.png", record_pos=(-0.106, -0.152), resolution=(1080, 2340))) | ||
| 55 | sleep(5) | ||
| 56 | touch(Template(r"tpl1623829217686.png", record_pos=(0.408, -0.464), resolution=(1080, 2340))) | ||
| 57 | sleep(3) | ||
| 58 | touch(Template(r"tpl1623828668533.png", record_pos=(-0.444, -0.93), resolution=(1080, 2340))) | ||
| 59 | sleep(3) | ||
| 60 | |||
| 61 | def zhongyitizhiceshi(): | ||
| 62 | touch(Template(r"tpl1623832130028.png", record_pos=(0.105, -0.156), resolution=(1080, 2340))) | ||
| 63 | sleep(5) | ||
| 64 | touch(Template(r"tpl1623832200192.png", record_pos=(0.321, -0.581), resolution=(1080, 2340))) | ||
| 65 | sleep(5) | ||
| 66 | touch(Template(r"tpl1623832242279.png", record_pos=(0.379, 0.916), resolution=(1080, 2340))) | ||
| 67 | sleep(3) | ||
| 68 | |||
| 69 | def dianhuayisheng(): | ||
| 70 | touch(Template(r"tpl1623834781934.png", record_pos=(0.319, -0.158), resolution=(1080, 2340))) | ||
| 71 | sleep(5) | ||
| 72 | touch(Template(r"tpl1623834818100.png", record_pos=(-0.445, -0.927), resolution=(1080, 2340))) | ||
| 73 | sleep(5) | ||
| 74 | |||
| 75 | def tiaoyang(): | ||
| 76 | touch(Template(r"tpl1623834874596.png", record_pos=(-0.319, 0.069), resolution=(1080, 2340))) | ||
| 77 | sleep(5) | ||
| 78 | touch(Template(r"tpl1623834932927.png", record_pos=(0.106, -0.165), resolution=(1080, 2340))) | ||
| 79 | sleep(5) | ||
| 80 | touch(Template(r"tpl1623834979749.png", record_pos=(0.383, 0.913), resolution=(1080, 2340))) | ||
| 81 | sleep(5) | ||
| 82 | def yingyangpeican(): | ||
| 83 | touch(Template(r"tpl1623837506072.png", record_pos=(-0.11, 0.071), resolution=(1080, 2340))) | ||
| 84 | sleep(5) | ||
| 85 | touch(Template(r"tpl1623837571224.png", record_pos=(-0.008, -0.4), resolution=(1080, 2340))) | ||
| 86 | sleep(5) | ||
| 87 | touch(Template(r"tpl1623837594240.png", record_pos=(0.381, 0.918), resolution=(1080, 2340))) | ||
| 88 | sleep(5) | ||
| 89 | |||
| 90 | def chaojixinka(): | ||
| 91 | touch(Template(r"tpl1623837839107.png", record_pos=(0.1, 0.069), resolution=(1080, 2340))) | ||
| 92 | sleep(5) | ||
| 93 | touch(Template(r"tpl1623837870578.png", record_pos=(-0.274, -0.369), resolution=(1080, 2340))) | ||
| 94 | sleep(5) | ||
| 95 | touch(Template(r"tpl1623837891282.png", record_pos=(-0.338, -0.931), resolution=(1080, 2340))) | ||
| 96 | sleep(5) | ||
| 97 | |||
| 98 | def jiankangceping(): | ||
| 99 | touch(Template(r"tpl1623837976118.png", record_pos=(0.311, 0.073), resolution=(1080, 2340))) | ||
| 100 | sleep(5) | ||
| 101 | touch(Template(r"tpl1623838003031.png", record_pos=(0.046, -0.634), resolution=(1080, 2340))) | ||
| 102 | sleep(5) | ||
| 103 | touch(Template(r"tpl1623913140712.png", record_pos=(0.356, 0.821), resolution=(750, 1334))) | ||
| 104 | sleep(5) | ||
| 105 | touch(Template(r"tpl1623838047770.png", record_pos=(0.384, 0.918), resolution=(1080, 2340))) | ||
| 106 | sleep(5) | ||
| 107 | |||
| 108 | |||
| 109 | |||
| 110 | |||
| 111 | |||
| 112 | |||
| 113 | |||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
ios/setting.air/tpl1623744754522.png
0 → 100644
13.6 KB
ios/setting.air/tpl1623744811046.png
0 → 100644
18.2 KB
ios/setting.air/tpl1623748349958.png
0 → 100644
35.7 KB
ios/setting.air/tpl1623748400309.png
0 → 100644
20.8 KB
ios/setting.air/tpl1623748540515.png
0 → 100644
14.2 KB
ios/setting.air/tpl1623812649752.png
0 → 100644
18.8 KB
ios/setting.air/tpl1623812696842.png
0 → 100644
35.3 KB
ios/setting.air/tpl1623812722462.png
0 → 100644
13.9 KB
ios/setting.air/tpl1623812875140.png
0 → 100644
8.04 KB
ios/setting.air/tpl1623812908723.png
0 → 100644
14.4 KB
ios/setting.air/tpl1623812947688.png
0 → 100644
15.2 KB
ios/setting.air/tpl1623827890035.png
0 → 100644
16.3 KB
ios/setting.air/tpl1623828075151.png
0 → 100644
310 KB
ios/setting.air/tpl1623828598507.png
0 → 100644
8.65 KB
ios/setting.air/tpl1623828629086.png
0 → 100644
9.09 KB
ios/setting.air/tpl1623828668533.png
0 → 100644
3.05 KB
ios/setting.air/tpl1623828845677.png
0 → 100644
18.6 KB
ios/setting.air/tpl1623828875205.png
0 → 100644
110 KB
ios/setting.air/tpl1623829118472.png
0 → 100644
16.3 KB
ios/setting.air/tpl1623829188535.png
0 → 100644
18.5 KB
ios/setting.air/tpl1623829217686.png
0 → 100644
25.4 KB
ios/setting.air/tpl1623832130028.png
0 → 100644
22.1 KB
ios/setting.air/tpl1623832200192.png
0 → 100644
19.7 KB
ios/setting.air/tpl1623832242279.png
0 → 100644
13.8 KB
ios/setting.air/tpl1623834781934.png
0 → 100644
24.1 KB
ios/setting.air/tpl1623834818100.png
0 → 100644
3.07 KB
ios/setting.air/tpl1623834874596.png
0 → 100644
12.9 KB
ios/setting.air/tpl1623834932927.png
0 → 100644
15.8 KB
ios/setting.air/tpl1623834979749.png
0 → 100644
14.5 KB
ios/setting.air/tpl1623837506072.png
0 → 100644
18 KB
ios/setting.air/tpl1623837571224.png
0 → 100644
36.1 KB
ios/setting.air/tpl1623837594240.png
0 → 100644
13.8 KB
ios/setting.air/tpl1623837839107.png
0 → 100644
15.4 KB
ios/setting.air/tpl1623837870578.png
0 → 100644
61.3 KB
ios/setting.air/tpl1623837891282.png
0 → 100644
3.8 KB
ios/setting.air/tpl1623837918635.png
0 → 100644
13.2 KB
ios/setting.air/tpl1623837976118.png
0 → 100644
18.9 KB
ios/setting.air/tpl1623838003031.png
0 → 100644
40.7 KB
ios/setting.air/tpl1623838025924.png
0 → 100644
11.3 KB
ios/setting.air/tpl1623838047770.png
0 → 100644
13.2 KB
ios/setting.air/tpl1623909683955.png
0 → 100644
7.02 KB
ios/setting.air/tpl1623909816640.png
0 → 100644
4.02 KB
ios/setting.air/tpl1623913140712.png
0 → 100644
7.01 KB
-
Please register or sign in to post a comment