2018-09-19 12:26:54 +08:00
|
|
|
|
# 数据库配置
|
2018-07-30 16:58:01 +08:00
|
|
|
|
DBtype = '2' # '1' : sqlite, 2: mysql
|
|
|
|
|
host='localhost'
|
|
|
|
|
port='3306'
|
|
|
|
|
user='root'
|
2018-09-19 11:47:32 +08:00
|
|
|
|
password='yourpassword'
|
2018-07-30 16:58:01 +08:00
|
|
|
|
database='test_auto_new'
|
|
|
|
|
|
2018-09-19 12:26:54 +08:00
|
|
|
|
# atx 配置
|
2018-07-30 16:58:01 +08:00
|
|
|
|
isUseATX=True
|
2018-08-24 14:10:54 +08:00
|
|
|
|
ATXHost = 'http://localhost:8000'
|
2018-07-30 16:58:01 +08:00
|
|
|
|
|
2018-09-19 12:26:54 +08:00
|
|
|
|
# 截图目录相关配置
|
2018-07-30 16:58:01 +08:00
|
|
|
|
import os,platform
|
|
|
|
|
currentPath = os.path.dirname(os.path.abspath(__file__))
|
|
|
|
|
print(currentPath)
|
|
|
|
|
if platform.system()=='Windows':
|
|
|
|
|
logPath = currentPath + '\\log\\'
|
|
|
|
|
reportPathWin = currentPath + '\\templates\\reports\\'
|
|
|
|
|
unittestPathWin = currentPath + '\\test\\'
|
|
|
|
|
screen_shot_path = currentPath + '\\static\\screenshot\\'
|
|
|
|
|
else:
|
|
|
|
|
reportPathLinux =currentPath + '/templates/reports/'
|
|
|
|
|
unittestPathLinux = currentPath + '/test/'
|
|
|
|
|
logPath = currentPath + '/log/'
|
|
|
|
|
screen_shot_path = currentPath +'/static/screenshot/'
|
|
|
|
|
|
2018-09-19 12:26:54 +08:00
|
|
|
|
# smtp 发送邮件相关配置:
|
|
|
|
|
is_email_enable = False #发送邮件开关
|
2018-09-19 11:47:32 +08:00
|
|
|
|
flask_host = 'http://localhost:5000' # 邮件中的报告链接会使用
|
2018-09-19 12:26:54 +08:00
|
|
|
|
smtp_server_host = 'smtp.163.com' # 如使用其他的smtp 服务,请修改对应host 和端口
|
2018-09-19 11:47:32 +08:00
|
|
|
|
smtp_server_port = '25'
|
2018-09-19 12:26:54 +08:00
|
|
|
|
smtp_from_email = 'youraccount@163.com' # 发送邮件的邮箱账号
|
|
|
|
|
smtp_default_to_email = 'youraccount@163.com' # 默认接收邮件的邮箱账号
|
2018-09-19 11:47:32 +08:00
|
|
|
|
smtp_server_user = smtp_from_email
|
2018-09-19 12:26:54 +08:00
|
|
|
|
smtp_server_password = 'yourpassword' # 发送邮件的邮箱密码
|
2018-07-30 16:58:01 +08:00
|
|
|
|
|