def __init__(self,driver): self.driver=driver self.severSatisFicing=serverSatisficing(self.driver) self.baseCom = BaseCommon(self.driver) self.data = unit().operaYaml("C:/Users/yunwen/PycharmProjects/customerServer/data/pageData/serverSatisficing.yaml") self.iframe_data = unit().operaYaml("C:/Users/yunwen/PycharmProjects/customerServer/data/pageData/iframe.yaml") self.weadmin_login = login(self.driver)
def __init__(self,driver): self.driver=driver self.login=login(self.driver) self.baseCom=BaseCommon(self.driver) self.quality_inspection_data = unit().operaYaml("C:/Users/yunwen/PycharmProjects/customerServer/data/pageData/chat_Record.yaml") self.data = unit().operaYaml("C:/Users/yunwen/PycharmProjects/customerServer/data/pageData/serverSatisficing.yaml") self.iframe_data = unit().operaYaml("C:/Users/yunwen/PycharmProjects/customerServer/data/pageData/iframe.yaml")
def __init__(self,driver): self.driver=driver self.login=login(self.driver) self.basecom=BaseCommon(self.driver) self.data=unit().operaYaml("C:/Users/yunwen/PycharmProjects/customerServer/data/pageData/channl.yaml") self.iframe_data=unit().operaYaml("C:/Users/yunwen/PycharmProjects/customerServer/data/pageData/iframe.yaml") self.login_data = unit().operaYaml("C:/Users/yunwen/PycharmProjects/customerServer/data/inputData/login.yaml")
def __init__(self, driver): self.driver = driver self.data = unit().operaYaml( "C:/Users/yunwen/PycharmProjects/customerServer/data/pageData/service_Summary.yaml" ) self.iframe_data = unit().operaYaml( "C:/Users/yunwen/PycharmProjects/customerServer/data/pageData/iframe.yaml" )
def setUp(self): self.driver = webdriver.Chrome() self.basecom = BaseCommon(self.driver) self.basecom.maxBroswer() self.data = unit().operaYaml( 'C:/Users/yunwen/PycharmProjects/customerServer/data/pageData/login.yaml' ) self.basecom.openUrl(self.data['url']['webadmin']) self.serviceSummary = Sevice_Summary(self.driver) self.seviceSummary_data = unit().operaYaml( "C:/Users/yunwen/PycharmProjects/customerServer/data/pageData/service_Summary.yaml" )
def setUp(self): warnings.simplefilter("ignore", ResourceWarning) self.driver = webdriver.Chrome() self.baseCom = BaseCommon(self.driver) self.baseCom.maxBroswer() self.data = unit().operaYaml( 'C:/Users/yunwen/PycharmProjects/customerServer/data/pageData/login.yaml' ) #self.weadmin_login = login(self.driver) self.time_search = ServerSatisficing(self.driver) self.severSatisFicing = serverSatisficing(self.driver) self.baseCom.openUrl(self.data['url']['webadmin']) self.assertData = unit().operaYaml( 'C:/Users/yunwen/PycharmProjects/customerServer/data/pageData/Assert.yaml' )
def setUp(self): self.driver = webdriver.Chrome() self.basecom = BaseCommon(self.driver) self.basecom.maxBroswer() self.data = unit().operaYaml( "C:/Users/yunwen/PycharmProjects/customerServer/data/pageData/login.yaml" ) self.basecom.openUrl(self.data["url"]["webadmin"]) self.Transfer_To_labor = transfer_to_labor(self.driver)
def setUp(self): warnings.simplefilter("ignore", ResourceWarning) self.driver = webdriver.Chrome() self.baseCom = BaseCommon(self.driver) self.baseCom.maxBroswer() self.chatRecord = Chat_Record(self.driver) self.record_Chat = chatRecord(self.driver) self.data = unit().operaYaml( 'C:/Users/yunwen/PycharmProjects/customerServer/data/pageData/login.yaml' ) self.baseCom.openUrl(self.data['url']['webadmin'])
import ddt import time import unittest from selenium import webdriver from common.Unit import unit from common.base import BaseCommon import warnings from page.login import Login readExcel = unit().readExcel("testData.xlsx", "customer") @ddt.ddt() class Main(unittest.TestCase): def setUp(self): warnings.simplefilter("ignore", ResourceWarning) self.driver = webdriver.Chrome() self.baseCom = BaseCommon(self.driver) self.baseCom.maxBroswer() self.data = unit().operaYaml( 'C:/Users/yunwen/PycharmProjects/customerServer/data/pageData/login.yaml' ) self.weadmin_login = Login(self.driver) self.baseCom.openUrl(self.data['url']['webadmin']) #输入正确的用户名及密码
import os import unittest from glob import glob import xlrd import ddt from selenium import webdriver from selenium.webdriver import ActionChains from common.Unit import unit from common.base import BaseCommon from public.serviceSummary import Sevice_Summary, logg readExcel = unit().readExcel("testData.xlsx", "serviceTypeName") @ddt.ddt() class main(unittest.TestCase): def setUp(self): self.driver = webdriver.Chrome() self.basecom = BaseCommon(self.driver) self.basecom.maxBroswer() self.data = unit().operaYaml( 'C:/Users/yunwen/PycharmProjects/customerServer/data/pageData/login.yaml' ) self.basecom.openUrl(self.data['url']['webadmin']) self.serviceSummary = Sevice_Summary(self.driver) self.seviceSummary_data = unit().operaYaml( "C:/Users/yunwen/PycharmProjects/customerServer/data/pageData/service_Summary.yaml" ) def test_tineSearch(self):
def __init__(self, driver): self.driver = driver self.webadinData = unit().operaYaml( "C:/Users/yunwen/PycharmProjects/customerServer/data/pageData/login.yaml" )