Пример #1
0
 def setUp(self):
     unittest.TestCase.setUp(self)
     self.wd = WebDriverDoBeforeTest()
     self.wd.className ="login_lab.Login"
     self.wd.beforeClass()
     
     self.logger = LogObj()
     
     self.weblogin = web_login()
     self.weblogin.back_LoginPage(5)
     self.driver = self.weblogin.driver
     self.em = ExcelManager("UsersLogin.xls")
Пример #2
0
    def setUp(self):
        unittest.TestCase.setUp(self)

        self.wd = WebDriverDoBeforeTest()
        self.wd.className = "studentSignin.Signin"
        self.wd.beforeClass()

        self.logger = LogObj()

        self.weblogin = web_login()
        self.weblogin.back_SigninPage()  #返回到student 签到的页面

        self.webdriverpai = WebdriverApi(self.weblogin.driver)
        self.em = ExcelManager("UsersLogin.xls")
Пример #3
0
    def setUp(self):
        unittest.TestCase.setUp(self)
        self.wd = WebDriverDoBeforeTest()
        self.wd.className = "Class_Management"
        self.wd.beforeClass()

        self.logger = LogObj()

        self.weblogin = web_login()
        self.weblogin.back_LoginPage(3)

        self.driver = self.weblogin.driver
        self.driverapi = WebdriverApi(self.driver)

        self.em = ExcelManager("UsersLogin.xls")
    def setUp(self):
        unittest.TestCase.setUp(self)
        self.logger = LogObj()

        self.weblogin = web_login()
        self.weblogin.back_SigninPage()  #返回到student 签到的页面

        self.wd = WebDriverDoBeforeTest()
        self.wd.className = "studentSignin.Signin"
        self.wd.beforeClass()
        self.wd.driver = self.weblogin.driver

        self.webdriverpai = WebdriverApi(self.weblogin.driver)

        self.conn = Execute_SQL()