# coding=utf-8 import unittest from page.user.UserLoginPage import UserLoginPage from page.user.UserRegisterPage import UserRegisterPage from public.GetDriver import mydriver from public.StartAppiumServer import Sp driver = mydriver() appiumserver = Sp(driver) class User(unittest.TestCase): @classmethod def setUpClass(cls): pass @classmethod def tearDownClass(cls): pass def test_user_register(self): ''' 注册 :return: ''' add = UserRegisterPage(driver) add.register() add.home()
#coding=utf-8 #author='Shichao-Dong' from page.cm.CmAddcmPage import AddcmPage from page.cm.CmSortcmPage import SortcmPage from public.GetDriver import mydriver driver = mydriver() import unittest,time class Cm(unittest.TestCase): def test_001addcm(self): ''' 新增客户 :return: ''' add = AddcmPage(driver) add.operateap() add.home() def test_002sortcm(self): ''' 客户排序 :return: ''' sort = SortcmPage(driver)