def setUp(self) -> None:
        self.driver = Service.get_driver('..\\config\\base.conf')
        test_base_info = Utility.get_json('..\\config\\base.conf')
        self.train = TrainSource(self.driver)

        self.train.send_sencpass(test_base_info['erji_pwd_zixun_manager'])
        self.train.click_train_source()
Esempio n. 2
0
 def setUpClass(cls):
     cls.driver = Service.get_driver('..\\config\\base.conf')
     cls.common = ManageResource(cls.driver, '..\\config\\base.conf')
 def setUpClass(cls):
     cls.driver = Service.get_driver('..\\config\\base.conf')
     cls.common = Market(cls.driver, '..\\config\\base.conf')
Esempio n. 4
0
 def setUp(self) -> None:
     self.driver = Service.get_driver('..\\config\\base.conf')
     self.transmit = TrainTransmit(self.driver)
Esempio n. 5
0
 def setUp(self) -> None:
     self.driver = Service.get_driver('..\\config\\base.conf')
     self.abandon = TrainAbadon(self.driver)
Esempio n. 6
0
 def setUp(self) -> None:
     self.driver = Service.get_driver('..\\config\\base.conf')
     self.public = TrainPublic(self.driver)
Esempio n. 7
0
 def setUp(self):
     self.driver = Service.get_driver('..\\config\\base.conf')
     self.training = training(self.driver, '..\\config\\base.conf')
 def setUp(self) -> None:
     self.driver = Service.get_driver('..\\config\\base.conf')
     self.train = TrainSource(self.driver)
Esempio n. 9
0
 def setUp(self) -> None:
     self.driver=Service.get_driver('..\\config\\base.conf')
     self.assign=TrainAssign(self.driver)
 def setUp(self):
     print('test start')
     self.driver = Service.get_driver(path)
     Service.miss_login(self.driver, path)
     self.student = Student(self.driver)
     self.student.click_student_manage_link()
 def setUpClass(cls) -> None:
     cls.driver=Service.get_driver('..\\config\\base.conf')
     cls.login=Login(cls.driver)
Esempio n. 12
0
 def setUp(self):
     self.driver = Service.get_driver('..\\config\\base.conf')
     self.classmanager = classmanager(self.driver, '..\\config\\base.conf')
Esempio n. 13
0
 def setUpClass(cls):
     cls.driver = Service.get_driver('..\\config\\base.conf')
     from common.login import Login
     cls.login = Login(cls.driver)
# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# Name:         __init__.py
# Description:  
# Author:       Administrator
# Date:         2020/2/11
#-------------------------------------------------------------------------------
from selenium.webdriver.support.select import Select

from util.service import Service
import time
driver=Service.get_driver('..\\config\\base.conf')
time.sleep(4)
Service.miss_login(driver,'..\\config\\base.conf')
from util.utility import Utility
a=Utility.get_json('..\\config\\testdata.conf')[1]
print(a)
b=Utility.get_excel_to_dict(a)
print(b)
t=driver.find_element_by_id('poolSelect')
Select(t).select_by_index(b['select'])
# seleter_length = len(Select(selecter).options)
# import random
# random_index = random.randint(0, seleter_length - 1)
# Select(selecter).select_by_index(random_index)
Esempio n. 15
0
 def setUp(self) -> None:
     test_base_info=Utility.get_json('..\\config\\base.conf')
     self.driver=Service.get_driver('..\\config\\base.conf')
     self.train=Trainadd(self.driver)
     self.train.click_train_source()