Exemplo n.º 1
0
 def test_loginCase_006(self):  #延增吗相关取消
     print(sys._getframe().f_code.co_name)
     test = test_login1()
     test.driver = self.driver
     test.yanzheng = r'123'
     test.login()
     time.sleep(1000)
Exemplo n.º 2
0
 def test_loginCase_003(self):  #执行结果显示 :登录账号与密码不符
     print(sys._getframe().f_code.co_name)
     test = test_login1()
     test.driver = self.driver
     test.xpath = '//*[@id="app"]/div[3]/div/div/div[2]/div[1]/p'
     test.style1 = "display: inline-block"
     test.loginpwd = r'WT-123456 '
     test.login()  #s输入
     test.dom_panduan()  # 判断style=“display :block”
Exemplo n.º 3
0
 def test_loginCase_001(self):
     print(sys._getframe().f_code.co_name)
     print("hello world")
     test = test_login1()
     test.driver = self.driver
     test.loginame = ''
     test.login()
     test.xpath = '//*[@id="app"]/div[6]'  #div弹出框
     test.style1 = "display: block"
     test.dom_panduan()  #判断style=“display :block”
Exemplo n.º 4
0
 def test_loginCase_005(self):
     print(sys._getframe().f_code.co_name)
     # // *[ @ id = "app"] / div[6]
     test = test_login1()
     test.driver = self.driver
     test.xpath = '//*[@id="app"]/div[6]'
     test.style1 = 'display: block'
     test.loginpwd = r''
     test.login()
     test.dom_panduan()
     print("wait.....")
     time.sleep(10000)