Exemple #1
0
 def post_test(self):
     '''清理测试用例
     '''
     from qt4a.androiddriver.util import logger
     logger.info('post_test run')
     super(DemoTestBase, self).post_test()
     Device.release_all_device()  # 释放所有设备
     logger.info('postTest complete')
Exemple #2
0
    def post_test(self):
        '''清理测试用例
        '''

        logger.info('开始执行测试清理。。。')
        super(GYTestBase, self).post_test()
        Device.release_all_device()  # 释放所有设备
        logger.info('测试清理执行完毕。')
Exemple #3
0
 def clean_test(self):
     '''清理测试环境。慎用此函数,尽量将清理放到postTest里。
     '''
     super(AndroidTestBase, self).clean_test()
     Device.release_all_device()  # 释放所有设备