commit
Showing
8 changed files
with
13 additions
and
17 deletions
| ... | @@ -6,9 +6,8 @@ from airtest.core.api import * | ... | @@ -6,9 +6,8 @@ from airtest.core.api import * |
| 6 | def exitLogin(): | 6 | def exitLogin(): |
| 7 | touch(Template(r"tpl1622181656726.png", record_pos=(0.306, -0.932), resolution=(1080, 2340))) | 7 | touch(Template(r"tpl1622181656726.png", record_pos=(0.306, -0.932), resolution=(1080, 2340))) |
| 8 | sleep(3) | 8 | sleep(3) |
| 9 | touch(Template(r"tpl1622181674939.png", record_pos=(-0.005, 0.621), resolution=(1080, 2340))) | 9 | touch(Template(r"tpl1673341430067.png", record_pos=(-0.233, 0.701), resolution=(750, 1334))) |
| 10 | sleep(3) | 10 | sleep(3) |
| 11 | touch(Template(r"tpl1623058726543.png", record_pos=(0.188, 0.096), resolution=(750, 1334))) | 11 | touch(Template(r"tpl1623058726543.png", record_pos=(0.188, 0.096), resolution=(750, 1334))) |
| 12 | 12 | ||
| 13 | sleep(5) | ||
| 14 | assert_exists(Template(r"tpl1622181718756.png", record_pos=(0.0, -0.31), resolution=(1080, 2340)), "验证退出登录正确") | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 13 | sleep(5) | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
ios/exitLogin.air/tpl1673341430067.png
0 → 100644
6.95 KB
| ... | @@ -22,7 +22,7 @@ def loginPre(): | ... | @@ -22,7 +22,7 @@ def loginPre(): |
| 22 | 22 | ||
| 23 | 23 | ||
| 24 | def login(): | 24 | def login(): |
| 25 | touch(Template(r"tpl1622181202002.png", record_pos=(-0.226, -0.798), resolution=(1080, 2340))) | 25 | touch(Template(r"tpl1673336974210.png", record_pos=(-0.251, -0.492), resolution=(750, 1334))) |
| 26 | sleep(8) | 26 | sleep(8) |
| 27 | text("13683238581") | 27 | text("13683238581") |
| 28 | sleep(3) | 28 | sleep(3) |
| ... | @@ -31,9 +31,7 @@ def login(): | ... | @@ -31,9 +31,7 @@ def login(): |
| 31 | text("6666") | 31 | text("6666") |
| 32 | touch(Template(r"tpl1622181266358.png", record_pos=(0.002, -0.308), resolution=(1080, 2340))) | 32 | touch(Template(r"tpl1622181266358.png", record_pos=(0.002, -0.308), resolution=(1080, 2340))) |
| 33 | sleep(6) | 33 | sleep(6) |
| 34 | if(exists(Template(r"tpl1622181344490.png", record_pos=(0.009, 0.414), resolution=(1080, 2340))) != False): | 34 | touch(Template(r"tpl1673337074389.png", record_pos=(0.18, 0.404), resolution=(750, 1334))) |
| 35 | touch(Template(r"tpl1622181344490.png", record_pos=(0.009, 0.414), resolution=(1080, 2340))) | ||
| 36 | |||
| 37 | sleep(10) | 35 | sleep(10) |
| 38 | if(exists(Template(r"tpl1623051624594.png", record_pos=(-0.004, -0.744), resolution=(1080, 2340))) != False): | 36 | if(exists(Template(r"tpl1623051624594.png", record_pos=(-0.004, -0.744), resolution=(1080, 2340))) != False): |
| 39 | touch(Template(r"tpl1623052352857.png", record_pos=(-0.01, 0.701), resolution=(1080, 2340))) | 37 | touch(Template(r"tpl1623052352857.png", record_pos=(-0.01, 0.701), resolution=(1080, 2340))) |
| ... | @@ -41,4 +39,3 @@ def login(): | ... | @@ -41,4 +39,3 @@ def login(): |
| 41 | if(exists(Template(r"tpl1623058613252.png", record_pos=(-0.001, 0.0), resolution=(750, 1334))) != False): | 39 | if(exists(Template(r"tpl1623058613252.png", record_pos=(-0.001, 0.0), resolution=(750, 1334))) != False): |
| 42 | touch(Template(r"tpl1623058642790.png", record_pos=(-0.188, 0.164), resolution=(750, 1334))) | 40 | touch(Template(r"tpl1623058642790.png", record_pos=(-0.188, 0.164), resolution=(750, 1334))) |
| 43 | sleep(3) | 41 | sleep(3) |
| 44 | assert_exists(Template(r"tpl1622181656726.png", record_pos=(0.306, -0.932), resolution=(1080, 2340)), "验证登录正确") | ... | ... |
ios/login.air/tpl1673336974210.png
0 → 100644
28.1 KB
ios/login.air/tpl1673337074389.png
0 → 100644
6.44 KB
| ... | @@ -74,20 +74,20 @@ sleep(3) | ... | @@ -74,20 +74,20 @@ sleep(3) |
| 74 | shenghuozhoubian() | 74 | shenghuozhoubian() |
| 75 | sleep(3) | 75 | sleep(3) |
| 76 | 76 | ||
| 77 | enter() | 77 | # enter() |
| 78 | sleep(3) | 78 | # sleep(3) |
| 79 | tianqi() | 79 | # tianqi() |
| 80 | sleep(3) | 80 | # sleep(3) |
| 81 | 81 | ||
| 82 | enter() | 82 | enter() |
| 83 | sleep(3) | 83 | sleep(3) |
| 84 | jibu() | 84 | jibu() |
| 85 | sleep(3) | 85 | sleep(3) |
| 86 | 86 | ||
| 87 | enter() | 87 | # enter() |
| 88 | sleep(3) | 88 | # sleep(3) |
| 89 | xinwen() | 89 | # xinwen() |
| 90 | sleep(3) | 90 | # sleep(3) |
| 91 | 91 | ||
| 92 | enter() | 92 | enter() |
| 93 | sleep(3) | 93 | sleep(3) | ... | ... |
| ... | @@ -50,7 +50,7 @@ def jiankangzixun(): | ... | @@ -50,7 +50,7 @@ def jiankangzixun(): |
| 50 | sleep(3) | 50 | sleep(3) |
| 51 | 51 | ||
| 52 | def mingyizhuanjia(): | 52 | def mingyizhuanjia(): |
| 53 | touch(Template(r"tpl1623828845677.png", record_pos=(0.31, -0.372), resolution=(1080, 2340))) | 53 | touch(Template(r"tpl1673340510528.png", record_pos=(0.355, -0.251), resolution=(750, 1334))) |
| 54 | sleep(8) | 54 | sleep(8) |
| 55 | touch((541,1087)) | 55 | touch((541,1087)) |
| 56 | sleep(8) | 56 | sleep(8) | ... | ... |
ios/setting.air/tpl1673340510528.png
0 → 100644
12.1 KB
-
Please register or sign in to post a comment