コード例 #1
0
 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)
コード例 #2
0
 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")
コード例 #3
0
 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")
コード例 #4
0
 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"
     )
コード例 #5
0
 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"
     )
コード例 #6
0
    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'
        )
コード例 #7
0
 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)
コード例 #8
0
    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'])
コード例 #9
0
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'])

        #输入正确的用户名及密码
コード例 #10
0
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):
コード例 #11
0
 def __init__(self, driver):
     self.driver = driver
     self.webadinData = unit().operaYaml(
         "C:/Users/yunwen/PycharmProjects/customerServer/data/pageData/login.yaml"
     )