30 lines
869 B
Python
30 lines
869 B
Python
# -*- coding: utf-8 -*-
|
|
# __author__ = 'luozhipeng'
|
|
|
|
import allure
|
|
from airtest.core.api import *
|
|
from ui_auto_lego.common import handle_driver
|
|
from ui_library.page.student import login, home
|
|
from ui_library.common.read_config import readconfig
|
|
from ui_auto_lego.common.launch import InitMobilStartApp
|
|
|
|
handle_driver_obj = handle_driver.HandleDriver()
|
|
login_page = login.Login()
|
|
home_page = home.Home()
|
|
rf_config = readconfig()
|
|
user_info = eval(rf_config.study_user)
|
|
|
|
|
|
@allure.feature('ViSpark Study 日历标识测试')
|
|
class TestCalendarSign(object):
|
|
init_mobile_start_app = InitMobilStartApp()
|
|
poco_driver = init_mobile_start_app.poco_driver
|
|
|
|
def setup(self):
|
|
# 启动被测试应用
|
|
self.init_mobile_start_app.launch_app()
|
|
|
|
def teardown(self):
|
|
# 退出被测试应用并清理数据
|
|
self.init_mobile_start_app.quit()
|