예제 #1
0
파일: Login.py 프로젝트: ZetaZhou/AutoTest
    def test_cbmd(self):

        try:
            mainpage = MainPage(self.driver)
            mainpage.Printcancel()

        except Exception as e:
            self.testCaseInfo.errorinfo = e
            loggerdetail.warning("Error msg: {}".format(e))
            assert False

        else:
            self.testCaseInfo.result = "Pass"
예제 #2
0
class TestLogin:

    def setup_class(self):
        self.driver = StartDriver()
        self.base = BaseFun(self.driver)
        self.login = LoginPage(self.driver)
        self.mape = MainPage(self.driver)

    #
    def test001(self):
        self.mape.go_to_personal_center()
        self.login.login_click()
        self.login.chg_to_pwd_login()
        self.login.click_tel()
        self.login.input_tel("18244211570")
        self.login.click_pwd()
        self.login.input_pwd("123456")
        self.login.login()
예제 #3
0
    def test_logout_happypath(self):

        mp = MainPage(self.driver)
        mp.clickLogoutButton()
        mp.VerifySignInButton()
예제 #4
0
 def test_adding_to_cart(self):
     mp = MainPage(self.driver)
     mp.ClickOnLogo()
     mp.ClickOnProduct()
     mp.SetQuantity()
예제 #5
0
 def tearDown(self):
     mp = MainPage (self.driver)        
     mp.clickLogoutButton()
     mp.VerifySignInButton()               
예제 #6
0
 def __init__(self, driver):
     MainPage.__init__(self, driver)
     self.goto_mine_page()
예제 #7
0
 def setup_class(self):
     self.driver = StartDriver()
     self.base = BaseFun(self.driver)
     self.login = LoginPage(self.driver)
     self.mape = MainPage(self.driver)