-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_2.py
45 lines (32 loc) · 907 Bytes
/
test_2.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/env python
# -*- coding:utf-8 -*-
""""""
import time
import airtest.core.device
import allure
from hytest import GSTORE
from mainPage import MainPage
from myAirtest import myAirTest
from mylog import ReportLog
from loginLogic import LoginLogic
from airtest.report.report import simple_report
myair = myAirTest()
mylogger = ReportLog()
air = airtest
account = 'gj00001'
devices = myair.readIniDevices('common', 'devices')
def setup_module():
newpoco = GSTORE['newpoco']
# LoginLogic(newpoco).login_game(account)
time.sleep(2)
def teardown_module():
pass
def setup_function():
newpoco = GSTORE['newpoco']
def teardown_function(newpoco):
print()
def test_2(newpoco):
with allure.step('点击 换区,再 关闭 弹窗'):
newpoco('btnChange').click()
time.sleep(1)
newpoco('btnClose').click()