コード例 #1
0
ファイル: test_login_meminfo.py プロジェクト: wxpokay/autogui
        mobiletext = loginpage.localtors['手机号']
        mobiletext.send_keys("13425152515")

        passwdtext = loginpage.localtors['密码']
        passwdtext.send_keys("123456")

        loginpage.localtors['登陆按钮'].click()
        sleep(10)
        mainpage = MainPage()
        mainpage.localtors['个人中心'].click()
        sleep(2)
        myinfo = MyInfoPage()
        myinfo.localtors['设置'].click()
        sleep(2)
        setpage =setPage()
        setpage.localtors['退出当前账号'].click()
        sleep(2)
if __name__ == '__main__':
    '''用子线程来获取logcat日志'''
    from base.testThead import Threadlog
    tLog=Threadlog()  
    tMem= Threadmem() 
    tLog.setDaemon(True)
    tLog.start()
    tMem.setDaemon(True)
    tMem.start()
    
    suite = unittest.TestLoader().loadTestsFromTestCase(LoginTests)
    unittest.TextTestRunner(verbosity=2).run(suite)
        
コード例 #2
0
ファイル: test_login.py プロジェクト: wxpokay/autogui
        #点击引导页上的进入按钮
        driver.find_element_by_id('com.jhd.help:id/btn_instant_start').click()
        loginpage = loginPage()
        mobiletext = loginpage.localtors['手机号']
        mobiletext.send_keys("13425152515")

        passwdtext = loginpage.localtors['密码']
        passwdtext.send_keys("123456")

        loginpage.localtors['登陆按钮'].click()
        sleep(10)
        mainpage = MainPage()
        mainpage.localtors['个人中心'].click()
        sleep(2)
        myinfo = MyInfoPage()
        myinfo.localtors['设置'].click()
        sleep(2)
        setpage =setPage()
        setpage.localtors['退出当前账号'].click()
        sleep(2)
if __name__ == '__main__':
    '''用子线程来获取logcat日志'''
    from base.testThead import Threadlog
    t=Threadlog()   
    t.setDaemon(True)
    t.start()
    
    suite = unittest.TestLoader().loadTestsFromTestCase(LoginTests)
    unittest.TextTestRunner(verbosity=2).run(suite)
        
コード例 #3
0
        driver.find_element_by_id('com.jhd.help:id/btn_instant_start').click()
        loginpage = loginPage()
        mobiletext = loginpage.localtors['手机号']
        mobiletext.send_keys("13425152515")

        passwdtext = loginpage.localtors['密码']
        passwdtext.send_keys("123456")

        loginpage.localtors['登陆按钮'].click()
        sleep(10)
        mainpage = MainPage()
        mainpage.localtors['个人中心'].click()
        sleep(2)
        myinfo = MyInfoPage()
        myinfo.localtors['设置'].click()
        sleep(2)
        setpage = setPage()
        setpage.localtors['退出当前账号'].click()
        sleep(2)


if __name__ == '__main__':
    '''用子线程来获取logcat日志'''
    from base.testThead import Threadlog
    t = Threadlog()
    t.setDaemon(True)
    t.start()

    suite = unittest.TestLoader().loadTestsFromTestCase(LoginTests)
    unittest.TextTestRunner(verbosity=2).run(suite)
コード例 #4
0
ファイル: test_login_meminfo.py プロジェクト: wxpokay/autogui
        mobiletext.send_keys("13425152515")

        passwdtext = loginpage.localtors['密码']
        passwdtext.send_keys("123456")

        loginpage.localtors['登陆按钮'].click()
        sleep(10)
        mainpage = MainPage()
        mainpage.localtors['个人中心'].click()
        sleep(2)
        myinfo = MyInfoPage()
        myinfo.localtors['设置'].click()
        sleep(2)
        setpage = setPage()
        setpage.localtors['退出当前账号'].click()
        sleep(2)


if __name__ == '__main__':
    '''用子线程来获取logcat日志'''
    from base.testThead import Threadlog
    tLog = Threadlog()
    tMem = Threadmem()
    tLog.setDaemon(True)
    tLog.start()
    tMem.setDaemon(True)
    tMem.start()

    suite = unittest.TestLoader().loadTestsFromTestCase(LoginTests)
    unittest.TextTestRunner(verbosity=2).run(suite)