提交 fc885e81 编写于 作者: yuan.luo's avatar yuan.luo

add log path

上级 d3c9db74
此差异已折叠。
此差异已折叠。
......@@ -20,7 +20,7 @@ def get_validate_code(self):
#app running log
def get_app_log(name):
cmd_log = "adb logcat -c && adb logcat > " + get_log_dir(name)
cmd_log = "adb logcat -c && adb logcat > " + get_app_log_dir(name)
os.popen(cmd_log)
......@@ -31,9 +31,13 @@ def save_log(log):
def get_screenshot_dir(name):
return set_file_path('images/') + name + '.png'
# 保存日志地址
def get_log_dir(name):
return set_file_path('logs/') + name + '.txt'
# 保存app运行日志地址
def get_app_log_dir(name):
return set_file_path('appLogs/') + name + '.txt'
# 保存case运行日志地址
def get_case_log_dir(name):
return set_file_path('caseLogs/') + name + '.txt'
# 保存报告地址
def get_report_dir():
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册