Exemplo n.º 1
0
def post_test_case():
    test_logger.finish()
    test_logger.logger_instance = None
    cmd = ''
    if 'Windows' == platform.system():
        cmd = 'TASKKILL /IM chromedriver.exe /F'
    elif 'Darwin' == platform.system():
        cmd = 'pkill chromedriver'
    try:
        p = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
        p.wait()
        p.kill()
    finally:
        pass
Exemplo n.º 2
0
# -*- coding: utf-8 -*-
from com.ericsson.xn.commons import test_logger
import Mod

if __name__ == '__main__':
    test_logger.init('pm_main', 'pm')
    test_logger.info('This is info testing.')
    Mod.foo()
    test_logger.finish()